Skip to main content
query

Requires read_returns access scope or read_marketplace_returns access scope.

Calculates the financial outcome of a Return without creating it. Use this query to preview return costs before initiating the actual return process.

The calculation provides detailed breakdowns of refund amounts, taxes, RestockingFee charges, return shipping fees, and order-level discount adjustments based on the FulfillmentLineItem objects that customers select for return.

Learn more about building for return management.

•CalculateReturnInput!
required

The input fields for calculating a return.

Show input fields

Was this section helpful?

•CalculatedReturn

A calculated return.

Show fields
•[CalculatedExchangeLineItem!]!
non-null

A list of calculated exchange line items.

Show fields
•ID!
non-null

A globally-unique ID.

•[CalculatedReturnLineItem!]!
non-null

A list of calculated return line items.

Show fields
•CalculatedReturnShippingFee

The calculated return shipping fee.

Show fields

Was this section helpful?