Create Price
Changed onCreate a new price for a given variant. Note that you must set a variant_id in the path.
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
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"
}Changes
- breaking
request property
/was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - breaking
the
/request property type changed fromstringtointegernull - breaking
the
/request property type changed fromstringtointegernull - breaking
the
/request property type changed fromstringtointegernull - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the
response's property type changed fromstringtointegernullfor status - breaking
the
response's property type changed fromstringtointegernullfor status - breaking
the
response's property type changed fromstringtointegernullfor status - warning
added the new
undefinedenum value to theresponse property for the response status - info
for the
pathrequest parametervariant_id, the type was generalized fromintegertostring - info
the request property
/became nullable - info
the request property
/became nullable - info
the request property
/became nullable - info
the request property
/became nullable - info
the request property
/became nullable - info
the request property
/became nullable - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
the request property
/became optional - info
added the new
daysenum value to the request property/ - info
added the new
daysenum value to the request property/ - info
added the new
monthsenum value to the request property/ - info
added the new
monthsenum value to the request property/ - info
added the new
quartersenum value to the request property/ - info
added the new
quartersenum value to the request property/ - info
added the new
undefinedenum value to the request property/ - info
added the new
undefinedenum value to the request property/ - info
added the new
undefinedenum value to the request property/ - info
added the new
weeksenum value to the request property/ - info
added the new
weeksenum value to the request property/ - info
added the new
yearsenum value to the request property/ - info
added the new
yearsenum value to the request property/ - info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking