MugglePay Docs
  • 🇺🇸Readme
  • 🇭🇰Readme-zh
  • API Status
    • Authentication
    • HTTP Response and Error Codes
    • Order Status
  • FAQs
    • Customer FAQ
    • Get started
    • Merchant FAQ
    • API Overview
    • 客户常见问题解答
  • API Order
    • Cancel Order
    • Checkout Order
    • Create Order
    • Get Order
    • Get Orders
    • Payment Callback (Webhook)
    • Refund
    • AI Prompts (Cursor, Lovable, Bolt etc)
  • Self-managed (Non-Custodian)
  • Media Kit
Powered by GitBook
On this page
  • Definition
  • Body Params
  • Example
  1. API Order

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'
	
PreviousPayment Callback (Webhook)NextAI Prompts (Cursor, Lovable, Bolt etc)

Last updated 1 year ago