Refund the payment an attach attempt took

Called by refunds-api. The attachment names the wallet that took the payment, the payment's id there, its amount and when it was paid. For Maya the payment is voided on the day it was paid (Philippine time) and refunded afterwards. Each reference_id reaches the wallet at most once: a repeat returns the first outcome. A refusal by the wallet, an error or no answer from it, is returned as status failed with a code in provider_error. A 4xx means nothing was reversed; any 5xx means the outcome is not final and the refund must stay pending. In test mode the wallet is not called.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Attach attempt id of the payment

Body Params

Refund parameters

Refund of the payment an attach attempt took. Which wallet took it, the payment's id there, its amount and its paid time come from the attachment.

integer
required
string
enum
required
Allowed:
metadata
object
string
enum
required
Allowed:
string
required
length ≤ 100
Headers
string
enum
required

Mode of the refund: true or false

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json