Retrieve a payment
GET
/{phone_number_id}/payments/{payment_configuration}/{reference_id}Returns whether a payment request has been paid. Always confirm the payment with your payment gateway before you deliver the order.
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.
payment_configuration*string
Name of your payment configuration in WhatsApp Manager.
reference_id*string
Your order ID from the payment request.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://wa.hostmentor.com/v3/106540352242922/payments/main-store/order-1042" \ -H "apikey: YOUR_API_KEY"{ "payments": [ { "reference_id": "order-1042", "status": "CAPTURED", "amount": { "value": 104800, "offset": 100 }, "currency": "INR" } ]}