Create invoice
POST/merchant-api/v1/invoices/create
This method is creating invoice
Request
- application/json
Body
required
The description for the Post Body.
Amount of money for invoice
Id of the gate used for transaction
Comment for invoice
Possible values: [USD, EGP, RUB, KZT, EUR, UAH, MXN, INR, TRY, UZS, AZN, MDL, VND, KRW, AED, IDR, PKR, PEN, CLP, MAD, BYN, COP, NGN, ZAR, SAR, XOF, CAD, AUD, GBP, PLN, NZD, NOK, DKK, SEK, HUF, PHP, TJS, RSD]
Currency of the invoice
Client information must be unique
The URL to which the payer will be redirected after successful payment of the invoice
The URL to which the payer will be redirected after an unsuccessful invoice payment
URL address to which the transaction status notification will be sent
Ip address of the buyer
Create payment recurrent token of the card(available for some gates)
Possible values: [ru, en, ua, es, it, de, pt, bg, pl, fr]
Language of the form
Payers's email, needed for some gates
Payers's phone number with country code, '+' - is optional
Url of your project needed for some gates
Additional parameters are needed for some gates, for example, when personal data needs to be provided to the API, not through a form. Example:{"first_name": "Alex"}
Responses
- 201
The invoice has been successfully created.
- application/json
- Schema
- Example (from schema)
Schema
Unique id of the invoice
Amount of money to pay for the invoice
Possible values: [Created, Pending, Failed, Succeed, Refund]
Current status of the invoice
Current remark of the invoice
Currency of the invoice
Url for invoice payment
the information about the client
the description of the invoice
Time stamp of the invoice creation
{
"transaction_uid": "6f15174c-241a-41d9-91be-001454f9c13b",
"amount": "2500",
"status": "Created",
"remark": "",
"currency_id": "RUB",
"invoice_url": "http://smart-gates.ru/123232112321",
"external_id": "code123",
"comment": "My first invoice",
"created_at": "2022-09-15T07:26:13.893Z"
}