Skip to main content

Create an invoice

POST 

/checkout

Creates a payment invoice with the provided amount information. Upon successful creation, a unique checkoutId is returned, which can be used for payment transactions.

Request

Header Parameters

    Authorization stringrequired

    Send client_secret as a Bearer token

Body

required

The entityId (client_id) and client_secret will be provided when registering as a merchant.

    entityId stringrequired

    Merchant ID (client_id)

    redirect_uri stringrequired

    URI to receive payment response

    webhook_url string

    URL to receive payment response

    amount numberrequired

    Payment amount

    qrData boolean

    If true, a dynamic QR code will be generated.

    items

    Item[]

    Optional: For sales analysis of specific products

  • Array [

  • itemno string

    Possible values: <= 32 characters

    Product number

    name string

    Possible values: <= 200 characters

    Product name

    price number

    Unit price of the product

    quantity integer

    Quantity of the product

    brand string

    Possible values: <= 50 characters

    Brand name of the product

    measure string

    Possible values: <= 10 characters

    Measurement unit (e.g., piece, liter, kg)

    vat number

    VAT amount

    citytax number

    City tax

  • ]

  • message string

    Алдааны мэдээлэл

Responses

Request Response

Schema

  • Array [

  • code stringrequired

    Possible values: [0, 1]

    Request status

    description stringrequired

    Possible values: [SUCCESS, UNSUCCESS, USER_PAYMENT_VERIFICATION_FAILED, RISK_REJECT, REGULATION_RESTRICTION, PROCESS_FAIL]

    Status information

    checkoutId stringrequired

    Possible values: <= 48

    Checkout ID (created if successful)

    expires string

    Checkout expiration time

    qrData string

    (if qrData request was made)

    message string

    Алдааны мэдээлэл

  • ]

Loading...