Get Suggested Refund

Calculate the suggested refund for an order or return. Supports two workflows: (1) direct refund from an order with specified line items, or (2) refund after a return where line items and totals are pre-calculated from the return.

Required fields:

  • order_id or return_id (one must be provided)

A successful request returns the suggested refund details for the specified order or return.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Scope

erc-ecommerce-return:read

Body Params

Suggested refund request containing either an order ID with line items, or a return ID.

The suggested refund request body.

string
length between 1 and 255

The order ID to calculate the suggested refund for. Either order_id or return_id must be provided.

string
length between 1 and 255

The return ID to calculate the suggested refund for. Either order_id or return_id must be provided.

string
length between 1 and 255

The brand identifier. If the account is multi-brand, this parameter is required.

refund_line_items
array of objects

The line items to include in the suggested refund calculation.

refund_line_items
number
> 0

The shipping amount to refund. Must be positive.

boolean

Whether to include shipping in the refund.

refund_duties
array of objects

The duties to include in the refund.

refund_duties
boolean

Whether to suggest a full refund for the order.

Responses

Language
Credentials
OAuth2
Missing 1 required scope
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json