Build a product catalog to use across transfers and payment links.
Use the product API to create a product catalog for transfers and payment links. For each product, you can specify an image, title, description, and base price. You can also set additional option groups like size and color, each with their own images and additional price modifiers.
For example, a cafe has a product catalog that contains each of the drinks on their menu. Each drink product has an option group set up for alternative milk choices which adds a price modifier to the overall cost.
To create a new product for the catalog, pass the accountID and specify a title and base price. Additionally, you can specify a description, an image, and option groups. The example below creates a lunch special with an option group that has price modifications for alternative milks.
If you want to use a product you've created, you'll need to use the product API to retrieve product data and map it to lineItems when creating transfers and payment links. You can, however, create freeform line items when initiating a transfer or payment link.
Every part of a product and its options can be updated. Updating a product initiates a complete replacement of the product model, so while only the title and base price are required, any omitted fields will be removed from the model if not included in the update request.
Use the images API to upload a PNG, JPG, or WebP image. You can supply alt-text through the metadata field. Duplicate images and images larger than 16MB will be rejected.
When you upload an image, you'll receive a imageID, which can be used to point to the image when you create or update a product.