Skip to main content
Required scopes: returns_write Store must have one of: RETURNS, PACKAGE_PROTECTION, OMS, WARRANTIES, RECYCLING, WITHDRAWALS

Arguments

String
A key of your choosing. Repeating a call with the same key and the same arguments returns the first run rather than starting another.
Boolean
Whether to also make restartAt the default reset step for later resets of that return type.
String!
required
Why the returns are reset.
ID
The step customers restart at: an id from returnResetSteps for the returns’ type. A return the step doesn’t fit (another type’s flow, or a step that is now a reject step or gone) fails with INVALID_STEP and is left as it was. A step listed before the flow was republished restarts customers on that earlier flow. Omit to restart at the default reset step, or at the start of the flow when there is none.
[ID!]!
required
The ids of the returns to act on (1–500). Returns the action does not apply to are reported as skipped, not as an error.

Returns

One run of a return action over a set of returns. A run works through its returns in the background; poll returnActionRun until status is no longer RUNNING.

Example