Update or create a pricing plan (upsert)
Update or create a pricing plan (upsert)
Requires the PRICING_PLAN.CREATE or PRICING_PLAN.UPDATE permission.
Authentication
X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
version
version
Headers
x-platform-id
Platform ID.
Request
This endpoint expects an object.
reference
name
description
customer_id
Resource ID of type CUSTOMER
type
amount_type
Set to determine whether the pricings in this pricing plan are including or excluding tax. The default, if left empty, is excluding tax.
pricing_plan_selection_rules
pricing_currencies
The default alphabetic currency code representing the type of currency that can be used for the pricings.
Response
Created
object_type
id
reference
name
description
customer_id
Resource ID of type CUSTOMER
type
amount_type
Set to determine whether the pricings in this pricing plan are including or excluding tax. The default, if left empty, is excluding tax.
pricing_plan_version_infos
pricing_plan_selection_rules
pricing_currencies
The default alphabetic currency code representing the type of currency that can be used for the pricings.
variant
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error