Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 788 Bytes

Refund.md

File metadata and controls

41 lines (32 loc) · 788 Bytes

Refund

Making a refund request for a specific order by MugglePay order ID.

Use it when the order status is PAID.

It's done by MugglePay payment page. ONLY use this if you want to build an in-house payment without redirecting.


Definition

POST https://api.mugglepay.com/v1/orders/:order_id/refund

Body Params

Param Type Required Description
order_id string Yes MugglePay order ID. It's provided in the response of Create Order.

Example

curl -X POST \
  https://api.mugglepay.com/v1/orders/8cbe9c00-7b0d-4b03-816f-e88a3c6bfa5c \
  -H 'token: API_TOKEN_GET_FROM_ADMIN_PORTAL'