Skip to main content
POST
/
stores
/
{storeId}
/
refunds
/
orders
/
{orderId}
cURL
curl --request POST \
  --url https://api.pandabase.io/v2/core/stores/{storeId}/refunds/orders/{orderId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "DUPLICATE"
}
'
{
  "ok": true,
  "data": {
    "id": "rfd_3kx9p2vqwm5j8h0r1n4tzcbf",
    "amount": 2900,
    "status": "COMPLETED",
    "reason": "REQUESTED_BY_CUSTOMER",
    "createdAt": "2026-05-14T12:34:56.000Z",
    "updatedAt": "2026-05-14T12:35:10.000Z",
    "order": {
      "id": "ord_p2v8q1mzj0kxw5h7n4tr3bcf",
      "orderNumber": "cs_abcdef0123456789",
      "status": "REFUNDED",
      "amount": 2900,
      "currency": "USD",
      "customer": {
        "id": "cus_j8h0r1n4tzcbfp2v8q1mzwx5",
        "email": "buyer@example.com",
        "firstName": "Alex",
        "lastName": "Doe"
      }
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pandabase.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token mode — passes the secret directly. Token starts with sk_.

Path Parameters

storeId
string
required
Required string length: 12 - 48
orderId
string
required
Required string length: 12 - 48

Body

application/json
reason
Available options:
DUPLICATE

Response

Default Response

ok
enum<boolean>
required
Available options:
true
data
any
required