Products::Price
Create Price
Create a new price for a given variant. Note that you must set a variant_id in the path.
post/products/variants/{variant_id}/prices
Path parameters
variant_idinteger required
Request body
Example request
{
"products_price": {
"products_price": {
"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
}
}
}Response
Created
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"
}