Sendcloud · Arazzo Workflow

Sendcloud Validate and Create a Return

Version 1.0.0

Validate a return payload, create the return, then retrieve its full detail.

1 workflow 1 source API 1 provider
View Spec View on GitHub ShippingLogisticsE-CommerceCarriersLabelsReturnsTrackingEuropeArazzoWorkflows

Provider

sendcloud

Workflows

validate-create-return
Validate a return, create it, and retrieve its detail.
Validates a return payload built from the from/to addresses, weight, and shipping option, creates the return once validation passes, and retrieves the created return by its id.
3 steps inputs: fromAddress, orderNumber, parcelItems, shippingOptionCode, toAddress, weight outputs: isCancellable, parcelId, returnId, returnStatus
1
validateReturn
Send the return payload to the validation endpoint to confirm it passes all checks before any return is actually created.
2
createReturn
Create the standalone return now that the payload has been validated, returning the new return id and incoming parcel id.
3
getReturn
Retrieve the created return by its id to expose its current status and tracking detail.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sendcloud Validate and Create a Return
  summary: Validate a return payload, create the return, then retrieve its full detail.
  description: >-
    A safe return-creation flow. The same return payload is first sent to the
    validation endpoint to confirm it passes all checks, then the return is
    created as a standalone return, and finally the created return is retrieved
    by id to expose its status and tracking detail. Every step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: returnsApi
  url: ../openapi/sendcloud-returns-api-openapi.yml
  type: openapi
workflows:
- workflowId: validate-create-return
  summary: Validate a return, create it, and retrieve its detail.
  description: >-
    Validates a return payload built from the from/to addresses, weight, and
    shipping option, creates the return once validation passes, and retrieves
    the created return by its id.
  inputs:
    type: object
    required:
    - fromAddress
    - toAddress
    - shippingOptionCode
    - weight
    properties:
      fromAddress:
        type: object
        description: Return sender address (name, address_line_1, postal_code, city, country_code).
      toAddress:
        type: object
        description: Return destination address (name, address_line_1, postal_code, city, country_code).
      shippingOptionCode:
        type: string
        description: Shipping option code for the return (e.g. dpd:return/return).
      weight:
        type: object
        description: Weight object for the return parcel (value and unit).
      orderNumber:
        type: string
        description: Identifier of the order associated with this return.
      parcelItems:
        type: array
        description: List of items contained in the return (required for non-EU returns).
  steps:
  - stepId: validateReturn
    description: >-
      Send the return payload to the validation endpoint to confirm it passes
      all checks before any return is actually created.
    operationId: sc-public-v3-scp-post-returns_validate
    requestBody:
      contentType: application/json
      payload:
        from_address: $inputs.fromAddress
        to_address: $inputs.toAddress
        ship_with:
          type: shipping_option_code
          shipping_option_code: $inputs.shippingOptionCode
        weight: $inputs.weight
        order_number: $inputs.orderNumber
        parcel_items: $inputs.parcelItems
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      validation: $response.body
  - stepId: createReturn
    description: >-
      Create the standalone return now that the payload has been validated,
      returning the new return id and incoming parcel id.
    operationId: sc-public-v3-scp-post-returns_create_new_return
    requestBody:
      contentType: application/json
      payload:
        from_address: $inputs.fromAddress
        to_address: $inputs.toAddress
        ship_with:
          type: shipping_option_code
          shipping_option_code: $inputs.shippingOptionCode
        weight: $inputs.weight
        order_number: $inputs.orderNumber
        parcel_items: $inputs.parcelItems
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      returnId: $response.body#/return_id
      parcelId: $response.body#/parcel_id
  - stepId: getReturn
    description: >-
      Retrieve the created return by its id to expose its current status and
      tracking detail.
    operationId: sc-public-v3-scp-get-returns_get_details
    parameters:
    - name: id
      in: path
      value: $steps.createReturn.outputs.returnId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      returnStatus: $response.body#/status
      isCancellable: $response.body#/is_cancellable
  outputs:
    returnId: $steps.createReturn.outputs.returnId
    parcelId: $steps.createReturn.outputs.parcelId
    returnStatus: $steps.getReturn.outputs.returnStatus
    isCancellable: $steps.getReturn.outputs.isCancellable

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sendcloud-validate-create-return-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.