To‘lov tranzaksiyasini yaratish
Endpoint details
Method:
POST
URL: BASE_URL/merchant/receipts/create/
Header:
http
Authorization: Bearer <ACCESS_TOKEN>| Fields | sample_data | Type | Required | Description |
|---|---|---|---|---|
| userId | 123 | string | No | userId (merchant tomonidan berilgan identifikator) |
| amount | 1000 | int | Yes | Summa SUM ko‘rinishida yuboriladi (1000 = 1 ming SUM) |
| account | dict | Yes | Merchant saqlashi kerak bo‘lgan qo‘shimcha ma’lumot bo‘lmasa bo‘sh dict yuboring: {"account": {}} |
Request example
json
{
"userId": "string",
"amount": 1000,
"account": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}Success response example
json
{
"transactionId": "string"
}Error response example
json
{
"error": {
"code": "string",
"message": "string"
}
}