XYZ-US
.
This endpoint returns different payout types:
gift_card
: A gift card is a payout that can be redeemed for a specific value.subscription
: A subscription is a payout that can be ordered for a specific duration.payment
: A payment is a payout that can be ordered for a specific value.
payout_type
field to determine which object to use to extract details for the product. The different payout types have different fields, so you should use the appropriate object to extract the details you need.
This endpoint supports returning product content in different formats. See the content parameter for more details.
Need help with the product catalog?
Authorizations
Headers
The dated version of the API, if not specified a default is used. See API versioning for more information.
Path Parameters
The code of the product.
Query Parameters
Defines the format for product content resources.
url
(default) for external URLs to markdown contentmd
for Markdown content in the responsehtml
for rendered HTML in the response
url
, md
, html
Response
OK
Product details
The name of the product.
"Example Merchant"
A unique code identifying the product. Use this code when placing an order.
For subscription
products, this code identifies the top level product. You must use the subscription_plan_code
instead when ordering.
"XYZ-US"
The currency of the product, represented by an ISO 4217 currency code. See currencies for a list of supported currencies.
"USD"
The current state of the product.
LIVE
, TEMPORARILY_DISABLED
, TEMPORARILY_DEGRADED
"LIVE"
Indicates whether or not you are able to order the product. You should use this detail to determine whether or not to display the product to your end users.
We recommend that you only display products to customers when this field is true
- we will reject any orders placed for products where this is false
. You can filter by is_orderable
to only return products that can be ordered in the list endpoint.
The type of payout - this field will tell you the key of the additional object details that correspond to each payout type. The types currently supported are gift_card
, subscription
, or payment
. Your implementation should account for additional payout types being addedin the future.
gift_card
, subscription
, payment
List of the categories that the product belongs to. You can fetch the list of categories using the GET /product/categories
endpoint.
["food-and-drink", "entertainment"]
Countries where the payout can be spent.
ISO 3166 ALPHA-2 country code
["US"]
Contact information for customer service related to the product. Suitable for displaying to the customer.
The discount multiplier used when ordering. 0
means no discount and 0.1
means 10% discount. The discount is applied on the price of the order item before any fees are applied.
"0.05"
The availability type of the product.
stocked
, realtime
"realtime"
Specific details about the gift card product, only populated when the payout_type
is gift_card
.
Details about the subscription product, only populated when the payout_type
is subscription
.
Details about the payment product, only populated when the payout_type
is payment
.