Return
Body
Webhook type
"return"
Event that triggered the webhook (created, updated, closed)
"return.created"
The ID of the shop that created the webhook
12345
Loop return ID
"1673"
Loop return states (state of the return)
Possible values:
- Open: Requests have yet to be processed (Loop has not fully processed all the outcomes).
- Cancelled: Refers to any return requests that have been cancelled in Loop admin.
- Closed: Typically refers to any return request/outcome that has been processed or closed manually. No further action is required for these returns.
- Expired: Means any return or exchange that has not been sent back, according to the shipping label status provided. Labels must be in a new or pre-transit state for this process to start. All labels expire after 28 days.
- Needs Review: Requests have a block in processing, and Loop cannot proceed with normal processing until the merchant approves. Review requests can also include Out of Stock items or Insufficient Funds.
"open"
Date and time (ISO 8601 format) when the return was created in Loop
"2023-05-01T12:00:00Z"
Date and time (ISO 8601 format) when the return was last edited inside Loop. null
when the return has not been edited.
"2023-05-02T15:00:00Z"
The total cost of the return
"48.81"
Loop order ID
2871
Shopify order name
"#47727779"
Shopify order ID
"58997314"
External Shopify order ID
12354567890
Shopify order number
"7078"
Shopify number
8078
Email address of Shopify customer
"me@myself.com"
The Shopify customer's email, first name, middle name, and last name.
The original customer's shipping address or the address that the customer inputs in the case of a gift return.
Currency of the store at the time of the order
"USD"
Value of returned line items excluding order discounts and taxes
"50.00"
Sum of all discounts on returned items
"5.00"
Value of order taxes on returned line items
"2.50"
Return total after taxes and discounts
"47.50"
Value of total return credit (product + honored discount + tax)
"47.50"
Link to the return status page
"https://example.loopreturns.com/#/return/b3e4764e-7adf-4b8c-802a-553305b6db49"
Value of exchange items before discounts and taxes
"60.00"
Discount on exchange items
"10.00"
Tax on exchange items
"3.00"
Exchange total after taxes and discounts
"53.00"
Total exchange items value after discounts and taxes which is used by the customer
"53.00"
Amount of store credit to be issued to the customer on a gift card
"25.00"
Handling fee amount set in Loop admin
"5.00"
The total refund value of the return
"20.00"
Additional amount paid by customer when exchange credit total is greater than return credit total
"10.00"
Whether or not the return is a gift return
true
The breakdown of refunds across payment gateways.
Details on each label associated with the return.
Details on items being sent to Loop as part of the return.
Details about the product(s) being sent to the customer. This can be a result of an even exchange, replacements for returned items, or new purchases made through the app.
The Happy Returns shipment ID
"SHIP-001"
The name of the carrier or N/A if the carrier has not yet been assigned
"USPS"
The tracking number provided by the carrier or N/A if the tracking number has not yet been assigned
"28735625627856237856287"
Status of the shipment according to EasyPost:
- no shipment status
- pre_transit
- in_transit
- out_for_delivery
- delivered
- error
- failure
N/A if no label status has been provided yet.
"pre_transit"
Date and time (ISO 8601 format) when the last status update occurred.
N/A:label not yet updated
"2023-05-03T16:00:00Z"
Loop destination ID
"2232"
If the return is not being sent back through boxing and shipping, this field describes the way in which the item is being returned. These are usually pick-up or drop-off options.
The value that identifies the physical package that the return is in regardless if it was returned via box & ship or a different return method.
"PKG-12345"
Return type
"standard"
Response
Return a 200 status to indicate that the data was received successfully