Sales payment can be used to send payment data for sales receipts since payment data with multiple payment types per receipt does not mix well with receipt row level transactions.
Summed sales values from payment receipts should of course correspond to line item level sum in sales data and transaction_id should be the same as corresponding sales receipt transaction_id so that we can match them together when needed.
POST https://api.zoined.com/salesPayments?dryRun=false&separator=%3B&encoding=utf-8
Unique ID for the transaction. Should match with sales receipt transaction id where applicable.
Currency as ISO 4217 currency code. Required if multiple currencies are used.
cancelled. true=cancelled transaction false=not cancelled transaction. Default is false.
- Mock serverhttps://zapi-api.zoined.com/_mock/salesPayments
- https://api.zoined.comhttps://api.zoined.com/salesPayments
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/salesPayments?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"transaction_id": "er/232/f31",
"line_item_id": "1",
"sales_date": "2016-01-01",
"sales_time": "15:00:00",
"organisation_id": "540",
"department_id": "5401",
"salesperson_id": "5402101",
"register_id": "32",
"table_number": "54",
"payment_method": "Invoice",
"giftcard_payment_id": "12345",
"sales_value": 2000,
"sales_value_wo_vat": 1600,
"currency": "EUR",
"rebate": 0,
"rebate_wo_vat": 0,
"customer_id": "32",
"delivery_customer_id": "32",
"cancel_id": "er/232/f2",
"cancelled": false,
"custom_field_1": "XYZ",
"custom_field_2": "XYZ",
"custom_field_3": "XYZ",
"custom_field_4": "XYZ",
"custom_field_5": "XYZ",
"custom_field_6": "XYZ",
"custom_field_7": "XYZ",
"custom_field_8": "XYZ",
"custom_field_9": "XYZ",
"custom_field_10": "XYZ",
"custom_metric_1": 1,
"custom_metric_2": 100,
"custom_metric_3": 2.2,
"custom_metric_4": 1.05,
"custom_metric_5": 10000,
"custom_metric_6": 1,
"custom_metric_7": 100,
"custom_metric_8": 2.2,
"custom_metric_9": 1.05,
"custom_metric_10": 10000,
"source_system": "ABCDEF"
}'{ "status": "OK", "msg": "1 entity added" }