Skip to main content
Elim Asia

Refund Reference

Summary

There are two groups of refunds — do not confuse them:

  1. Money returned to the wallet automatically — platform payment failed, or the platform charged less than the amount you held. No action needed.
  2. 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.

SituationWho triggers itAmountreference_type
Platform payment clearly failedAutomaticAll held funds (goods + shipping + service fee). The order returns to unpaid, and you can resend the payment requestplatform_payment_failed
The final order price (goods + domestic shipping) is lower than the held amount (price change, discount, bargaining)Automatic after payment completesThe 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 sentplatform_discount
A per-line-item refund request is acceptedYou send a request → the seller approves → Elim records the money coming inThe amount the seller actually refundedrefund_request
Refund of an entire paid orderPerformed by Elim (no customer API)The entire order; payment_status = refundedorder
Payment request rejected / order cancelled on the platform while funds are heldAutomaticHeld funds are released (order_unfreeze), not refunded—

A per-line-item refund does not change the order’s payment_status to refunded; it only changes when Elim refunds the entire order.

Conditions for opening a refund request

  • The order’s status is paid, shipped, or completed and it already has an order code on the platform.
  • payment_status is not yet refunded.
  • 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.

EndpointMethodDescription
/v1/refunds/optionsGETReasons, refund types, allowed amount range, maximum number of images
/v1/refunds/evidencePOSTUpload evidence images (multipart order_id + file) — 1688 only
/v1/refundsPOSTCreate a refund request
/v1/refundsGETList requests (order_id, status, page, size ≤ 50)
/v1/refunds/:idGETRequest details including evidence[]
/v1/refunds/:id/cancelPOSTCancel a request (only when the seller has not yet handled it or has rejected it)
/v1/refunds/:id/return-optionsGETReturn address and carriers (1688)
/v1/refunds/:id/return-shipmentPOSTDeclare 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.

FieldDescription
refund_typesSelectable refund types
reasons[]id, text, need_voucher (images required), no_refund_carriage, tip
min_amount / max_amountRange of goods amount that can be refunded (CNY)
can_edit_amountWhether an amount other than max_amount may be entered
max_carriage_amount, max_total_amountCap on shipping / total amount (if any)
max_quantity, max_imagesLimits on quantity and number of images
existingThe 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/..."]
}
FieldRequiredDescription
order_idYesOrder ID ORD...
purchase_order_line_idYesThe line item to refund. Taobao: package_id. 1688: the order’s line-item ID
goods_statusYesTaobao: 1–4. 1688: wait_seller_send, wait_buyer_receive, buyer_received, aftersale_not_received, aftersale_received
refund_typeYes1 = refund only · 2 = return and refund (1688 only)
reason_idYesReason ID from options
amountYesAmount in CNY, at most 2 decimal places, within the options range
carriage_amountNoShipping amount requested for refund (if the reason allows it)
quantityNoQuantity to refund
descriptionNoDescription. 1688: 2–150 characters
image_urlsNoTaobao ≤ 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

ValueMeaning
not_requestedNot yet sent to the seller
pending_sellerWaiting for the seller to review
awaiting_returnThe seller requires the goods to be returned — declare the tracking number
return_in_transitThe returned goods are in transit
supplier_refundedThe seller has refunded the money
seller_rejectedThe seller rejected it (seller_reason) — you can cancel the request
closedThe request is closed

customer_refund_status — refund-to-your-wallet status

ValueMeaning
not_applicableThere is no refund to the wallet (for example, the request was closed)
pendingThe seller has refunded, and Elim is recording it to credit the wallet
approvedThe wallet refund has been approved
creditedCredited to the wallet — see the order_refund transaction, reference_type = refund_request
failedCould 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:

  1. GET /v1/refunds/:id/return-options — get the return address and the list of carriers.
  2. Ship the goods, then POST /v1/refunds/:id/return-shipment with logistics_company_no, freight_bill (tracking number), and optionally description, 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

HTTPCodeMeaning / how to handle
422REFUND_NOT_AVAILABLEThis order does not support online refunds
422REFUND_ORDER_NOT_PAIDThe order has not been paid
409REFUND_ALREADY_OPENThe line item already has an open request — see options.existing
422REFUND_ORDER_REFUNDEDThe entire order has already been refunded
422REFUND_AMOUNT_OUT_OF_RANGEThe amount is outside min_amount–max_amount
409REFUND_OUTCOME_UNKNOWNConfirming with the platform — check again in a few minutes, do not resend immediately
422REFUND_REJECTEDThe platform rejected the request
409REFUND_NOT_CANCELLABLECan no longer be cancelled
422REFUND_INVALID_REQUESTInvalid data (images, description, quantity…) — read message
5xxTemporary system errorRetry later; if it persists, send the Elim team the request ID (RF...) and the time it occurred