Skip to main content
POST
/
order
/
create
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]"
}

Body

application/json

Order create

receipt_type
string
required

The order receipt type

number
integer

The order number or id

products
object[]

List of products in the order

uuid
string

uuid number

time
string

Time in format yyyy-MM-dd HH:mm:ss

Example:

"2025-01-15 14:30:45"

cashier
string

Cashier name

Example:

"Bob Williams"

received_cash
string

received_cash should be provided in tiyin (multiplied by 100)

Example:

"1,000 UZS -> 100,000 UZS TIYIN"

change
string

Cashier name

Example:

"Bob Williams"

received_card
string

received_card should be provided in tiyin (multiplied by 100)

Example:

"1,000 UZS -> 100,000 UZS TIYIN"

card_type
integer

Paid card type Personal card: 2 Corporate card: 1

Example:

"1"

ppt_id
string

RRN (Retrieval Reference Number) from the bank pinpad response (Humo, Uzcard).

Example:

"123456789012"

scan2pay_paid
boolean

Indicates whether the payment was made via the Scan2Pay service. true if yes, otherwise else.

Example:

false

extra_info
object[]

List of products in the order

send_email
boolean

Send order data via email

Example:

false

email
string

Receiver email for order data

Response

Order created successfully

receipt_type
string
required

The order receipt type

number
integer

The order number or id

products
object[]

List of products in the order

uuid
string

uuid number

time
string

Time in format yyyy-MM-dd HH:mm:ss

Example:

"2025-01-15 14:30:45"

cashier
string

Cashier name

Example:

"Bob Williams"

received_cash
string

received_cash should be provided in tiyin (multiplied by 100)

Example:

"1,000 UZS -> 100,000 UZS TIYIN"

change
string

Cashier name

Example:

"Bob Williams"

received_card
string

received_card should be provided in tiyin (multiplied by 100)

Example:

"1,000 UZS -> 100,000 UZS TIYIN"

card_type
integer

Paid card type Personal card: 2 Corporate card: 1

Example:

"1"

ppt_id
string

RRN (Retrieval Reference Number) from the bank pinpad response (Humo, Uzcard).

Example:

"123456789012"

scan2pay_paid
boolean

Indicates whether the payment was made via the Scan2Pay service. true if yes, otherwise else.

Example:

false

extra_info
object[]

List of products in the order

send_email
boolean

Send order data via email

Example:

false

email
string

Receiver email for order data