KPTAC Posted September 13, 2020 Share Posted September 13, 2020 I'm trying to create a POST request that generates a receipt as if it was created on the POS. I'm sending the "pos_device_id" in body along with "source": "point of sale". But this doesn't work properly and the receipt has a prefix of 0 instead of 1 (which is shown when creating sale from POS). How can we execute this? We have a different platform for menu, where orders are generated. We would like to send this to POS, and also print it out in our POS printer. Please advice. Thanks Link to comment Share on other sites More sharing options...
Featured Comment Yasuaki Posted September 14, 2020 Featured Comment Share Posted September 14, 2020 Hello @KPTAC This Body template might help you to generate receipt. ------------------------------ { "store_id": "<string>", "employee_id": "<string>", "order": "<string>", "customer_id": "<string>", "source": "<string>", "receipt_date": "<dateTime>", "total_discounts": [ { "id": "<string>", "scope": "<string>", "percentage": "<number>", "money_amount": "<number>" }, { "id": "<string>", "scope": "<string>", "percentage": "<number>", "money_amount": "<number>" } ], "note": "<string>", "line_items": [ { "quantity": "<number>", "variant_id": "<string>", "price": "<number>", "cost": "<number>", "line_note": "<string>", "line_taxes": [ { "id": "<string>" }, { "id": "<string>" } ], "line_discounts": [ { "id": "<string>" }, { "id": "<string>" } ], "line_modifiers": [ { "modifier_option_id": "<string>" }, { "modifier_option_id": "<string>" } ] }, { "quantity": "<number>", "variant_id": "<string>", "price": "<number>", "cost": "<number>", "line_note": "<string>", "line_taxes": [ { "id": "<string>" }, { "id": "<string>" } ], "line_discounts": [ { "id": "<string>" }, { "id": "<string>" } ], "line_modifiers": [ { "modifier_option_id": "<string>" }, { "modifier_option_id": "<string>" } ] } ], "payments": [ { "payment_type_id": "<string>", "money_amount": "<number>", "name": "<string>", "type": "<string>", "paid_at": "<dateTime>", "payment_details": { "authorization_code": "<string>", "reference_id": "<string>", "entry_method": "<string>", "card_company": "<string>", "card_number": "<string>" } }, { "payment_type_id": "<string>", "money_amount": "<number>", "name": "<string>", "type": "<string>", "paid_at": "<dateTime>", "payment_details": { "authorization_code": "<string>", "reference_id": "<string>", "entry_method": "<string>", "card_company": "<string>", "card_number": "<string>" } } ] } Link to comment Share on other sites More sharing options...
Recommended Posts
Posted by Yasuaki,
0 reactions
Go to this post