Update order
PATCH https://pos.paysera.com/eapi/v1/orders/{id}
Update an existing order's details.
You can update order information such as customer details, positions, payments, and other attributes.
Note: Not all fields may be updatable depending on the order status.
Authorization​
This endpoint requires a Personal Access Token, sent as a Bearer token.
To obtain one, your account needs API permission. Once granted, go to /user/settings in your POS account and create a personal access token.
Authorization Header Format:
Authorization: Bearer YOUR_ACCESS_TOKEN
Example:
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
For more details, see the Authentication section.
Parameters​
Path Parameters​
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ✓ | The order ID |
Request Body​
| Field | Type | Required | Description |
|---|---|---|---|
number | string | Order reference number | |
currency | string | ||
languageCode | string | Two-letter language code (ISO 639-1) | |
discountPrice | string | ||
expiresAt | string | ||
reservationName | string | ||
reservationComment | string | ||
createdAt | string | The date and time the resource was created (UTC format) | |
advancePayment | boolean | Order-level advance-payment default. When true, the POS terminal pre-ticks the advance-payment checkbox at checkout (the cashier can still un-tick it). Can be… | |
customer | object | ||
orderPositions | array | List of items/products in the order with their quantities and prices | |
payments | array | List of payment transactions associated with this order. This field should only be used if payment was already made from an external system. If payment should… |
advancePayment​
Order-level advance-payment default. When true, the POS terminal pre-ticks the advance-payment checkbox at checkout (the cashier can still un-tick it). Can be set or cleared while the order can still be modified (before it is fiscalized).
payments​
List of payment transactions associated with this order. This field should only be used if payment was already made from an external system. If payment should happen via POS, leave this field empty.
Errors​
This endpoint may return the following errors:
400 - Bad Request​
The request was invalid or cannot be served.
401 - Unauthorized​
Unauthorized
This error was produced by providing incorrect credentials.
403 - Forbidden​
Forbidden
This error indicates you don't have permission to access this resource.
404 - Not Found​
Order not found
This error indicates the requested resource was not found.
409 - Conflict​
The request could not be completed due to a conflict with the current state of the target resource.