Skip to content

Create a new order

Request

Security
InfiniHmac
Headers
Datestring

GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request.

Authorizationstring

HMAC-SHA256 Signature header. See the Authentication guide.

Digeststring

SHA-256 digest of the request body (when a body is present).

Bodyapplication/jsonrequired
client_referencestring, (string)

Client Reference

request_idstring, (string)required

request id (unique)

order_descstring, (string)

Order description

currencystring, (string)

Order currency (USD, EUR, GBP, CAD, SGD, AUD)

Default:"USD"
amountstring, (string)required

Order amount. The minimum is greater than 0.1 for crypto acquiring; fiat payment methods require at least 16.

merchant_aliasstring, (string)

customized merchant alias (optional)

expires_ininteger, (int64)

Time to live in seconds (e.g., 3600 for 1 hour, 0 for default order expires time)

success_urlstring, (string)

Success redirect Url

failure_urlstring, (string)

Failure redirect Url

pay_methodsArray of integers, (int)

Enabled payment modes for this order (optional, inherits from merchant config if not specified)

emailstring, (string)

Payer email (optional)

curl -i -X POST \
  -u '<username>:<password>' \
  https://developer.infini.money/_mock/apis/acquiring/order \
  -H 'Authorization: string' \
  -H 'Content-Type: application/json' \
  -H 'Date: string' \
  -H 'Digest: string' \
  -d '{
    "client_reference": "string",
    "request_id": "string",
    "order_desc": "string",
    "currency": "USD",
    "amount": "string",
    "merchant_alias": "string",
    "expires_in": 0,
    "success_url": "string",
    "failure_url": "string",
    "pay_methods": [
      0
    ],
    "email": "string"
  }'

Responses

Bodyapplication/json
client_referencestring, (string)
request_idstring, (string)
order_idstring, (string)

Order id

checkout_urlstring, (string)

Checkout url

tokenstring, (string)

Token

Response
{ "client_reference": "string", "request_id": "string", "order_id": "string", "checkout_url": "string", "token": "string" }