curl --request POST \
--url https://api.yorlet.com/v1/products/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"description": "<string>",
"metadata": {},
"statement_descriptor": "<string>",
"name": "<string>",
"default_price": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "product",
"active": true,
"default_price": "<string>",
"description": "<string>",
"name": "<string>",
"statement_descriptor": "<string>",
"account": "<string>",
"deleted": false,
"metadata": {}
}Update a product
curl --request POST \
--url https://api.yorlet.com/v1/products/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"description": "<string>",
"metadata": {},
"statement_descriptor": "<string>",
"name": "<string>",
"default_price": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "product",
"active": true,
"default_price": "<string>",
"description": "<string>",
"name": "<string>",
"statement_descriptor": "<string>",
"account": "<string>",
"deleted": false,
"metadata": {}
}API Key authentication. Use "Bearer YOUR_API_KEY".
The id identifier.
Whether the product is active.
The description of the product.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Show child attributes
The statement descriptor for the product.
The name of the product.
The price ID to set as the default price for the product.
^[a-zA-Z0-9_]+$Returns the product object if the update succeeded.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
product Whether the product is active.
The default price for the product.
The description of the product.
The name of the product.
The statement descriptor for the product.
The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Show child attributes
Was this page helpful?