Slope · Arazzo Workflow

Simulate an approved order in the sandbox

Version 1.0.0

Create a sandbox test customer, set eligibility, create an order, and approve it.

1 workflow 1 source API 1 provider
View Spec View on GitHub CompanyFintechPaymentsEmbedded FinanceBNPLLendingCreditB2BCheckoutArazzoWorkflows

Provider

slope

Workflows

sandboxApproveOrder
Create a sandbox test customer, set eligibility, create an order, and approve it.
4 steps inputs: amount, currency, externalId
1
simulateCreateCustomer
simulateCreateCustomer
2
simulateUpdateCustomerEligibility
simulateUpdateCustomerEligibility
3
createOrder
createOrder
4
simulateApproveOrder
simulateApproveOrder

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Simulate an approved order in the sandbox
  version: 1.0.0
  summary: Create a sandbox test customer, set eligibility, create an order, and approve it.
sourceDescriptions:
- name: slope
  url: ../openapi/slope-v4-openapi.json
  type: openapi
workflows:
- workflowId: sandboxApproveOrder
  summary: Create a sandbox test customer, set eligibility, create an order, and approve it.
  inputs:
    type: object
    properties:
      amount:
        type: integer
        default: 10000
      currency:
        type: string
        default: usd
      externalId:
        type: string
        default: test-order-1
  steps:
  - stepId: simulateCreateCustomer
    operationId: simulateCreateCustomer
    outputs:
      customerId: $response.body#/id
  - stepId: simulateUpdateCustomerEligibility
    operationId: simulateUpdateCustomerEligibility
    requestBody:
      contentType: application/json
      payload:
        customerId: $steps.simulateCreateCustomer.outputs.customerId
  - stepId: createOrder
    operationId: createOrder
    requestBody:
      contentType: application/json
      payload:
        amount: $inputs.amount
        currency: $inputs.currency
        externalId: $inputs.externalId
    outputs:
      orderId: $response.body#/id
  - stepId: simulateApproveOrder
    operationId: simulateApproveOrder
    requestBody:
      contentType: application/json
      payload:
        orderId: $steps.createOrder.outputs.orderId