depop · Arazzo Workflow

Order fulfillment

Version 1.0.0

Read an order, mark a parcel shipped with tracking, optionally refund.

1 workflow 1 source API 1 provider
View Spec View on GitHub CompanyFashionMarketplaceE-commerceResaleRetailInventory ManagementOrdersSustainabilityArazzoWorkflows

Provider

depop

Workflows

fulfillOrder
Fetch an order, mark its parcel shipped, and optionally refund it.
2 steps inputs: parcel_id, purchase_id, tracking
1
getOrder
getOrderByPurchaseId
2
markShipped
markOrderAsShipped

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Order fulfillment
  version: 1.0.0
  summary: Read an order, mark a parcel shipped with tracking, optionally refund.
sourceDescriptions:
  - name: depop
    url: ../openapi/depop-selling-openapi-original.yml
    type: openapi
workflows:
  - workflowId: fulfillOrder
    summary: Fetch an order, mark its parcel shipped, and optionally refund it.
    inputs:
      type: object
      properties:
        purchase_id:
          type: string
        parcel_id:
          type: string
        tracking:
          type: object
      required: [purchase_id, parcel_id]
    steps:
      - stepId: getOrder
        operationId: getOrderByPurchaseId
        parameters:
          - name: purchase_id
            in: path
            value: $inputs.purchase_id
        successCriteria:
          - condition: $statusCode == 200
      - stepId: markShipped
        operationId: markOrderAsShipped
        parameters:
          - name: purchase_id
            in: path
            value: $inputs.purchase_id
          - name: parcel_id
            in: path
            value: $inputs.parcel_id
        requestBody:
          payload: $inputs.tracking
        successCriteria:
          - condition: $statusCode == 200