Create a new price plan.
Required permissions:price-plan:write
curl -X POST \
/price-plans \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"internalName": "Exclusive pricing for partners.",
"customer": "https:\/\/example.com\/",
"applyTrial": "1",
"payInAdvance": "1",
"proRata": "",
"currencyCode": [],
"price": []
}'
{
"id": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"internalName": "Exclusive pricing for partners.",
"status": "<any>",
"salesChannel": {},
"type": "<any>",
"applyTrial": true,
"payInAdvance": true,
"proRata": true,
"freeUnits": {},
"billingInterval": "1M",
"showPricePerInterval": "1M",
"currencyCode": {},
"price": {
"amount": 123,
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00",
"tenantId": "<string>"
},
"custom": true,
"charge": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"productSetOption": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"product": "<any>",
"customer": "<any>",
"inUse": true,
"checkoutLinkIds": [
"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b"
]
}
Value for the Authorization header parameter.
The new PricePlan resource
PricePlan resource created
Was this page helpful?
curl -X POST \
/price-plans \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"internalName": "Exclusive pricing for partners.",
"customer": "https:\/\/example.com\/",
"applyTrial": "1",
"payInAdvance": "1",
"proRata": "",
"currencyCode": [],
"price": []
}'
{
"id": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"internalName": "Exclusive pricing for partners.",
"status": "<any>",
"salesChannel": {},
"type": "<any>",
"applyTrial": true,
"payInAdvance": true,
"proRata": true,
"freeUnits": {},
"billingInterval": "1M",
"showPricePerInterval": "1M",
"currencyCode": {},
"price": {
"amount": 123,
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00",
"tenantId": "<string>"
},
"custom": true,
"charge": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"productSetOption": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"product": "<any>",
"customer": "<any>",
"inUse": true,
"checkoutLinkIds": [
"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b"
]
}
Create a new price plan.
Required permissions:price-plan:write
curl -X POST \
/price-plans \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"internalName": "Exclusive pricing for partners.",
"customer": "https:\/\/example.com\/",
"applyTrial": "1",
"payInAdvance": "1",
"proRata": "",
"currencyCode": [],
"price": []
}'
{
"id": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"internalName": "Exclusive pricing for partners.",
"status": "<any>",
"salesChannel": {},
"type": "<any>",
"applyTrial": true,
"payInAdvance": true,
"proRata": true,
"freeUnits": {},
"billingInterval": "1M",
"showPricePerInterval": "1M",
"currencyCode": {},
"price": {
"amount": 123,
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00",
"tenantId": "<string>"
},
"custom": true,
"charge": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"productSetOption": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"product": "<any>",
"customer": "<any>",
"inUse": true,
"checkoutLinkIds": [
"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b"
]
}
Value for the Authorization header parameter.
The new PricePlan resource
PricePlan resource created
Was this page helpful?
curl -X POST \
/price-plans \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"internalName": "Exclusive pricing for partners.",
"customer": "https:\/\/example.com\/",
"applyTrial": "1",
"payInAdvance": "1",
"proRata": "",
"currencyCode": [],
"price": []
}'
{
"id": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"internalName": "Exclusive pricing for partners.",
"status": "<any>",
"salesChannel": {},
"type": "<any>",
"applyTrial": true,
"payInAdvance": true,
"proRata": true,
"freeUnits": {},
"billingInterval": "1M",
"showPricePerInterval": "1M",
"currencyCode": {},
"price": {
"amount": 123,
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00",
"tenantId": "<string>"
},
"custom": true,
"charge": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"productSetOption": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
"product": "<any>",
"customer": "<any>",
"inUse": true,
"checkoutLinkIds": [
"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b"
]
}