Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Метод для скасування ініціювання повернення коштів на картку платника. Може бути викликаний після This is a method for canceling the initiation of a refund to the payer's card. This action can be performed afterhttps://uapayua.atlassian.net/wiki/pages/resumedraft.action?draftId=2607054849, платіж повинен бути з типом C2A та статусом the payment must be of type C2A and status WAITING_COMPLETE, а операція з типом RETURN та статусом and the transaction must be of type RETURN and status NEEDS_COMPLETE. Після виклику статус платежу повернеться в FINISHED, а статус операції повернення стане CANCELED.

Метод запиту - POST

Шлях запиту After the call, the status of the payment will return to FINISHED, and the status of the return operation will become CANCELED.

Request method - POST

Request path - /api/p2p/payments/c2a/reverse/cancel

Параметри для формування тіла запиту у форматі JSON

...

Ключ

...

Тип даних

...

Обов'язковий?

...

Опис

...

Parameters for forming the request body in JSON format

Key

Data type

Obligated?

Description

Example

params.sessionId

string

такyes

client session id сесії клієнта

"445fb296-8653-4646-8475-5796c97d16ff"

params.paymentId

string

так, один із цих параметрівyes, one of these parameters: params.paymentId, params.reverseOperationId або , or params.reverseExternalId

payment id платежу

"a85ee391-46ca-4766-b376-292bd7efbeea"

params.reverseOperationId

string

return operation id операції повернення

"2a01fd7c-f9ca-444e-a800-d6ce59b87e96"

params.reverseExternalId

stringзовнішній

id операції поверненняthe external id of the return operation

"3b604870-7361-4125-9a41-03c12e8bc31b"

Приклади тіла запитуRequest body examples

Code Block
languagejson
{
  "params": {
    "sessionId": "445fb296-8653-4646-8475-5796c97d16ff",
    "paymentId": "a85ee391-46ca-4766-b376-292bd7efbeea"
  }
}

абоor

Code Block
languagejson
{
  "params": {
    "sessionId": "445fb296-8653-4646-8475-5796c97d16ff",
    "reverseExternalId": "3b604870-7361-4125-9a41-03c12e8bc31b"
  }
}

Параметри тіла відповіді у форматі JSON

...

Ключ

...

Тип даних

...

Опис

...

Response body parameters in JSON format

key

Date type

Description

Example

data.paymentId

string

payment id платежу

"a85ee391-46ca-4766-b376-292bd7efbeea"

data.reverseOperationId

string

return operation id операції повернення

"2a01fd7c-f9ca-444e-a800-d6ce59b87e96"

data.reverseExternalId

stringзовнішній

id операції поверненняthe external id of the return operation

"3b604870-7361-4125-9a41-03c12e8bc31b"

Приклад тіла відповіді Example of a response body

Code Block
languagejson
{
  "status": 1,
  "data": {
    "paymentId": "a85ee391-46ca-4766-b376-292bd7efbeea",
    "reverseOperationId": "2a01fd7c-f9ca-444e-a800-d6ce59b87e96",
    "reverseExternalId": "3b604870-7361-4125-9a41-03c12e8bc31b"
  }
}

...