Product Prices

Add a product price

post/product-prices

Request

  • Base URL
    https://api.fanheroapi.com
  • URL
    https://api.fanheroapi.com/product-prices
  • Auth
    API key in header apiKey

Request body

idstring required
productsIdstring required
unitPricenumber required
unitPriceInstallmentnumber required
pricingModelIdstring required
billingTypesIdstring required
recurringUsageTypesIdstring required
billingPeriodIdstring required
recurringMeteredUsageIdstring required
currencyIdstring required
internalDescriptionstring required
descriptionstring required
recurringTrialPeriodDaysnumber required
featuresobject[] required

Example request

{
  "id": "4032597f-1765-44db-ad08-f6f0a096efc9",
  "productsId": "5ffd2ec8-ec75-4916-97f1-005240897d21",
  "unitPrice": 40.1,
  "unitPriceInstallment": 40.1,
  "pricingModelId": "8eaa8da0-be76-4e03-823f-152c5a7aa0b5",
  "billingTypesId": "73da57b8-6677-4ae2-afc5-cae76bff7d70",
  "recurringUsageTypesId": "c25c0237-1cd8-4f69-b10e-60d8e07b33ef",
  "billingPeriodId": "d211b9e5-4639-416f-b48e-bc7ccda4164f",
  "recurringMeteredUsageId": "9814ea3d-7640-4ebc-be53-eb9f34700a3b",
  "currencyId": "56ea7c95-dd22-46b4-a978-4319e6728c96",
  "internalDescription": "Sample product description",
  "description": "Sample product description",
  "recurringTrialPeriodDays": 40,
  "priceTiers": [
    {
      "id": "2031a086-7e87-47d6-8c28-b904b4951507",
      "productPricesId": "8eaa8da0-be76-4e03-823f-152c5a7aa0b5",
      "flatPrice": 40.1,
      "unitPrice": 40.1,
      "upTo": 2
    }
  ],
  "metadata": [
    {
      "key": "sample key",
      "value": "sample value"
    },
    {
      "key": "another key",
      "value": "another value"
    }
  ],
  "features": [
    {
      "key": "sample key",
      "value": "sample value"
    },
    {
      "key": "another key",
      "value": "another value"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.