Products::Price
Update Price
Update a single price
put/products/prices/{id}
Path parameters
idstring required
Request body
Example request
{
"products_price": {
"products_price": {
"name": "Example Price",
"amount": "100.00",
"cost": "0.00",
"currency": "USD",
"duration": 1,
"interval": "months",
"trial_interval": "days",
"trial_duration": 14,
"trial_amount": "0.00",
"setup_amount": null,
"self_cancel": true,
"self_upgrade": true,
"self_downgrade": true,
"self_reactivate": true,
"interval_count": 1,
"payment_type": "one_time",
"visible": true,
"compare_at_amount": null,
"key": null,
"archived": false
}
}
}Response
OK
Example response
{
"id": 14,
"public_id": "WpEGzF",
"variant_id": 14,
"name": "Example Price",
"amount": "100.00",
"cost": "0.00",
"currency": "USD",
"duration": null,
"interval": null,
"trial_interval": null,
"trial_duration": null,
"trial_amount": "0.00",
"setup_amount": null,
"self_cancel": true,
"self_upgrade": true,
"self_downgrade": true,
"self_reactivate": true,
"interval_count": null,
"payment_type": "one_time",
"visible": true,
"compare_at_amount": null,
"key": null,
"archived": false,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}