UAPAY - національний платіжний сервіс

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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, the payment must be of type C2A and status WAITING_COMPLETE, and the transaction must be of type RETURN and status NEEDS_COMPLETE. 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

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

the external id of the return operation

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

Request body examples

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

or

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

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

the external id of the return operation

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

Example of a response body

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

  • No labels