/
Receipt of a Sales Transa...
Reads one sale document at the specified Location. For a membership with a nonzero goods_transaction_id, first retrieve that goods transaction to get its document_id. The caller needs Location access and, for a sale document, Inventory access. The sale state contains items and payment transactions; it is not a single membership purchase amount. Match document and item IDs before attributing any payment to a membership.
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/sale/{document_id}
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/sale/{document_id}
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/sale/{document_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Object with data
Example:
{ "state": { "items": [ … ], "loyalty_transactions": [ … ], "payment_transactions": [ … ] }, "kkm_state": { "last_operation_type": 1, "transactions": [ … ] }, "payment_methods": [ { … }, { … }, { … }, { … }, { … }, { … }, { … } ] }
Response
{ "success": true, "data": { "state": { … }, "kkm_state": { … }, "payment_methods": [ … ] }, "meta": [] }