> This page is for Entria API Reference.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.navipartner.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.navipartner.com/_mcp/server.

# List the renewals available for one of the member’s memberships

GET https://api.entria.app/api/member/alterations

Lists the renewals the logged-in member may buy for one of their own memberships — never an upgrade, a cancel or an extend, for now; cached up to 5 minutes — as MEMBERSHIP\_RENEW products priced at the amount the membership system quoted, in the same item shape as `GET /api/membership/alterations`. To buy one, send its `sku` with the same `membershipNumber` to `POST /api/cart/lines`, with the member token:

```json
{ "cartId": "cart_…", "lines": [{ "type": "MEMBERSHIP_RENEW", "sku": "<item sku>", "membershipNumber": "MS100005" }] }
```

Take `membershipNumber` from `GET /api/member/me`; a number that is not one of the member’s own unblocked memberships answers 404, whatever the reason. Requires the member token from `POST /api/member/session`.

Reference: https://docs.navipartner.com/entria-api/entria-api-reference/otp-members/get-get-member-alterations

## Authentication

- `Authorization` header (bearer token, required) — OTP member token, browser-safe. Obtain one from POST /api/member/session with the 6-digit code POST /api/member/login emailed to the shopper; valid 30 minutes, for one store and one proven email, and it reads only that member’s own data. Sent as `Authorization: Bearer <token>`. Not interchangeable with the BearerAuth client token in either direction.

## Request

### Query parameters

- `membershipNumber` (string, required) — One of the member’s own membership numbers, from `GET /api/member/me`.
- `locale` (string, optional) — BCP 47 locale code (e.g. da-DK, en-US). Defaults to DEFAULT_LOCALE env binding.

### Headers

- `x-entria` (string, required) — Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

## Response

### 200

The options for this membership, as MEMBERSHIP_RENEW products. An empty array means it currently has none.

- `list of MembershipAlterationProduct`

## Errors

### 400 Bad Request Error

The request body is invalid.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 401 Unauthorized Error

No usable member token (`code: MEMBER_TOKEN_INVALID`): the `Authorization: Bearer` is missing, is not a member token (a `POST /oauth/token` client token is not one), or is expired, not yet valid or minted for another store. Log the shopper in again with `POST /api/member/login`.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 404 Not Found Error

The membership is not one of the member’s own unblocked memberships (`code: MEMBERSHIP_NOT_FOUND`), member login is not enabled for this store (`code: MEMBER_LOGIN_DISABLED`), or the `x-entria` store handle is unknown.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 429 Too Many Requests Error

Too many requests from this client.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 500 Internal Server Error

The options could not be read — an upstream failure, safe to retry.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 502 Bad Gateway Error

Some of this membership’s options could not be read, so the list would be incomplete. Retry; an empty 200 means the membership genuinely has none.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 503 Service Unavailable Error

Member login is switched on but cannot run: Business Central is not configured for the store (`code: BC_NOT_CONFIGURED`), or this service is missing its token configuration (`code: MEMBER_LOGIN_NOT_CONFIGURED`). Neither depends on the email.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

## Types

### MembershipAlterationProduct

- `sku` (string, required, nullable)
- `title` (string, required)
- `description` (string, required)
- `handle` (string, required)
- `media` (list of ProductDiscriminatorMappingMembershipRenewMediaItems, required)
- `price` (double, required, nullable)
- `basePrice` (double, required, nullable)
- `subscription` (boolean, required, nullable)
- `membershipLegalText` (string, required, nullable)
- `lifecycleAction` (string, required)
- `addon` (ProductDiscriminatorMappingMembershipRenewAddon, optional, nullable)
- `validFrom` (string, optional, nullable)
- `validUntil` (string, optional, nullable)

### ErrorResponseDetailsItems

- `path` (string, required)
- `message` (string, required)

### ProductDiscriminatorMappingMembershipRenewMediaItems

- `id` (string, required)
- `url` (string, required)
- `altText` (string, required)

### ProductDiscriminatorMappingMembershipRenewAddon

- `price` (double, required)
- `title` (string, required)
- `id` (string, required)

## Examples

**Response**

```json
[
  {
    "sku": "string",
    "title": "string",
    "description": "string",
    "handle": "string",
    "media": [
      {
        "id": "string",
        "url": "string",
        "altText": "string"
      }
    ],
    "price": 1.1,
    "basePrice": 1.1,
    "subscription": true,
    "membershipLegalText": "string",
    "lifecycleAction": "string",
    "addon": {
      "price": 1.1,
      "title": "string",
      "id": "string"
    },
    "validFrom": "string",
    "validUntil": "string",
    "type": "MEMBERSHIP_RENEW"
  }
]
```

**SDK Code**

```python
import requests

url = "https://api.entria.app/api/member/alterations"

querystring = {"membershipNumber":"membershipNumber"}

headers = {
    "x-entria": "x-entria",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber';
const options = {
  method: 'GET',
  headers: {'x-entria': 'x-entria', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-entria", "x-entria")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-entria"] = 'x-entria'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber")
  .header("x-entria", "x-entria")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'x-entria' => 'x-entria',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber");
var request = new RestRequest(Method.GET);
request.AddHeader("x-entria", "x-entria");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-entria": "x-entria",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.entria.app/api/member/alterations?membershipNumber=membershipNumber")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```