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

C2A Reverse Complete - completion of refund initiation

This is the method to complete the initiation of a refund to the payer's card. This action can be performed after C2A Reverse Initiate -initiating a refund, 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 return process begins on the part of the acquirer's bank and it can become successful (payment status RETURNED and return operation status FINISHED) or unsuccessful (payment status will return to FINISHED and return operation status will become REJECTED).

Request method - POST

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

Parameters for forming the request body in JSON format

Key

Data type

Obligated?

Description

Example

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

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" } }

 

Related pages

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