Update a POS terminal
Fully updates a POS terminal. name, slug, gateway and resource_url must be present in the body; leaving any one of them out fails the request. config and three_d_resource_url may be omitted, and then keep their stored values rather than being cleared — send three_d_resource_url as null or config as {} to empty them.
The code in slug must not belong to another terminal.
Changes take effect on the next payment sent through the terminal; payments already in flight are unaffected.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the POS terminal.
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.
Display name of the terminal.
Example POSThe 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-posThe 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.
garantiThe gateway address payment requests are sent to.
https://gateway.example.com/paymentThe gateway address used when a payment is redirected to 3D secure verification. Send null or omit it when the terminal has none.
https://gateway.example.com/payment/3dThe updated POS terminal.
A POS terminal returned by the API. The response carries the full gateway configuration, credentials included, so treat it as sensitive.
Unique identifier of the POS terminal.
Display name of the terminal.
Example POSThe code that identifies the terminal. Unique across all terminals.
example-posThe gateway payments are sent through, returned as the full gateway value. See Supported Gateways for the short code that corresponds to each value.
omnicore.libs.payment_gateways.garanti.GarantiGatewayThe gateway address payment requests are sent to.
https://gateway.example.com/paymentThe gateway address used when a payment is redirected to 3D secure verification. null when the terminal has none.
https://gateway.example.com/payment/3dThe request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested POS terminal does not exist.
The request is well-formed but another POS terminal already uses the code sent in slug.
PUT /api/v1/remote/1/poses/{id}/ 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?

