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

    Redirect after payment

    webhook_url string

    URL to receive payment response

    amount numberrequired

    Payment amount

    qrData boolean

    If true, a dynamic QR code will be generated.

    txndesc string

    Possible values: <= 255 characters

    Transaction description

    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...