Refund Reference
Summary
There are two groups of refunds — do not confuse them:
- Money returned to the wallet automatically — platform payment failed, or the platform charged less than the amount you held. No action needed.
- Per-line-item refund requests (
/v1/refunds*) — defective, missing, or undelivered goods… You send a request, the seller reviews it, then Elim credits the money to the wallet.
Cancelling an order does not automatically refund an order that is already paid (see Cancelling an order).
Every endpoint requires JWT authentication (Authorization: Bearer <token>) or an API Key (x-api-key). /v1/refunds* endpoints do not count toward the API quota.
Paths by which money returns to the wallet
Every amount appears in GET /v1/purchasing/wallet/transactions?type=order_refund, distinguished by reference_type.
| Situation | Who triggers it | Amount | reference_type |
|---|---|---|---|
| Platform payment clearly failed | Automatic | All held funds (goods + shipping + service fee). The order returns to unpaid, and you can resend the payment request | platform_payment_failed |
| The final order price (goods + domestic shipping) is lower than the held amount (price change, discount, bargaining) | Automatic after payment completes | The goods-amount difference, plus the proportional reduction in service fee (not exceeding the fee collected). The order’s total_amount_cny decreases accordingly, and payment.updated is sent | platform_discount |
| A per-line-item refund request is accepted | You send a request → the seller approves → Elim records the money coming in | The amount the seller actually refunded | refund_request |
| Refund of an entire paid order | Performed by Elim (no customer API) | The entire order; payment_status = refunded | order |
| Payment request rejected / order cancelled on the platform while funds are held | Automatic | Held funds are released (order_unfreeze), not refunded | — |
A per-line-item refund does not change the order’s
payment_statustorefunded; it only changes when Elim refunds the entire order.
Conditions for opening a refund request
- The order’s
statusispaid,shipped, orcompletedand it already has an order code on the platform. payment_statusis not yetrefunded.- Each line item can have only one open request at a time.
- The amount is within the allowed range — taken from
GET /v1/refunds/options.
Endpoints
Prefix /v1/refunds.
| Endpoint | Method | Description |
|---|---|---|
/v1/refunds/options | GET | Reasons, refund types, allowed amount range, maximum number of images |
/v1/refunds/evidence | POST | Upload evidence images (multipart order_id + file) — 1688 only |
/v1/refunds | POST | Create a refund request |
/v1/refunds | GET | List requests (order_id, status, page, size ≤ 50) |
/v1/refunds/:id | GET | Request details including evidence[] |
/v1/refunds/:id/cancel | POST | Cancel a request (only when the seller has not yet handled it or has rejected it) |
/v1/refunds/:id/return-options | GET | Return address and carriers (1688) |
/v1/refunds/:id/return-shipment | POST | Declare the return tracking number (1688) |
GET /v1/refunds/options
Parameters: order_id, purchase_order_line_id, goods_status, refund_type, quantity, lang. Always call it before creating a request to get the valid reasons and amount range.
| Field | Description |
|---|---|
refund_types | Selectable refund types |
reasons[] | id, text, need_voucher (images required), no_refund_carriage, tip |
min_amount / max_amount | Range of goods amount that can be refunded (CNY) |
can_edit_amount | Whether an amount other than max_amount may be entered |
max_carriage_amount, max_total_amount | Cap on shipping / total amount (if any) |
max_quantity, max_images | Limits on quantity and number of images |
existing | The open request for this line, if any |
POST /v1/refunds
{
"order_id": "ORD0000000123",
"purchase_order_line_id": "123456789012",
"goods_status": "buyer_received",
"refund_type": 1,
"reason_id": "1001",
"amount": 15.5,
"carriage_amount": 0,
"quantity": 1,
"description": "Item was broken on arrival",
"image_urls": ["https://cbu01.alicdn.com/..."]
}
| Field | Required | Description |
|---|---|---|
order_id | Yes | Order ID ORD... |
purchase_order_line_id | Yes | The line item to refund. Taobao: package_id. 1688: the order’s line-item ID |
goods_status | Yes | Taobao: 1–4. 1688: wait_seller_send, wait_buyer_receive, buyer_received, aftersale_not_received, aftersale_received |
refund_type | Yes | 1 = refund only · 2 = return and refund (1688 only) |
reason_id | Yes | Reason ID from options |
amount | Yes | Amount in CNY, at most 2 decimal places, within the options range |
carriage_amount | No | Shipping amount requested for refund (if the reason allows it) |
quantity | No | Quantity to refund |
description | No | Description. 1688: 2–150 characters |
image_urls | No | Taobao ≤ 3 images; 1688 ≤ 5 images, must be URLs from /evidence |
Refund request object
{
"id": "RF0000000045",
"order_id": "ORD0000000123",
"platform": "alibaba",
"purchase_order_line_id": "123456789012",
"refund_type": 1,
"requested_amount": 15.5,
"approved_amount": null,
"currency": "CNY",
"status": "pending_seller",
"customer_refund_status": "pending",
"seller_reason": null,
"created_at": "2026-06-19T00:00:00.000Z",
"updated_at": "2026-06-19T00:00:00.000Z"
}
status — seller-side status
| Value | Meaning |
|---|---|
not_requested | Not yet sent to the seller |
pending_seller | Waiting for the seller to review |
awaiting_return | The seller requires the goods to be returned — declare the tracking number |
return_in_transit | The returned goods are in transit |
supplier_refunded | The seller has refunded the money |
seller_rejected | The seller rejected it (seller_reason) — you can cancel the request |
closed | The request is closed |
customer_refund_status — refund-to-your-wallet status
| Value | Meaning |
|---|---|
not_applicable | There is no refund to the wallet (for example, the request was closed) |
pending | The seller has refunded, and Elim is recording it to credit the wallet |
approved | The wallet refund has been approved |
credited | Credited to the wallet — see the order_refund transaction, reference_type = refund_request |
failed | Could not credit the wallet — contact Elim |
Money only enters the wallet when customer_refund_status = credited. The amount credited is what the seller actually refunded (approved_amount), which may be lower than requested_amount.
Cancelling a request
POST /v1/refunds/:id/cancel — only when the request has been sent to the seller and status is pending_seller or seller_rejected. Otherwise it returns 409 REFUND_NOT_CANCELLABLE.
Returning goods (1688)
When refund_type = 2 and the seller accepts, status changes to awaiting_return:
GET /v1/refunds/:id/return-options— get the return address and the list of carriers.- Ship the goods, then
POST /v1/refunds/:id/return-shipmentwithlogistics_company_no,freight_bill(tracking number), and optionallydescription,image_urls.
Tracking status
Elim has no webhook for refunds. Poll GET /v1/refunds/:id periodically (space out the calls, for example once every few minutes) and reconcile the wallet with GET /v1/purchasing/wallet/transactions?type=order_refund. GET /v1/refunds/:id reads the status Elim has stored; the status is synced from the platform periodically, so it may lag the seller by a few minutes. Automatic refunds (the first table on this page) do come with payment.updated.
Error codes
| HTTP | Code | Meaning / how to handle |
|---|---|---|
422 | REFUND_NOT_AVAILABLE | This order does not support online refunds |
422 | REFUND_ORDER_NOT_PAID | The order has not been paid |
409 | REFUND_ALREADY_OPEN | The line item already has an open request — see options.existing |
422 | REFUND_ORDER_REFUNDED | The entire order has already been refunded |
422 | REFUND_AMOUNT_OUT_OF_RANGE | The amount is outside min_amount–max_amount |
409 | REFUND_OUTCOME_UNKNOWN | Confirming with the platform — check again in a few minutes, do not resend immediately |
422 | REFUND_REJECTED | The platform rejected the request |
409 | REFUND_NOT_CANCELLABLE | Can no longer be cancelled |
422 | REFUND_INVALID_REQUEST | Invalid data (images, description, quantity…) — read message |
5xx | Temporary system error | Retry later; if it persists, send the Elim team the request ID (RF...) and the time it occurred |
Related links
- Order API Reference — wallet,
order_refundtransactions,reference_type - Guide to placing & paying for orders
- Webhook Reference