Create payment
POST api/v2/paygate/payment/wallet/
Create a payment by wallet
Request Body schema
application/json
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| endpoint | string |
Yes | Api key | "1dc4441f-38d5-42b5-a705-81958f928462" |
| amount | integer | Yes | Amount in minor units | 1000 |
| currency | integer | Yes | Number code | 978 |
| buyer | object | Yes | Buyer at the endpoint in JSON format | {"remote_id": "string", "ip": "string"} |
| description | string | No | Description | "string" |
| client_id | string | No | Transaction id at the endpoint. Max 255 chars |
"string" |
| success_url | string or null |
No | Redirect URL after success result | "http://example.com" |
| fail_url | string or null |
No | Redirect URL after fail result | "http://example.com" |
| notify_url | string or null |
No | Notification URL of changed status | "http://example.com" |
| payment_method | string or null | No | The method of payment being used for the transaction. Used for some types of payments. |
"string" |
| name | string | No | The customer's name. Used for some types of payments. |
"John Smith" |
| first_name | string | No | The customer's first name. Used for some types of payments. |
"John" |
| last_name | string | No | The customer's last name. Used for some types of payments. |
"Smith" |
| string |
No | The customer's email. Used for some types of payments. |
"user@example.com" | |
| phone | string | No | The customer's phone number. Used for some types of payments. |
"string" |
| country | string | No | The customer's country code. Used for some types of payments. (ISO 3166-1 alpha-2) |
"string" |
| account_number | string | No | The customer's account number. Used for some types of payments. (Wallet number, Bank account number, VPA...) |
"12312312312" |
| date_registration | string |
No | The customer's date registration (YYYY-MM-DD). Used for some types of payments. |
"2000-01-01" |
| deposit_amount | integer | No | The customer's deposit amount in minor units. Used for some types of payments. |
1000 |
| deposit_count | integer | No | The customer's deposit count. Used for some types of payments. |
10 |
| document_number | string | No | The customer's document number. Used for some types of payments. |
"111111111" |
| document_type | string | No | The customer's document type. Used for some types of payments. |
"string" |
| browser_info | object or null | No | Browser info in JSON format | {"property1": null, "property2": null} |
Request sample
{
"endpoint": "1dc4441f-38d5-42b5-a705-81958f928462",
"amount": 1000,
"currency": 978,
"buyer": {
"remote_id": "string",
"ip": "string"
},
"description": "string",
"client_id": "string",
"success_url": "http://example.com",
"fail_url": "http://example.com",
"notify_url": "http://example.com",
"payment_method": "string",
"name": "John Smith",
"first_name": "John",
"last_name": "Smith",
"email": "user@example.com",
"phone": "string",
"country": "string",
"account_number": "12312312312",
"date_registration": "2000-01-01",
"deposit_amount": 1000,
"deposit_count": 10,
"document_number": "111111111",
"document_type": "string",
"browser_info": {
"property1": null,
"property2": null
}
}
Response sample
STATUS 201
{
"redirect_url": "http://example.com",
"info": {
"tx": "f17d7f5c-6b4a-47fd-95eb-08086e250473",
"payment": {},
"status": "create",
"currency": {
"id": 0,
"title": "Euro",
"char_code": "EUR",
"num_code": 978
},
"amount": 1000,
"created_at": "2000-01-01T00:00:00Z",
"errors": {},
"parts_tx": [],
"additional_data": {},
"endpoint_logo": "string"
},
"qr_code": {
"qrcode": "string",
"beneficiary": "string",
"format": "string",
"copypaste": "string"
},
"p2p_wallet_data": {
"target_account_number": "string",
"bank_name": "string",
"holder": "string",
"valid_till": "2000-01-01T00:00:00Z",
"tll": "00:00:00Z"
},
"p2p_card_data": {
"target_account_number": "string",
"bank_name": "string",
"holder": "string",
"valid_till": "2000-01-01T00:15:00Z",
"tll": "00:15:00Z"
},
"pay_data": "string"
}