HostMentor Docs

Refund a payment

POST/{phone_number_id}/payments_refund

Refunds all or part of a payment made inside WhatsApp. The refund starts as pending; your payment gateway completes it and returns the money to the customer.

Authorization

apiKey
apikey<token>

Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.

In: header

Path Parameters

phone_number_id*string

ID of your WhatsApp number, from the dashboard or List your phone numbers. It isn't the phone number itself.

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://wa.hostmentor.com/v3/106540352242922/payments_refund" \  -H "apikey: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "reference_id": "order-1042",    "payment_config_id": "main-store",    "speed": "normal",    "amount": {      "currency": "INR",      "value": 49900,      "offset": 100    }  }'
{  "id": "rfnd_OT3Mjhs8dhW2Ks",  "status": "pending",  "speed_processed": "normal"}