Create product
Create a new product for platform.
application/json
Request Body required
body object
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
application/json
Schema
Example (from schema)
Schema
product object
{
"product": {
"id": "string",
"name": "string",
"title": "string",
"description": "string",
"plan_ids": [
"string"
],
"state": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.224Z",
"updated_at": "2024-07-13T09:54:48.224Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.224Z",
"updated_at": "2024-07-13T09:54:48.224Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {},
"created_at": "2024-07-13T09:54:48.224Z",
"updated_at": "2024-07-13T09:54:48.224Z"
}
}
Bad Request - The request was malformed or contained invalid parameters.
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1beta1/billing/products
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
python / requests
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
go / native
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
nodejs / axios
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
ruby / Net::HTTP
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
csharp / RestSharp
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
php / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
java / OkHttp
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'
powershell / RestMethod
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/billing/products' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"body": {
"name": "string",
"title": "string",
"description": "string",
"plan_id": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.185Z",
"updated_at": "2024-07-13T09:54:48.185Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {}
}
}'