Skip to main content

CreateProductWithPriceRequest

price objectrequired
billingIntervalstringnullable
commodityCodestringnullable

Possible values: <= 64 characters, Value must match regular expression ^[A-Za-z0-9][A-Za-z0-9 ._:/-]{0,63}$

currencystringnullable
intervalCountinteger<int32>
metadata object
property name*string
taxBehaviorTaxBehavior

Possible values: [EXCLUSIVE, INCLUSIVE]

typePriceType

Possible values: [ONE_TIME, RECURRING]

unitAmountinteger<int64>required
unitOfMeasurestringnullable

Possible values: <= 16 characters, Value must match regular expression ^[A-Za-z0-9][A-Za-z0-9._/-]{0,15}$

product objectrequired
categoryIdstringnullable
descriptionstringnullable
expectedSyncVersioninteger<int64>nullable
externalIdstringnullable
imageUrlstringnullable
itemKindProductItemKindnullable

Possible values: [PRODUCT, SERVICE]

metadata object
property name*string
mutationIdstringnullable
namestringrequired

Possible values: non-empty

taxRateBpsinteger<int32>nullable

Possible values: >= 0 and <= 10000

CreateProductWithPriceRequest
{
"price": {
"billingInterval": "string",
"commodityCode": "string",
"currency": "string",
"intervalCount": 0,
"metadata": {},
"taxBehavior": "EXCLUSIVE",
"type": "ONE_TIME",
"unitAmount": 0,
"unitOfMeasure": "string"
},
"product": {
"categoryId": "string",
"description": "string",
"expectedSyncVersion": 0,
"externalId": "string",
"imageUrl": "string",
"itemKind": "PRODUCT",
"metadata": {},
"mutationId": "string",
"name": "string",
"taxRateBps": 0
}
}