Платеж
Запрос создает платежную транзакцию.
Примеры платежей
- Обычные платежи
- Рекуррентные платежи
- Оплата по токену
- Mobile платежи
- Одношаговый
- Двухшаговый
PUT /sites/site-01/payments/1234asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "CARD",
"pan": 4929915007230906,
"expiryDate": "12/24",
"cvv2": "123"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"flags": ["SALE"],
"customer": {
"account": "123456"
}
}
{
"paymentId": "1234asdzxc",
"createdDateTime": "2023-12-01T12:03:18.339+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "492991******0906"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-01T12:03:18.357+06:00"
},
"customer": {
"account": "123456"
},
"flags": ["SALE"],
}
PUT /sites/site-01/payments/1234asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "CARD",
"pan": 4929915007230906,
"expiryDate": "12/24",
"cvv2": "123"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"customer": {
"account": "123456"
}
}
{
"paymentId": "1234asdzxc",
"createdDateTime": "2023-12-01T12:03:18.339+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "492991******0906"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-01T12:03:18.357+06:00"
},
"customer": {
"account": "123456"
},
"flags": []
}
- Одношаговый
- Двухшаговый
- Последующий одношаговый
- Последующий двухшаговый
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "CARD",
"pan": 4929915007230906,
"expiryDate": "12/24",
"cvv2": "123"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"flags": ["SALE", "RECURRENT_FIRST"]
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"recurrent": {
"minAuthDay": 30,
"expiryDate": "2023-12-31"
}
}
{
"paymentId": "123asdzxc",
"createdDateTime": "2023-12-01T12:03:35.782+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "524366******0066"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-01T12:03:35.805+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": [
"SALE",
"RECURRENT_FIRST"
]
}
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "CARD",
"pan": 4929915007230906,
"expiryDate": "12/24",
"cvv2": "123"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"flags": [
"RECURRENT_FIRST"
],
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"recurrent": {
"minAuthDay": 30,
"expiryDate": "2023-12-31"
}
}
{
"paymentId": "123asdzxc",
"createdDateTime": "2023-12-01T12:03:35.782+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "524366******0066"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-01T12:03:35.805+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": [
"RECURRENT_FIRST"
]
}
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "RECURRENT",
"firstPaymentId": "test_payment_01"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"flags": [
"SALE"
],
"comment": "Payment for testing.",
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
{
"paymentId": "test_payment_01",
"createdDateTime": "2023-12-20T09:06:10.807+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "524366******0066"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-20T09:06:11.103+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": ["SALE"]
}
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "RECURRENT",
"firstPaymentId": "test_payment_01"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
{
"paymentId": "test_payment_01",
"createdDateTime": "2023-12-20T09:06:10.807+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "524366******0066"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-20T09:06:11.103+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": []
}
- Одношаговый
- Двухшаговый
- Последующий одношаговый
- Последующий двухшаговый
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "CARD",
"pan": 4929915007230906,
"expiryDate": "12/24",
"cvv2": "123"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"flags": ["SALE", "BIND_PAYMENT_TOKEN"]
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
{
"paymentId": "123asdzxc",
"createdDateTime": "2023-12-01T12:03:35.782+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "524366******0066"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-01T12:03:35.805+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": [
"SALE",
"BIND_PAYMENT_TOKEN"
],
"createdToken": {
"token": "a7228290-f4e3-49ab-9715-8ffd98035a19",
"name": "524366******0066"
}
}
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "CARD",
"pan": 4929915007230906,
"expiryDate": "12/24",
"cvv2": "123"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"flags": [
"BIND_PAYMENT_TOKEN"
],
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
{
"paymentId": "123asdzxc",
"createdDateTime": "2023-12-01T12:03:35.782+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "CARD",
"maskedPan": "524366******0066"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-01T12:03:35.805+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": [
"BIND_PAYMENT_TOKEN"
],
"createdToken": {
"token": "a7228290-f4e3-49ab-9715-8ffd98035a19",
"name": "524366******0066"
}
}
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "TOKEN",
"paymentToken": "a7228290-f4e3-49ab-9715-8ffd98035a19"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"flags": [
"SALE"
],
"comment": "Payment for testing.",
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
{
"paymentId": "test_payment_01",
"createdDateTime": "2023-12-20T09:06:10.807+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "TOKEN"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-20T09:06:11.103+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": [
"SALE"
]
}
PUT /sites/site-01/payments/123asdzxc
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "TOKEN",
"paymentToken": "a7228290-f4e3-49ab-9715-8ffd98035a19"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"comment": "Payment for testing.",
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": []
}
{
"paymentId": "test_payment_01",
"createdDateTime": "2023-12-20T09:06:10.807+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "TOKEN"
},
"status": {
"value": "COMPLETED",
"changedDateTime": "2023-12-20T09:06:11.103+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
- Одношаговый OTP
- Одношаговый Без OTP
PUT /sites/site-01/payments/test_mobile_payment_01
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "MOBILE",
"phone": "77071234567"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"flags": [
"SALE"
],
"comment": "Payment for testing.",
"customer": {
"account": "123456",
"email": "test@test.kz"
}
{
"paymentId": "test_mobile_payment_01",
"createdDateTime": "2024-11-15T05:36:41+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "MOBILE"
},
"status": {
"value": "WAITING",
"changedDateTime": "2024-11-15T05:36:41+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": ["SALE"],
"requirements": {
"otp": "Need complete with confirm code"
}
}
PUT /sites/site-01/payments/test_mobile_payment_01
Accept: application/json
Authorization: Bearer 5628af1c-26d9-42e7-8a6a-c22d491d79fb
Content-type: application/json
{
"paymentMethod": {
"type": "MOBILE",
"phone": "77012223344"
},
"amount": {
"currency": "KZT",
"value": "100.00"
},
"flags": [
"SALE"
],
"comment": "Payment for testing.",
"customer": {
"account": "123456",
"email": "test@test.kz"
}
}
{
"paymentId": "test_mobile_payment_01",
"createdDateTime": "2024-11-15T07:05:37+06:00",
"amount": {
"currency": "KZT",
"value": "100.00"
},
"capturedAmount": {
"currency": "KZT",
"value": "0.00"
},
"refundedAmount": {
"currency": "KZT",
"value": "0.00"
},
"paymentMethod": {
"type": "MOBILE"
},
"status": {
"value": "WAITING",
"changedDateTime": "2024-11-15T07:05:37+06:00"
},
"customer": {
"account": "123456",
"email": "test@test.kz"
},
"flags": ["SALE"]
}
Параметры запроса
Path Parameters
Параметр | Тип | Обязательный | Описание |
---|---|---|---|
siteId | string | Да | Строковый идентификатор сайта ТСП в QIWI Кассе. |
paymentId | string | Да | Уникальный идентификатор платежа в информационной системе ТСП. Уникальность означает, что идентификатор должен отличаться от идентификаторов всех ранее созданных платежей ТСП в рамках одного siteId. |
Headers
Параметр | Тип | Обязательный | Описание |
---|---|---|---|
Authorization | string | Да | Авторизационные данные. "Bearer [acсess-token]" |
Content-type | string | Да | Тип запроса. "application/json" |
Accept | string | Да |