cURL
curl --request POST \ --url https://api.decodahealth.com/billing/payment/refund \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: application/json' \ --header 'TENANT: <tenant>' \ --data ' { "paymentId": "<string>", "providerId": "<string>", "amount": 123, "reason": "DUPLICATE", "description": "<string>", "locationId": "<string>", "restoreInventory": false } '
{ "id": "<string>", "paymentId": "<string>", "amount": 123, "reason": "DUPLICATE", "createdDate": "2023-11-07T05:31:56Z", "status": "CANCELED", "rainforestRefundId": "<string>", "fee": 0 }
The tenant you are making this request on behalf of
Your api key
Create a refund for a payment.
DUPLICATE
DISPUTE
BOOKING_FEE
OTHER
Successful Response
CANCELED
CREATED
FAILED
IN_REVIEW
PRESENTING
PROCESSING
SUCCEEDED