View as Markdown

llms.txt

The API reference isn't available right now

This instance couldn't load its API specification. The reference returns as soon as the specification is readable again.

Back to the API reference

No such operation

This instance documents no operation under that identifier. It may have been renamed, or it may belong to a feature this installation hasn't enabled.

Back to the API reference

This reference may be out of date

This instance couldn't reach its API specification on the last attempt, so this page shows the copy fetched before that. Anything added or changed since then is missing here, and the reference updates itself as soon as the specification is readable again. Last fetched 2026-12-03 02:35 UTC.

API reference TerminalModels

Create a terminal model

POST /api/terminals/models deprecated

Requires: Terminals.Models.View, Terminals.Models.Create, merchant scope.

Create a new terminal model

Signed in, you can send this request to your own sandbox merchant from the console and read the answer. Sign in to try it.

Example request

Each example below is one request, shown in every language. Choose an example and a language, then replace {{BASE_URL}} with the address of the API you are calling and {{API_KEY}} with your own key.

The request body is a TerminalModelCreateDto. See the Request body section below for its fields.

Code sample language
Request example

Adds an active model to the catalog. Once a vendor has an active model, a new terminal of that vendor must name one. The vendor and the code cannot be changed afterward. A code the vendor already has, ignoring case, answers Terminals:ModelCodeInUse.

cURL

curl -X POST "{{BASE_URL}}/api/terminals/models" \
  -H "api-key: {{API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{
  "vendorCode": "Generic",
  "code": "CT-100",
  "displayName": "Countertop 100",
  "contactless": true,
  "pinEntry": true,
  "printer": true
}'

PowerShell

$headers = @{
    'api-key' = '{{API_KEY}}'
}

$body = @'
{
  "vendorCode": "Generic",
  "code": "CT-100",
  "displayName": "Countertop 100",
  "contactless": true,
  "pinEntry": true,
  "printer": true
}
'@

