parcelLab · Arazzo Workflow

parcelLab List and Get Return

Version 1.0.0

List return registrations for an account, then fetch the first one in detail.

1 workflow 1 source API 1 provider
View Spec View on GitHub Post-PurchaseE-CommerceTrackingReturnsShippingDeliveryCustomer ExperienceLogisticsCommunicationsGermanyArazzoWorkflows

Provider

parcellab

Workflows

list-and-get-return
List return registrations and fetch the first result in detail.
Reads a page of return registrations for an account and, when results exist, retrieves the first registration by its external id.
2 steps inputs: account, authToken, limit, offset, ordering outputs: count, firstReturnStatus
1
listReturns
Read a page of return registrations for the account, ordered as requested.
2
getReturn
Fetch the first return registration from the page in full by its external id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: parcelLab List and Get Return
  summary: List return registrations for an account, then fetch the first one in detail.
  description: >-
    A read-oriented returns flow. The workflow pages the return registrations for
    an account, branches on whether any results came back, and when at least one
    exists fetches that registration in full by its external id. When the page is
    empty the flow ends cleanly without a detail call. 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/parcellab-returns-api-openapi.yml
  type: openapi
workflows:
- workflowId: list-and-get-return
  summary: List return registrations and fetch the first result in detail.
  description: >-
    Reads a page of return registrations for an account and, when results exist,
    retrieves the first registration by its external id.
  inputs:
    type: object
    required:
    - authToken
    - account
    properties:
      authToken:
        type: string
        description: Authorization header value for the parcelLab API.
      account:
        type: integer
        description: The parcelLab account id to list returns for.
      limit:
        type: integer
        description: Maximum number of registrations to return.
      offset:
        type: integer
        description: Pagination offset.
      ordering:
        type: string
        description: Ordering expression for the result page.
  steps:
  - stepId: listReturns
    description: >-
      Read a page of return registrations for the account, ordered as requested.
    operationId: listReturnRegistrations
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: account
      in: query
      value: $inputs.account
    - name: limit
      in: query
      value: $inputs.limit
    - name: offset
      in: query
      value: $inputs.offset
    - name: ordering
      in: query
      value: $inputs.ordering
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      count: $response.body#/count
      firstExternalId: $response.body#/results/0/external_id
    onSuccess:
    - name: hasResults
      type: goto
      stepId: getReturn
      criteria:
      - context: $response.body
        condition: $.results.length > 0
        type: jsonpath
    - name: noResults
      type: end
      criteria:
      - context: $response.body
        condition: $.results.length == 0
        type: jsonpath
  - stepId: getReturn
    description: >-
      Fetch the first return registration from the page in full by its external
      id.
    operationId: getReturnRegistration
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: external_id
      in: path
      value: $steps.listReturns.outputs.firstExternalId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      reference: $response.body#/reference
      returnLabels: $response.body#/return_labels
  outputs:
    count: $steps.listReturns.outputs.count
    firstReturnStatus: $steps.getReturn.outputs.status

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/parcellab-list-and-get-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.