For the complete documentation index, see llms.txt. This page is also available as Markdown.

Register a POS terminal

Registers a POS terminal for a payment gateway.

The name, slug, gateway and resource_url fields are required. config and three_d_resource_url may be omitted; the terminal is then created with an empty configuration and without a 3D secure address.

The code in slug must not already belong to another terminal. If it does, the request is rejected with <code> already exists.

The configuration is stored as sent and is not checked against the selected gateway — see Gateway Configuration for the keys the platform itself reads, including three_d_enabled, which only takes effect while 3D secure verification is switched on through THREE_D_SECURE_ENABLED.

post
/poses/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

Request body for registering or fully updating a POS terminal. name, slug, gateway and resource_url are required on both operations.

On create, an omitted config or three_d_resource_url leaves the terminal without a configuration and without a 3D secure address. On a full update they keep their stored values instead of being cleared; send config as {} or three_d_resource_url as null to empty them.

namestring · max: 64Required

Display name of the terminal.

Example: Example POS
slugstring · max: 64Required

The code that identifies the terminal; must not already belong to another terminal. Send a plain lower-case code. The value is not checked against the code format, so spaces and punctuation are accepted even though they should not be used.

Example: example-pos
gatewaystringRequired

The gateway payments are sent through. Send either the short code (for example garanti) or the full gateway value; both are case-sensitive. See Supported Gateways for the accepted values.

Example: garanti
resource_urlstring · uri · max: 200Required

The gateway address payment requests are sent to.

Example: https://gateway.example.com/payment
three_d_resource_urlstring · max: 200 · nullableOptional

The gateway address used when a payment is redirected to 3D secure verification. Send null or omit it when the terminal has none.

Example: https://gateway.example.com/payment/3d
Responses
201

The registered POS terminal.

application/json

A POS terminal returned by the API. The response carries the full gateway configuration, credentials included, so treat it as sensitive.

pkintegerRead-onlyRequired

Unique identifier of the POS terminal.

namestring · max: 64Required

Display name of the terminal.

Example: Example POS
slugstringRequired

The code that identifies the terminal. Unique across all terminals.

Example: example-pos
gatewaystringRequired

The gateway payments are sent through, returned as the full gateway value. See Supported Gateways for the short code that corresponds to each value.

Example: omnicore.libs.payment_gateways.garanti.GarantiGateway
resource_urlstring · uri · max: 200Required

The gateway address payment requests are sent to.

Example: https://gateway.example.com/payment
three_d_resource_urlstring · max: 200 · nullableRequired

The gateway address used when a payment is redirected to 3D secure verification. null when the terminal has none.

Example: https://gateway.example.com/payment/3d
post/poses/
POST /api/v1/remote/1/poses/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 312

{
  "name": "Example POS",
  "slug": "example-pos",
  "gateway": "garanti",
  "config": {
    "auth": {
      "merchant_id": "1234567",
      "terminal_id": "10000001",
      "username": "akinon",
      "password": "secret"
    },
    "three_d_enabled": true
  },
  "resource_url": "https://gateway.example.com/payment",
  "three_d_resource_url": "https://gateway.example.com/payment/3d"
}
{
  "pk": 1,
  "name": "Example POS",
  "slug": "example-pos",
  "gateway": "omnicore.libs.payment_gateways.garanti.GarantiGateway",
  "config": {
    "auth": {
      "merchant_id": "1234567",
      "terminal_id": "10000001",
      "username": "akinon",
      "password": "secret"
    },
    "three_d_enabled": true
  },
  "resource_url": "https://gateway.example.com/payment",
  "three_d_resource_url": "https://gateway.example.com/payment/3d"
}

Last updated

Was this helpful?