Create a Return and Cancel It If Cancellable
A 3-step recipe with Sendcloud. We can help you get access.
Recipe · 3 steps
Create a Return and Cancel It If Cancellable
with Sendcloud
Works with AI assistants
Create a return and conditionally request its cancellation.
- Create the standalone return, returning the new return id and incoming parcel id.
- Retrieve the created return to read whether its incoming parcel can still be cancelled, then branch accordingly.
- Request cancellation of the return; the API queues the cancellation and returns a confirmation message.
What you'll need to have ready
- fromAddress: Return sender address (name, address_line_1, postal_code, city, country_code).
- toAddress: Return destination address (name, address_line_1, postal_code, city, country_code).
- shippingOptionCode: Shipping option code for the return (e.g. dpd:return/return).
- weight: Weight object for the return parcel (value and unit).
- orderNumber: Identifier of the order associated with this return.
For your developer
Arazzo workflow sendcloud:create-return-cancel-if-cancellable, 3 operations: sc-public-v3-scp-post-returns_create_new_return → sc-public-v3-scp-get-returns_get_details → sc-public-v3-scp-patch-returns_cancel. Specs on APIs.io.