Create invoice by token
POST/merchant-api/v1/invoices/create-token
This method is creating invoice by token
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
Cvv of the credit card
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
Card token to pay for invoice
Ip address of the buyer
Possible values: [ru, en, ua, es, it, de, pt, bg, pl, fr]
Language of the form
Url of your project needed for some gates
An optional parameter required to modify the stored token data. Existing token parameters will be overwritten by the submitted data.
Responses
- 201
The invoice by token 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"
}