This is a method for initiating a refund to the payer's card. As part of a successful write-off debiting for a payment with a C2A status of FINISHED and a write-off debit operation with a SEND type of a FINISHED status, a return operation with a RETURN type and a NEEDS_COMPLETE status is created, and the C2A payment status changes to WAITING_COMPLETE. After that, you can perform the action Test C2A Reverse Complete - завершення ініціювання повернення or Test completion of return initiation or C2A Reverse Cancel - скасування ініціювання поверненняcancellation of return initiation .
Info |
---|
If not one of the methods is called by the client within 1 hour, it will be called automaticallyTest C2A Reverse Cancel - скасування ініціювання поверненняcancellation of return initiation . |
Request method - POST
Request path - /api/p2p/payments/c2a/reverse/initiate
Parameters for forming the request body in JSON format
Key | Data type | ObligatedRequired? | 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 | "a85ee391-46ca-4766-b376-292bd7efbeea" |
params.operationId | string | debit operation id | "bc3c95f1-bf2a-4e61-8c88-8444b1b4e014" | |
params.externalId | string | the external id of the write-off operation | "ad6cee7f-88ff-4090-ae38-8e6a0f260cd8" | |
params.reverseExternalId | string | yes | unique external return refund id in the client's system, which will be assigned to the created operation, no more than 255 characters | "3b604870-7361-4125-9a41-03c12e8bc31b" |
...