make_return_parcel

make_return_parcel

Description

Creates a return parcel for selected line-item groups at a chosen return store. This parcel is expected by the store for return drop-off.


When to Use

  • After customer chooses an eligible return store.

  • After determining which items will be returned.

  • Before informing the customer of return instructions.


Workflow

  1. Retrieve order details.

  2. Get return endpoints.

  3. Choose one endpoint.

  4. Convert selected items into index ranges.

  5. Call tool.

  6. Confirm parcel number or success message.


Arguments

Field

Type

Required

Field

Type

Required

order_id

string

Yes

lig_index_ranges

array

Yes

endpoint_id

string

Yes


Input Schema

{ "order_id": "string", "lig_index_ranges": [[0, 1]], "endpoint_id": "store_123" }

Output

{ "result": "string" }

Sample Prompts

  • “Create a return parcel for order 221 using endpoint 99”

  • “Generate an in-store return parcel for my jean”