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

A2C Cancel - cancellation of enrollment initiation

A method for canceling the initiation of the transfer of funds to the recipient's card. The action can be performed afterhttps://uapayua.atlassian.net/wiki/spaces/AC/pages/2614394906, the payment must be of type A2C and status WAITING_COMPLETE, and the transaction should be of type RECEIVE and status NEEDS_COMPLETE. After the call, the status of the payment becomes OPEN, and the status of the transaction becomes CANCELED.

Request method - POST

Request path - /api/p2p/payments/a2c/cancel

Parameters for forming the request body in JSON format

Key

Data type

Required?

Description

Example

Key

Data type

Required?

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.operationId, or params.externalId

payment id

"25f2f3d4-0406-499b-bb9c-577596ad9ef6"

params.operationId

string

operation id

"d977281d-c4c5-4c81-b457-791767bb0a02"

params.externalId

string

external id of the operation

"116f3329-63b8-4eef-9e88-272bd8f697ac"

Request body examples

{ "params": { "sessionId": "445fb296-8653-4646-8475-5796c97d16ff", "paymentId": "25f2f3d4-0406-499b-bb9c-577596ad9ef6" } }

or

{ "params": { "sessionId": "445fb296-8653-4646-8475-5796c97d16ff", "externalId": "116f3329-63b8-4eef-9e88-272bd8f697ac" } }

Response body parameters in JSON format

Key

Date type

Description

Example

Key

Date type

Description

Example

data.paymentId

string

payment id

"25f2f3d4-0406-499b-bb9c-577596ad9ef6"

data.operationId

string

operation id

"d977281d-c4c5-4c81-b457-791767bb0a02"

data.externalId

string

external id of the operation

"116f3329-63b8-4eef-9e88-272bd8f697ac"

Example of a response body

{ "status": 1, "data": { "paymentId": "25f2f3d4-0406-499b-bb9c-577596ad9ef6", "operationId": "d977281d-c4c5-4c81-b457-791767bb0a02", "externalId": "116f3329-63b8-4eef-9e88-272bd8f697ac" } }

 

UAPAY - національний платіжний сервіс
pay@uapay.ua