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

Partially update a POS terminal

Updates one or more fields of a POS terminal. Only the fields included in the request body are changed; omitted fields keep their stored values.

The code the terminal ends up with must not belong to another terminal.

A config sent here replaces the stored configuration in full rather than being merged into it, so include every key the gateway needs — not only the ones you are changing.

patch
/poses/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the POS terminal.

Body

Request body for partially updating a POS terminal. Send only the fields you want to change; every field is optional and omitted fields keep their stored values.

slugstring · max: 64Optional

The code that identifies the terminal; must not already belong to another terminal.

Example: example-pos
namestring · max: 64Optional

Display name of the terminal.

Example: Example POS
gatewaystringOptional

The gateway payments are sent through, as a short code or a full gateway value.

Example: garanti
resource_urlstring · uri · max: 200Optional

The gateway address payment requests are sent to.

three_d_resource_urlstring · max: 200 · nullableOptional

The gateway address used when a payment is redirected to 3D secure verification. Send null to remove it.

Responses
200

The updated 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
patch/poses/{id}/
PATCH /api/v1/remote/1/poses/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 176

{
  "slug": "example-pos",
  "name": "Example POS",
  "gateway": "garanti",
  "config": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "resource_url": "https://example.com",
  "three_d_resource_url": null
}
{
  "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?