$response = Invoke-RestMethod -Method POST -Uri '{{BASE_URL}}/api/terminals/models' `
    -Headers $headers -ContentType 'application/json' -Body $body

npm install @winkpg/winkpg-api

TypeScript (SDK)

import { Configuration, TerminalModelsApi } from '@winkpg/winkpg-api';

const api = new TerminalModelsApi(new Configuration({
  basePath: '{{BASE_URL}}',
  apiKey: '{{API_KEY}}',
}));

const { data } = await api.terminalModelsCreate({
  "vendorCode": "Generic",
  "code": "CT-100",
  "displayName": "Countertop 100",
  "contactless": true,
  "pinEntry": true,
  "printer": true
});

TypeScript (raw HTTP)

const response = await fetch('{{BASE_URL}}/api/terminals/models', {
  method: 'POST',
  headers: {
    "api-key": "{{API_KEY}}",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "vendorCode": "Generic",
    "code": "CT-100",
    "displayName": "Countertop 100",
    "contactless": true,
    "pinEntry": true,
    "printer": true
  }),
});

const data = await response.json();

dotnet add package WinkPg.Api.Client

C# (SDK)

using WinkPg.Api.Client.Api;
using WinkPg.Api.Client.Client;
using System.Text.Json;

var config = new Configuration { BasePath = "{{BASE_URL}}" };
config.AddApiKey("api-key", "{{API_KEY}}");

var api = new TerminalModelsApi(config);
var body = JsonSerializer.Deserialize<TerminalModelCreateDto>("""
    {
      "vendorCode": "Generic",
      "code": "CT-100",
      "displayName": "Countertop 100",
      "contactless": true,
      "pinEntry": true,
      "printer": true
    }
    """);

var result = await api.TerminalModelsCreateAsync(body);

C# (raw HTTP)

using System.Text;

using var http = new HttpClient { BaseAddress = new Uri("{{BASE_URL}}") };

var request = new HttpRequestMessage(new HttpMethod("POST"), "/api/terminals/models");
request.Headers.Add("api-key", "{{API_KEY}}");

request.Content = new StringContent("""
    {
      "vendorCode": "Generic",
      "code": "CT-100",
      "displayName": "Countertop 100",
      "contactless": true,
      "pinEntry": true,
      "printer": true
    }
    """, Encoding.UTF8, "application/json");

var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();
var json = await response.Content.ReadAsStringAsync();

pip install winkpg-api

Python (SDK)

import winkpg_api

configuration = winkpg_api.Configuration(host="{{BASE_URL}}")
configuration.api_key["ApiKey"] = "{{API_KEY}}"

with winkpg_api.ApiClient(configuration) as client:
    api = winkpg_api.TerminalModelsApi(client)
    body = winkpg_api.TerminalModelCreateDto.from_dict({
      "vendorCode": "Generic",
      "code": "CT-100",
      "displayName": "Countertop 100",
      "contactless": True,
      "pinEntry": True,
      "printer": True
    })
    result = api.terminal_models_create(body)

pip install requests

Python (raw HTTP)

import requests

headers = {
    "api-key": "{{API_KEY}}",
    "Content-Type": "application/json",
}

body = {
  "vendorCode": "Generic",
  "code": "CT-100",
  "displayName": "Countertop 100",
  "contactless": True,
  "pinEntry": True,
  "printer": True
}

response = requests.request(
    "POST",
    "{{BASE_URL}}/api/terminals/models",
    headers=headers,
    json=body,
)
response.raise_for_status()
data = response.json()

Adds a model whose serial numbers follow a pattern of their own. A terminal of this model must match it as well as any format the vendor declares, and a refusal carries the example. Send the pattern, the example and the description together.

cURL

curl -X POST "{{BASE_URL}}/api/terminals/models" \
  -H "api-key: {{API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{
  "vendorCode": "Generic",
  "code": "MP-200",
  "displayName": "Mobile 200",
  "contactless": true,
  "pinEntry": true,
  "serialNumberFormatPattern": "MP2[0-9]{7}",
  "serialNumberFormatExample": "MP20001234",
  "serialNumberFormatDescription": "MP2 followed by seven digits."
}'

PowerShell

$headers = @{
    'api-key' = '{{API_KEY}}'
}

$body = @'
{
  "vendorCode": "Generic",
  "code": "MP-200",
  "displayName": "Mobile 200",
  "contactless": true,
  "pinEntry": true,
  "serialNumberFormatPattern": "MP2[0-9]{7}",
  "serialNumberFormatExample": "MP20001234",
  "serialNumberFormatDescription": "MP2 followed by seven digits."
}
'@

$response = Invoke-RestMethod -Method POST -Uri '{{BASE_URL}}/api/terminals/models' `
    -Headers $headers -ContentType 'application/json' -Body $body

npm install @winkpg/winkpg-api

TypeScript (SDK)

import { Configuration, TerminalModelsApi } from '@winkpg/winkpg-api';

const api = new TerminalModelsApi(new Configuration({
  basePath: '{{BASE_URL}}',
  apiKey: '{{API_KEY}}',
}));

const { data } = await api.terminalModelsCreate({
  "vendorCode": "Generic",
  "code": "MP-200",
  "displayName": "Mobile 200",
  "contactless": true,
  "pinEntry": true,
  "serialNumberFormatPattern": "MP2[0-9]{7}",
  "serialNumberFormatExample": "MP20001234",
  "serialNumberFormatDescription": "MP2 followed by seven digits."
});

TypeScript (raw HTTP)

const response = await fetch('{{BASE_URL}}/api/terminals/models', {
  method: 'POST',
  headers: {
    "api-key": "{{API_KEY}}",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "vendorCode": "Generic",
    "code": "MP-200",
    "displayName": "Mobile 200",
    "contactless": true,
    "pinEntry": true,
    "serialNumberFormatPattern": "MP2[0-9]{7}",
    "serialNumberFormatExample": "MP20001234",
    "serialNumberFormatDescription": "MP2 followed by seven digits."
  }),
});

