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: catalogApi
url: ../openapi/tango-catalog-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
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.