Update RMA Dropship Credit
PUT/api/rmas/:rma/dropship-credit
Choose whether the SUGGESTED credit for a dropship-for-customer return includes the per-order dropship fee, and get the recalculated suggested breakdown. The choice is stored on the RMA and recorded in its activity log. Advisory only: no sales credit is created or changed — issue the credit note yourself at the suggested amount.
returns:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token. Scope: returns (write). Requires the returns.update permission.
Path parameters:
- rma (integer, required): RMA ID.
Body:
- refund_dropship_fee (boolean, required): true to include the order's dropship fee in the suggested credit, false to leave it out.
Response data:
- goods (number): value of the RMA's expected lines at the sales order line prices.
- restocking_fee_percent (number): the retailer's restocking fee percentage from its dropship terms.
- restocking_fee (number): goods x restocking_fee_percent / 100, rounded to 2 decimals.
- refund_dropship_fee (boolean): whether the suggested credit includes the per-order dropship fee charged on the sales order. Off by default.
- dropship_fee_refund (number): the dropship fee included in the suggestion (0 when refund_dropship_fee is false).
- net_credit (number): goods - restocking_fee + dropship_fee_refund — the suggested credit amount (not applied to any sales credit).
Errors: 422 when refund_dropship_fee is missing or not a boolean, or when the RMA is not for a dropship-for-customer order (error on rma); 403 without the returns.update permission; 404 when the RMA does not exist.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Not Found
Response Headers
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.