const data = await response.json();

dotnet add package WinkPg.Api.Client

C# (SDK)

using WinkPg.Api.Client.Api;
using WinkPg.Api.Client.Client;
using System.Text.Json;

var config = new Configuration { BasePath = "{{BASE_URL}}" };
config.AddApiKey("api-key", "{{API_KEY}}");

var api = new TerminalModelsApi(config);
var body = JsonSerializer.Deserialize<TerminalModelCreateDto>("""
    {
      "vendorCode": "Generic",
      "code": "MP-200",
      "displayName": "Mobile 200",
      "contactless": true,
      "pinEntry": true,
      "serialNumberFormatPattern": "MP2[0-9]{7}",
      "serialNumberFormatExample": "MP20001234",
      "serialNumberFormatDescription": "MP2 followed by seven digits."
    }
    """);

var result = await api.TerminalModelsCreateAsync(body);

C# (raw HTTP)

using System.Text;

using var http = new HttpClient { BaseAddress = new Uri("{{BASE_URL}}") };

var request = new HttpRequestMessage(new HttpMethod("POST"), "/api/terminals/models");
request.Headers.Add("api-key", "{{API_KEY}}");

request.Content = new StringContent("""
    {
      "vendorCode": "Generic",
      "code": "MP-200",
      "displayName": "Mobile 200",
      "contactless": true,
      "pinEntry": true,
      "serialNumberFormatPattern": "MP2[0-9]{7}",
      "serialNumberFormatExample": "MP20001234",
      "serialNumberFormatDescription": "MP2 followed by seven digits."
    }
    """, Encoding.UTF8, "application/json");

var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();
var json = await response.Content.ReadAsStringAsync();

pip install winkpg-api

Python (SDK)

import winkpg_api

configuration = winkpg_api.Configuration(host="{{BASE_URL}}")
configuration.api_key["ApiKey"] = "{{API_KEY}}"

with winkpg_api.ApiClient(configuration) as client:
    api = winkpg_api.TerminalModelsApi(client)
    body = winkpg_api.TerminalModelCreateDto.from_dict({
      "vendorCode": "Generic",
      "code": "MP-200",
      "displayName": "Mobile 200",
      "contactless": True,
      "pinEntry": True,
      "serialNumberFormatPattern": "MP2[0-9]{7}",
      "serialNumberFormatExample": "MP20001234",
      "serialNumberFormatDescription": "MP2 followed by seven digits."
    })
    result = api.terminal_models_create(body)

pip install requests

Python (raw HTTP)

import requests

headers = {
    "api-key": "{{API_KEY}}",
    "Content-Type": "application/json",
}

body = {
  "vendorCode": "Generic",
  "code": "MP-200",
  "displayName": "Mobile 200",
  "contactless": True,
  "pinEntry": True,
  "serialNumberFormatPattern": "MP2[0-9]{7}",
  "serialNumberFormatExample": "MP20001234",
  "serialNumberFormatDescription": "MP2 followed by seven digits."
}

response = requests.request(
    "POST",
    "{{BASE_URL}}/api/terminals/models",
    headers=headers,
    json=body,
)
response.raise_for_status()
data = response.json()

Adds a model with no PIN entry device of its own that works with one external PIN pad. A terminal of this model may name the pad, and is then offered PIN debit through it. A pad is offered only to tenants with its vendor enabled. Leave the list out, or send it empty, for a model that works with no pad.

cURL

curl -X POST "{{BASE_URL}}/api/terminals/models" \
  -H "api-key: {{API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{
  "vendorCode": "Generic",
  "code": "CT-150",
  "displayName": "Countertop 150",
  "contactless": true,
  "printer": true,
  "externalPinPads": [
    {
      "vendorCode": "Generic",
      "code": "PP-300",
      "displayName": "PIN Pad 300",
      "contactless": true
    }
  ]
}'

