curl --request POST \
--url https://dev.seqhq.io/api/list-prices/{id}/archive \
--header 'Authorization: <authorization>'{
"id": "b4d7e884-e007-4183-8355-4771865c5100",
"productId": "f409d651-c475-4142-aafd-a5d2bd74d4f9",
"name": "Sample product",
"currency": "GBP",
"structure": {
"tiers": [
{
"upperBound": "200",
"price": "1.00",
"fee": "50.00",
"isPricePercentage": false
},
{
"upperBound": "400",
"price": "0.75",
"fee": "25.00",
"isPricePercentage": false
},
{
"price": "0.50",
"fee": "0.00",
"isPricePercentage": false
}
],
"usageMetricId": "04c62961-04ba-48e6-b985-758bb7d3e712",
"usageCalculationMode": "BILLING_PERIOD",
"pricingType": "GRADUATED"
},
"billingFrequency": "MONTHLY",
"usageCalculationPeriod": {
"frequency": "QUARTERLY",
"interval": 1
},
"billingType": "IN_ARREARS",
"createdAt": "2021-08-25T12:00:00Z",
"updatedAt": "2021-08-25T12:00:00Z",
"integrationIds": [
{
"service": "Xero",
"id": "123",
"isPending": false
}
],
"customMetricParameters": [
{
"parameterId": "2963e49a-c8e0-4673-89f5-7a805c0faf14",
"value": "10"
}
]
}Mark a list price as archived
curl --request POST \
--url https://dev.seqhq.io/api/list-prices/{id}/archive \
--header 'Authorization: <authorization>'{
"id": "b4d7e884-e007-4183-8355-4771865c5100",
"productId": "f409d651-c475-4142-aafd-a5d2bd74d4f9",
"name": "Sample product",
"currency": "GBP",
"structure": {
"tiers": [
{
"upperBound": "200",
"price": "1.00",
"fee": "50.00",
"isPricePercentage": false
},
{
"upperBound": "400",
"price": "0.75",
"fee": "25.00",
"isPricePercentage": false
},
{
"price": "0.50",
"fee": "0.00",
"isPricePercentage": false
}
],
"usageMetricId": "04c62961-04ba-48e6-b985-758bb7d3e712",
"usageCalculationMode": "BILLING_PERIOD",
"pricingType": "GRADUATED"
},
"billingFrequency": "MONTHLY",
"usageCalculationPeriod": {
"frequency": "QUARTERLY",
"interval": 1
},
"billingType": "IN_ARREARS",
"createdAt": "2021-08-25T12:00:00Z",
"updatedAt": "2021-08-25T12:00:00Z",
"integrationIds": [
{
"service": "Xero",
"id": "123",
"isPending": false
}
],
"customMetricParameters": [
{
"parameterId": "2963e49a-c8e0-4673-89f5-7a805c0faf14",
"value": "10"
}
]
}Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 List Price Id
OK
Unique ID
"b4d7e884-e007-4183-8355-4771865c5100"
The related product ID
"f409d651-c475-4142-aafd-a5d2bd74d4f9"
The customer-facing name of this list price
"Sample product"
The pricing currency
ARS, AUD, BRL, BGN, CAD, CHF, CLP, CNY, COP, CZK, DKK, EGP, EUR, GBP, HKD, ILS, INR, ISK, JPY, KRW, MXN, NOK, NZD, PLN, SAR, SEK, SGD, THB, USD, UYU, ZAR "GBP"
The pricing structure
Show child attributes
{
"price": "150.00",
"pricingType": "ONE_TIME"
}The recurrence of charging this price.
ON_DEMAND, ONE_TIME, MONTHLY, QUARTERLY, HALF_YEARLY, YEARLY "MONTHLY"
How to bill this price: in-arrears or in-advance.
IN_ARREARS, IN_ADVANCE "IN_ARREARS"
Creation timestamp. Formatted as an ISO 8601 timestamp.
"2021-08-25T12:00:00Z"
Timestamp when price was last updated. Formatted as an ISO 8601 timestamp.
"2021-08-25T12:00:00Z"
Alternate IDs for this price in third-party integration systems
Show child attributes
[
{
"service": "Xero",
"id": "123",
"isPending": false
}
]Specific parameters to influence usage calculation for this price, and are only required when using a custom metric. Please speak to your Sequence contacts for further information prior to usage.
Show child attributes
[
{
"parameterId": "2963e49a-c8e0-4673-89f5-7a805c0faf14",
"value": "10"
}
]