Tango · Arazzo Workflow

Tango Explore Catalog and Choice Product

Version 1.0.0

Browse brand categories, list Tango Choice products, and fetch one Choice product's detail.

1 workflow 1 source API 1 provider
View Spec View on GitHub Catalog ManagementDigital RewardsGift CardsIncentivesLoyaltyRewards As A ServiceArazzoWorkflows

Provider

tango

Workflows

explore-catalog-choice-product
List brand categories, list Choice products, then get one Choice product.
Lists brand categories and Tango Choice products for catalog browsing, then retrieves the detail of a chosen Choice product by UTID.
3 steps inputs: utid outputs: brandCategories, choiceProducts, selectedProductUtid
1
listCategories
listBrandCategories
Retrieve all brand categories available for filtering the catalog.
2
listChoiceProducts
listChoiceProducts
List all available Tango Choice products for selection.
3
getChoiceProduct
getChoiceProduct
Retrieve the full detail of the chosen Choice product by its UTID.

Source API Descriptions

Arazzo Workflow Specification

tango-explore-catalog-choice-product-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Tango Explore Catalog and Choice Product
  summary: Browse brand categories, list Tango Choice products, and fetch one Choice product's detail.
  description: >-
    A catalog-discovery pattern for building a reward picker. The workflow lists
    the available brand categories for filtering, lists the Tango Choice products
    on offer, and then fetches the full detail of a specific Choice product by its
    UTID. Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description. Authentication
    uses the platform's HTTP Basic credentials declared by the basicAuth security
    scheme; those credentials are applied at the transport layer and are not
    request parameters.
  version: 1.0.0
sourceDescriptions:
- name: tangoRaasApi
  url: ../openapi/tango-raas-api-openapi.yml
  type: openapi
workflows:
- workflowId: explore-catalog-choice-product
  summary: List brand categories, list Choice products, then get one Choice product.
  description: >-
    Lists brand categories and Tango Choice products for catalog browsing, then
    retrieves the detail of a chosen Choice product by UTID.
  inputs:
    type: object
    required:
    - utid
    properties:
      utid:
        type: string
        description: Universal Token ID of the Choice product to retrieve in detail.
  steps:
  - stepId: listCategories
    description: >-
      Retrieve all brand categories available for filtering the catalog.
    operationId: listBrandCategories
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      brandCategories: $response.body#/brandCategories
  - stepId: listChoiceProducts
    description: >-
      List all available Tango Choice products for selection.
    operationId: listChoiceProducts
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      choiceProducts: $response.body#/choiceProducts
  - stepId: getChoiceProduct
    description: >-
      Retrieve the full detail of the chosen Choice product by its UTID.
    operationId: getChoiceProduct
    parameters:
    - name: utid
      in: path
      value: $inputs.utid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      utid: $response.body#/utid
      name: $response.body#/name
      minValue: $response.body#/minValue
      maxValue: $response.body#/maxValue
  outputs:
    brandCategories: $steps.listCategories.outputs.brandCategories
    choiceProducts: $steps.listChoiceProducts.outputs.choiceProducts
    selectedProductUtid: $steps.getChoiceProduct.outputs.utid