- Payment at the Location Account and Loyalty (Various Methods)
Receipt of a Sales Transaction
Delete a Loyalty Payment Transaction
Delete a Cashier Payment Transaction
Payment at the Location A...
As a response, information about the Sale operation is returned
Security
BearerPartnerUser
- In the case of payment by a gift card, if the user does not have the "Pay by gift card and membership without code" right, the "number" (string) parameter containing the gift card code must also be passed in the request body.
- In the case of payment by membership, if the user does not have the "Pay by gift card and membership without code" right, the "number" (string) parameter containing the membership code must also be passed in the request body.
- The
prepay_holdmethod (payloadmethod.slug = prepay_hold,method.hold_id = <state.deposit_holds[].id>) confirms and applies an active prepaid hold associated with the visit. Use the corresponding entry returned inpayment_methods; it hasis_applicable=true,is_partial_allowed=false, and supplies the fullapplicable_amount. When every Service item of the Visit is covered by the hold, paying with a Membership instead returns HTTP 400 with the localized message "Membership cannot be used to pay a visit with a prepaid hold" inmeta.message.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/sale/{document_id}/payment
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/sale/{document_id}/payment
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/sale/{document_id}/payment' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"payment": {
"method": {
"slug": "account",
"account_id": 90218
},
"amount": 123
}
}'OK
Object with data
Example:
{ "state": { "items": [ … ], "deposit_holds": [ … ], "loyalty_transactions": [ … ], "payment_transactions": [ … ] }, "kkm_state": { "last_operation_type": 1, "transactions": [ … ] }, "payment_methods": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ] }
Response
{ "success": true, "data": { "state": { … }, "kkm_state": { … }, "payment_methods": [ … ] }, "meta": [] }