Перейти к основному содержанию
POST
/
payment
/
payme
Payme Go payment
curl --request POST \
  --url https://fbox.ngrok.io/payment/payme \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 1000,
  "qr_code": "50502044301381396427"
}
'
{
  "data": {
    "amount": 1000,
    "transaction_id": "a12fc00f-5af5-65b8-adf8-74bff44680ee",
    "payment_id": "696e0246c9a128176d5934d8",
    "inn": "123456789",
    "qr_code": "50502244301381336427",
    "kkm_id": "00000011",
    "device_id": "00000011",
    "status": "successfully",
    "message": "successfully payment",
    "client_phone_number": "998712565009"
  },
  "error": null,
  "is_success": true
}

Обзор

Payme Go Payment API используется для инициации платежа через Payme. Эндпоинт создает платежную транзакцию и возвращает payment_id that must be used later for fiscalization.

Поля запроса

ПолеТипОбяз.Описание
amountintegerPayment amount in sums
qr_codestringUnique Payme transaction identifier

Поля ответа

✅ Успешный ответ 200

ПолеТипОписание
dataobjectДанные ответа
data.amountintegerPayment amount in sums
data.transaction_idstringTransaction UUID
data.payment_idstringUnique payment identifier
data.innstringClient tax identifier
data.qr_codestringQR code of the transaction
data.kkm_idstringKKM (cash register) ID
data.device_idstringDevice ID
data.statusstringPayment status (successfully, failed, etc.)
data.messagestringOptional message from provider
data.client_phone_numberstringClient phone number
errornullError object (always null on success)
is_successbooleanAlways true

🚫 Ответ с ошибкой 400

Примечание: Даже при ошибке валидации сервер возвращает HTTP 200.
ПолеТипОписание
datanullNo data returned
errorobjectError details
error.codeintegerInternal error code
error.messagestringПонятное описание ошибки
error.dataany | nullAdditional error details
is_successbooleanAlways false

Тело

application/json
amount
integer
обязательно

Payment amount in sums

Пример:

1000

qr_code
string
обязательно

Unique transaction identifier

Ответ

Fiscalization successful

data
object
error
string | null
is_success
boolean
Пример:

true