curl --request POST \
--url http://fbox.ngrok.io/order/create \
--header 'Content-Type: application/json' \
--data '
{
"receipt_type": "<string>",
"number": 123,
"products": [
{
"name": "<string>",
"barcode": "<string>",
"amount": 123,
"unit_name": "<string>",
"price": 123,
"product_price": 123,
"vat": 123,
"vat_percent": 123,
"discount": 123,
"discount_percent": 123,
"other": 123,
"labels": [
"<string>"
],
"class_code": "<string>",
"package_code": "<string>",
"owner_type": "<string>",
"comission_info": {
"inn": "<string>",
"pinfl": "<string>"
}
}
],
"uuid": "<string>",
"time": "2025-01-15 14:30:45",
"cashier": "Bob Williams",
"received_cash": "1,000 UZS -> 100,000 UZS TIYIN",
"change": "Bob Williams",
"received_card": "1,000 UZS -> 100,000 UZS TIYIN",
"card_type": "1",
"ppt_id": "123456789012",
"scan2pay_paid": false,
"extra_info": [
{
"phone_number": "+998909999999",
"qr_payment_id": "<string>",
"qr_payment_provider": "0141",
"scan2pay_id": "49d92156-8f8b-4b93-a12e-77087b177e02"
}
],
"send_email": false,
"email": "[email protected]"
}
'{
"receipt_type": "<string>",
"number": 123,
"products": [
{
"name": "<string>",
"barcode": "<string>",
"amount": 123,
"unit_name": "<string>",
"price": 123,
"product_price": 123,
"vat": 123,
"vat_percent": 123,
"discount": 123,
"discount_percent": 123,
"other": 123,
"labels": [
"<string>"
],
"class_code": "<string>",
"package_code": "<string>",
"owner_type": "<string>",
"comission_info": {
"inn": "<string>",
"pinfl": "<string>"
}
}
],
"uuid": "<string>",
"time": "2025-01-15 14:30:45",
"cashier": "Bob Williams",
"received_cash": "1,000 UZS -> 100,000 UZS TIYIN",
"change": "Bob Williams",
"received_card": "1,000 UZS -> 100,000 UZS TIYIN",
"card_type": "1",
"ppt_id": "123456789012",
"scan2pay_paid": false,
"extra_info": [
{
"phone_number": "+998909999999",
"qr_payment_id": "<string>",
"qr_payment_provider": "0141",
"scan2pay_id": "49d92156-8f8b-4b93-a12e-77087b177e02"
}
],
"send_email": false,
"email": "[email protected]"
}Operation for create order / Продажа, аванс, кредит
curl --request POST \
--url http://fbox.ngrok.io/order/create \
--header 'Content-Type: application/json' \
--data '
{
"receipt_type": "<string>",
"number": 123,
"products": [
{
"name": "<string>",
"barcode": "<string>",
"amount": 123,
"unit_name": "<string>",
"price": 123,
"product_price": 123,
"vat": 123,
"vat_percent": 123,
"discount": 123,
"discount_percent": 123,
"other": 123,
"labels": [
"<string>"
],
"class_code": "<string>",
"package_code": "<string>",
"owner_type": "<string>",
"comission_info": {
"inn": "<string>",
"pinfl": "<string>"
}
}
],
"uuid": "<string>",
"time": "2025-01-15 14:30:45",
"cashier": "Bob Williams",
"received_cash": "1,000 UZS -> 100,000 UZS TIYIN",
"change": "Bob Williams",
"received_card": "1,000 UZS -> 100,000 UZS TIYIN",
"card_type": "1",
"ppt_id": "123456789012",
"scan2pay_paid": false,
"extra_info": [
{
"phone_number": "+998909999999",
"qr_payment_id": "<string>",
"qr_payment_provider": "0141",
"scan2pay_id": "49d92156-8f8b-4b93-a12e-77087b177e02"
}
],
"send_email": false,
"email": "[email protected]"
}
'{
"receipt_type": "<string>",
"number": 123,
"products": [
{
"name": "<string>",
"barcode": "<string>",
"amount": 123,
"unit_name": "<string>",
"price": 123,
"product_price": 123,
"vat": 123,
"vat_percent": 123,
"discount": 123,
"discount_percent": 123,
"other": 123,
"labels": [
"<string>"
],
"class_code": "<string>",
"package_code": "<string>",
"owner_type": "<string>",
"comission_info": {
"inn": "<string>",
"pinfl": "<string>"
}
}
],
"uuid": "<string>",
"time": "2025-01-15 14:30:45",
"cashier": "Bob Williams",
"received_cash": "1,000 UZS -> 100,000 UZS TIYIN",
"change": "Bob Williams",
"received_card": "1,000 UZS -> 100,000 UZS TIYIN",
"card_type": "1",
"ppt_id": "123456789012",
"scan2pay_paid": false,
"extra_info": [
{
"phone_number": "+998909999999",
"qr_payment_id": "<string>",
"qr_payment_provider": "0141",
"scan2pay_id": "49d92156-8f8b-4b93-a12e-77087b177e02"
}
],
"send_email": false,
"email": "[email protected]"
}Order create
The order receipt type
The order number or id
List of products in the order
Show child attributes
uuid number
Time in format yyyy-MM-dd HH:mm:ss
"2025-01-15 14:30:45"
Cashier name
"Bob Williams"
received_cash should be provided in tiyin (multiplied by 100)
"1,000 UZS -> 100,000 UZS TIYIN"
Cashier name
"Bob Williams"
received_card should be provided in tiyin (multiplied by 100)
"1,000 UZS -> 100,000 UZS TIYIN"
Paid card type Personal card: 2 Corporate card: 1
"1"
RRN (Retrieval Reference Number) from the bank pinpad response (Humo, Uzcard).
"123456789012"
Indicates whether the payment was made via the Scan2Pay service. true if yes, otherwise else.
false
List of products in the order
Show child attributes
Send order data via email
false
Receiver email for order data
Order created successfully
The order receipt type
The order number or id
List of products in the order
Show child attributes
uuid number
Time in format yyyy-MM-dd HH:mm:ss
"2025-01-15 14:30:45"
Cashier name
"Bob Williams"
received_cash should be provided in tiyin (multiplied by 100)
"1,000 UZS -> 100,000 UZS TIYIN"
Cashier name
"Bob Williams"
received_card should be provided in tiyin (multiplied by 100)
"1,000 UZS -> 100,000 UZS TIYIN"
Paid card type Personal card: 2 Corporate card: 1
"1"
RRN (Retrieval Reference Number) from the bank pinpad response (Humo, Uzcard).
"123456789012"
Indicates whether the payment was made via the Scan2Pay service. true if yes, otherwise else.
false
List of products in the order
Show child attributes
Send order data via email
false
Receiver email for order data