curl --request POST \
--url https://api.yorlet.com/v1/prices/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"default_tax_rate": "<string>",
"default_transfer_destination": "<string>",
"description": "<string>",
"metadata": {},
"tax_behavior": "inclusive",
"transfer_behavior": "owner",
"name": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "price",
"active": true,
"amount": 123,
"currency": "gbp",
"default_tax_rate": "<string>",
"default_transfer_destination": "<string>",
"description": "<string>",
"product": "<string>",
"recurring": {
"interval": "month",
"interval_count": 123
},
"transfer_behavior": "owner",
"type": "recurring",
"account": "<string>",
"deleted": false,
"metadata": {}
}Update a price
curl --request POST \
--url https://api.yorlet.com/v1/prices/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"default_tax_rate": "<string>",
"default_transfer_destination": "<string>",
"description": "<string>",
"metadata": {},
"tax_behavior": "inclusive",
"transfer_behavior": "owner",
"name": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "price",
"active": true,
"amount": 123,
"currency": "gbp",
"default_tax_rate": "<string>",
"default_transfer_destination": "<string>",
"description": "<string>",
"product": "<string>",
"recurring": {
"interval": "month",
"interval_count": 123
},
"transfer_behavior": "owner",
"type": "recurring",
"account": "<string>",
"deleted": false,
"metadata": {}
}API Key authentication. Use "Bearer YOUR_API_KEY".
The id identifier.
Whether the price is active.
The default tax rate for the price.
^[a-zA-Z0-9_]+$The default transfer destination for the price.
^[a-zA-Z0-9_]+$The description of the price.
The metadata for the price.
Show child attributes
The tax behavior for the price.
inclusive, exclusive, unspecified The transfer behavior for the price.
owner, none The name of the price.
Returns the price object if the update succeeded.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
price Whether the price is active.
The amount of the price, represented as a whole integer.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
gbp, usd, eur, sek "gbp"
The default tax rate for the price.
The default transfer destination for the price.
The description of the price.
The product the price belongs to.
The recurring interval for the price.
Show child attributes
The transfer behavior for the price.
owner, none, null The type of the price.
recurring, one_time 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?