PowerShell

$headers = @{
    'api-key' = '{{API_KEY}}'
}

$body = @'
{
  "vendorCode": "Generic",
  "code": "CT-150",
  "displayName": "Countertop 150",
  "contactless": true,
  "printer": true,
  "externalPinPads": [
    {
      "vendorCode": "Generic",
      "code": "PP-300",
      "displayName": "PIN Pad 300",
      "contactless": true
    }
  ]
}
'@

$response = Invoke-RestMethod -Method POST -Uri '{{BASE_URL}}/api/terminals/models' `
    -Headers $headers -ContentType 'application/json' -Body $body

npm install @winkpg/winkpg-api

TypeScript (SDK)

import { Configuration, TerminalModelsApi } from '@winkpg/winkpg-api';

const api = new TerminalModelsApi(new Configuration({
  basePath: '{{BASE_URL}}',
  apiKey: '{{API_KEY}}',
}));

const { data } = await api.terminalModelsCreate({
  "vendorCode": "Generic",
  "code": "CT-150",
  "displayName": "Countertop 150",
  "contactless": true,
  "printer": true,
  "externalPinPads": [
    {
      "vendorCode": "Generic",
      "code": "PP-300",
      "displayName": "PIN Pad 300",
      "contactless": true
    }
  ]
});

TypeScript (raw HTTP)

const response = await fetch('{{BASE_URL}}/api/terminals/models', {
  method: 'POST',
  headers: {
    "api-key": "{{API_KEY}}",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "vendorCode": "Generic",
    "code": "CT-150",
    "displayName": "Countertop 150",
    "contactless": true,
    "printer": true,
    "externalPinPads": [
      {
        "vendorCode": "Generic",
        "code": "PP-300",
        "displayName": "PIN Pad 300",
        "contactless": true
      }
    ]
  }),
});

const data = await response.json();

dotnet add package WinkPg.Api.Client

C# (SDK)

using WinkPg.Api.Client.Api;
using WinkPg.Api.Client.Client;
using System.Text.Json;

var config = new Configuration { BasePath = "{{BASE_URL}}" };
config.AddApiKey("api-key", "{{API_KEY}}");

var api = new TerminalModelsApi(config);
var body = JsonSerializer.Deserialize<TerminalModelCreateDto>("""
    {
      "vendorCode": "Generic",
      "code": "CT-150",
      "displayName": "Countertop 150",
      "contactless": true,
      "printer": true,
      "externalPinPads": [
        {
          "vendorCode": "Generic",
          "code": "PP-300",
          "displayName": "PIN Pad 300",
          "contactless": true
        }
      ]
    }
    """);

var result = await api.TerminalModelsCreateAsync(body);

C# (raw HTTP)

using System.Text;

using var http = new HttpClient { BaseAddress = new Uri("{{BASE_URL}}") };

var request = new HttpRequestMessage(new HttpMethod("POST"), "/api/terminals/models");
request.Headers.Add("api-key", "{{API_KEY}}");

request.Content = new StringContent("""
    {
      "vendorCode": "Generic",
      "code": "CT-150",
      "displayName": "Countertop 150",
      "contactless": true,
      "printer": true,
      "externalPinPads": [
        {
          "vendorCode": "Generic",
          "code": "PP-300",
          "displayName": "PIN Pad 300",
          "contactless": true
        }
      ]
    }
    """, Encoding.UTF8, "application/json");

var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();
var json = await response.Content.ReadAsStringAsync();

pip install winkpg-api

Python (SDK)

import winkpg_api

configuration = winkpg_api.Configuration(host="{{BASE_URL}}")
configuration.api_key["ApiKey"] = "{{API_KEY}}"

with winkpg_api.ApiClient(configuration) as client:
    api = winkpg_api.TerminalModelsApi(client)
    body = winkpg_api.TerminalModelCreateDto.from_dict({
      "vendorCode": "Generic",
      "code": "CT-150",
      "displayName": "Countertop 150",
      "contactless": True,
      "printer": True,
      "externalPinPads": [
        {
          "vendorCode": "Generic",
          "code": "PP-300",
          "displayName": "PIN Pad 300",
          "contactless": True
        }
      ]
    })
    result = api.terminal_models_create(body)

pip install requests

Python (raw HTTP)

import requests

headers = {
    "api-key": "{{API_KEY}}",
    "Content-Type": "application/json",
}

body = {
  "vendorCode": "Generic",
  "code": "CT-150",
  "displayName": "Countertop 150",
  "contactless": True,
  "printer": True,
  "externalPinPads": [
    {
      "vendorCode": "Generic",
      "code": "PP-300",
      "displayName": "PIN Pad 300",
      "contactless": True
    }
  ]
}

response = requests.request(
    "POST",
    "{{BASE_URL}}/api/terminals/models",
    headers=headers,
    json=body,
)
response.raise_for_status()
data = response.json()

Parameters

Name In Type Description
suppressNulls required query boolean If true, omit properties with null values.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

Request body

application/json , required

Field Type Description
displayName required string The model's name. Required. nullablemax length 128
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
contactless required boolean Whether the model reads contactless cards and wallets.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
pinEntry required boolean Whether the model has a PIN entry device.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
printer required boolean Whether the model has a receipt printer.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
serialNumberFormatPattern required string The regular expression this model's serial numbers must match in full, ignoring case, checked in addition to the vendor's own format. Keep to anchors, character classes and counted quantifiers. Send the pattern, the example and the description together, or none of them for no rule. nullablemax length 256
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
serialNumberFormatExample required string A serial number that matches the pattern. Required with a pattern. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
serialNumberFormatDescription required string One sentence that says what the serial number looks like. Required with a pattern. nullablemax length 256
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
externalPinPads required array of TerminalExternalPinPadDto array of TerminalExternalPinPadDto The external PIN pad models this model is approved to work with. A terminal of the model may name one of them as its PIN entry device. On create, leave it out or send an empty list for none. On an update, leaving it out keeps the stored list, and an empty list removes every pad. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

Fields of each TerminalExternalPinPadDto:

Field Type Description
vendorCode required string The pad's vendor code, from the model vendor list. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
code required string The pad's model code. Unique for its vendor in one terminal model's list, ignoring case. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
displayName required string The pad model's name. nullablemax length 128
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
contactless required boolean Whether the pad reads contactless cards and wallets.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This body has no documented fields.

vendorCode required string The vendor code, from the model vendor list. It cannot be changed afterward. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
code required string The model code terminals store. It must be unique for the vendor, ignoring case, and it cannot be changed afterward. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This request body has no documented fields.

Responses

Response status

OK

Body: TerminalModelDetailDto TerminalModelDetailDto Each item has these fields.

Field Type Description
id required string (uuid)
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
creationTime required string (date-time) The date and time when this entity was created.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
creatorId required string (uuid) The ID of the user who created this entity. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
lastModificationTime required string (date-time) The date and time when this entity was last modified. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
lastModifierId required string (uuid) The ID of the user who last modified this entity. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
isDeleted required boolean Indicates whether this entity has been deleted.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
deleterId required string (uuid) The ID of the user who deleted this entity, if it is deleted. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
deletionTime required string (date-time) The date and time when this entity was deleted, if it is deleted. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
vendorCode required string The vendor code. It never changes. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
code required string The model code a terminal stores. Unique per vendor, ignoring case. It never changes. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
displayName required string The model's name. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
contactless required boolean Whether the model reads contactless cards and wallets.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
pinEntry required boolean Whether the model has a PIN entry device.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
printer required boolean Whether the model has a receipt printer.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
isRetired required boolean Whether the model is retired: no new terminal may name it.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
serialNumberFormat required TerminalSerialNumberFormatDto TerminalSerialNumberFormatDto What the model's serial numbers look like, checked in addition to the vendor's own format, or null when the model adds no rule.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

Fields of TerminalSerialNumberFormatDto:

Field Type Description
pattern required string The regular expression a serial number must match in full, ignoring case and surrounding whitespace. It is anchored at both ends whether or not it says so, and keeps to anchors, character classes and counted quantifiers. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
example required string A serial number that matches the pattern. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
description required string One sentence that says what the serial number looks like. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This body has no documented fields.

externalPinPads required array of TerminalExternalPinPadDto array of TerminalExternalPinPadDto The external PIN pad models this model is approved to work with, or null for none. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

Fields of each TerminalExternalPinPadDto:

Field Type Description
vendorCode required string The pad's vendor code, from the model vendor list. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
code required string The pad's model code. Unique for its vendor in one terminal model's list, ignoring case. nullablemax length 64
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
displayName required string The pad model's name. nullablemax length 128
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
contactless required boolean Whether the pad reads contactless cards and wallets.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This body has no documented fields.

concurrencyStamp required string The concurrency stamp. Send it back on an update. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This response has no documented body fields.

The request was refused because a rate limit was exceeded, or because something a later retry can clear stopped it. A rate limit refusal carries an `application/problem+json` body: wait at least the interval `Retry-After` names before retrying, then back off. Limits are tuned per deployment, so read the allowance from the response headers rather than assuming a fixed ceiling. Any other refusal carries the standard error envelope as `application/json`, and its `error.code` names the cause.

Body: RemoteServiceErrorResponse RemoteServiceErrorResponse Each item has these fields.

Field Type Description
error required RemoteServiceErrorInfo RemoteServiceErrorInfo
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This response has no documented body fields.

  1. 400 Bad Request Bad request. The request was malformed or failed validation. When validation rejected it, `error.validationErrors` names each member at fault and why.
  2. 401 Unauthorized Unauthorized. The request carried no API key or signed-in session, or the key it carried is invalid, revoked or expired.
  3. 403 Forbidden Forbidden. The API key lacks the scope this operation needs, the signed-in user lacks the permission, or a business rule refused the request. The error code in the body names the reason.
  4. 404 Not Found Not found. The resource the request names does not exist or is not visible to the caller: a resource that belongs to a merchant or tenant outside the caller's scope is reported as not found.
  5. 500 Internal Server Error Internal server error. The platform failed unexpectedly while handling the request. If it keeps failing, contact support and quote the correlation id, which the response carries in the `X-Correlation-Id` header and as `error.data.correlationId`.
  6. 501 Not Implemented Not implemented. The operation is declared but has no implementation on this deployment, so no request to it can succeed. Retrying does not help.
  7. default The request failed. The body carries the standard error envelope: a machine-readable `error.code`, a human-readable `error.message`, and `error.validationErrors` when the failure was a validation rejection. The error reference lists the values `error.code` can take.The request failed. The body carries the standard error envelope: a machine-readable `error.code`, a human-readable `error.message`, and `error.validationErrors` when the failure was a validation rejection. The error reference lists the values `error.code` can take.

Body: RemoteServiceErrorResponse RemoteServiceErrorResponse Each item has these fields.

Field Type Description
error required RemoteServiceErrorInfo RemoteServiceErrorInfo
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

Fields of RemoteServiceErrorInfo:

Field Type Description
code required string nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
message required string nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
details required string nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
data required object nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
validationErrors required array of RemoteServiceValidationErrorInfo array of RemoteServiceValidationErrorInfo nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This body has no documented fields.

This response has no documented body fields.

Errors

A failed request returns the platform error envelope. The error reference lists every value error.code can carry and shows the four response shapes.

Codes declared by

Authentication

  • ApiKey with scopes

Reconnecting to the server

Could not reconnect

This session has ended

Attempt 1

Your work on this page is still here. Retrying keeps it; reloading starts the page again.

The server no longer holds this page's state, so it has to be loaded again.