Product Prices
#
Get a product priceUse this endpoint if you want to get all the information for a specific product price.
Method: GET
Endpoint: {{env}}/api/productprice/{product_price_id}
- Response
Response
Parameter | Type | Description |
---|---|---|
Id | string | The Id for the product price |
ProductId | string | The Id for the product on witch is related |
CreatedAt | date | Creation date |
ProductPriceType | string | Price Model |
ProductPriceStatus | string | Status for the product price |
Price | decimal | Price |
PerUnit | string | Package size |
Frequency | string | Price frequency |
PlanName | string | Plan name |
PlanDescription | string | Plan description |
BillingPeriod | string | Billing Period Type |
EnableSubscriptionEndDate | bool | Enable subscription end date |
SubscriptionEndDate | date | End date that makes subscription available |
EnableFreeTrial | bool | Enable free trial feature |
FreeTrialInDays | int | Number of days for free trial |
EnableSetupFee | bool | Enable setup fee |
SetupFee | decimal | Number of days for free trial |
Currency | string | Currency set for the product price |
Product | Related product | |
Id | guid | Id for the Product |
Name | string | Product name |
Description | string | Product Description |
ProductStatus | string | Product status |
CustomerId | guid | Id for the related customer |
#
Delete a product priceUse this endpoint if you want to delete a specific price. You can only delete prices that are not being used on any active invoices or subscriptions.
Method: DELETE
Endpoint: {{env}}/api/productprice/{product_price_id}
- Response
info
You can only delete prices that are not being used on any active invoices or subscriptions
#
Archive a product priceUse this endpoint if you want to archive a specific product price. Once archived, the product price will not be visible in any end user facing screens. If there are any active subscriptions or invoices they will remain until cancelled.
Method: PATCH
Endpoint: {{env}}/api/productprice/{product_price_id}/archive
- Response
Parameter | Type | Description |
---|---|---|
Id | string | The Id for the product price |
ProductId | string | The Id for the product on witch is related |
CreatedAt | date | Creation date |
ProductPriceType | string | Price Model |
ProductPriceStatus | string | Status for the product price |
Price | decimal | Price |
PerUnit | string | Package size |
Frequency | string | Price frequency |
PlanName | string | Plan name |
PlanDescription | string | Plan description |
BillingPeriod | string | Billing Period Type |
EnableSubscriptionEndDate | bool | Enable subscription end date |
SubscriptionEndDate | date | End date that makes subscription available |
EnableFreeTrial | bool | Enable free trial feature |
FreeTrialInDays | int | Number of days for free trial |
EnableSetupFee | bool | Enable setup fee |
SetupFee | decimal | Number of days for free trial |
Currency | string | Currency set for the product price |
Product | Related product | |
Id | guid | Id for the Product |
Name | string | Product name |
Description | string | Product Description |
ProductStatus | string | Product status |
CustomerId | guid | Id for the related customer |
#
Unarchive a product priceUse this endpoint if you want to unarchive a specific product price. Once unarchive, the product price will be visible in any end user facing screens. If there are any active subscriptions or invoices they will remain until unaffected.
Method: PATCH
Endpoint: {{env}}/api/productprice/{product_price_id}/unarchive
- Response
Parameter | Type | Description |
---|---|---|
Id | string | The Id for the product price |
ProductId | string | The Id for the product on witch is related |
CreatedAt | date | Creation date |
ProductPriceType | string | Price Model |
ProductPriceStatus | string | Status for the product price |
Price | decimal | Price |
PerUnit | string | Package size |
Frequency | string | Price frequency |
PlanName | string | Plan name |
PlanDescription | string | Plan description |
BillingPeriod | string | Billing Period Type |
EnableSubscriptionEndDate | bool | Enable subscription end date |
SubscriptionEndDate | date | End date that makes subscription available |
EnableFreeTrial | bool | Enable free trial feature |
FreeTrialInDays | int | Number of days for free trial |
EnableSetupFee | bool | Enable setup fee |
SetupFee | decimal | Number of days for free trial |
Currency | string | Currency set for the product price |
Product | Related product | |
Id | guid | Id for the Product |
Name | string | Product name |
Description | string | Product Description |
ProductStatus | string | Product status |
CustomerId | guid | Id for the related customer |