curl --request GET \
--url https://dev.seqhq.io/api/discounts \
--header 'Authorization: <authorization>'{
"items": [
{
"id": "d58bf2e3-7a5d-4900-8457-2521c6880f7d",
"sequenceAccountId": "1986c663-9ee9-4811-bfbf-57d2ad666096",
"billingScheduleId": "08a76ddb-230e-4700-a5e2-70f6edaf7d50",
"phaseId": "220e1878-b70a-4dfd-9c55-7651424b12d6",
"priceIds": [
"e007e884-5100-4183-8355-4771865cb4d7"
],
"separateLineItem": false,
"amount": 25,
"discountCalculationType": "PERCENTAGE",
"message": "Loyalty Discount",
"validFrom": "2023-01-01",
"validTo": "2023-01-31",
"createdAt": "2022-06-28T16:47:00Z",
"updatedAt": "2022-06-28T16:47:00Z",
"seatDiscountType": "ALL_SEATS"
}
],
"pagination": {
"after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
"before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
"totalResultSize": 10
}
}List all discounts for Sequence account
curl --request GET \
--url https://dev.seqhq.io/api/discounts \
--header 'Authorization: <authorization>'{
"items": [
{
"id": "d58bf2e3-7a5d-4900-8457-2521c6880f7d",
"sequenceAccountId": "1986c663-9ee9-4811-bfbf-57d2ad666096",
"billingScheduleId": "08a76ddb-230e-4700-a5e2-70f6edaf7d50",
"phaseId": "220e1878-b70a-4dfd-9c55-7651424b12d6",
"priceIds": [
"e007e884-5100-4183-8355-4771865cb4d7"
],
"separateLineItem": false,
"amount": 25,
"discountCalculationType": "PERCENTAGE",
"message": "Loyalty Discount",
"validFrom": "2023-01-01",
"validTo": "2023-01-31",
"createdAt": "2022-06-28T16:47:00Z",
"updatedAt": "2022-06-28T16:47:00Z",
"seatDiscountType": "ALL_SEATS"
}
],
"pagination": {
"after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
"before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
"totalResultSize": 10
}
}Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 Maximum number of objects to return per-page. Must be between 1 and 100 (inclusive).
Pagination offset. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.
Pagination offset. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.next or pagination.previous to retrieve each page.
OK
Discounts
Show child attributes
[
{
"id": "d58bf2e3-7a5d-4900-8457-2521c6880f7d",
"sequenceAccountId": "1986c663-9ee9-4811-bfbf-57d2ad666096",
"billingScheduleId": "08a76ddb-230e-4700-a5e2-70f6edaf7d50",
"phaseId": "220e1878-b70a-4dfd-9c55-7651424b12d6",
"priceIds": ["e007e884-5100-4183-8355-4771865cb4d7"],
"separateLineItem": false,
"amount": 25,
"discountCalculationType": "PERCENTAGE",
"message": "Loyalty Discount",
"validFrom": "2023-01-01",
"validTo": "2023-01-31",
"createdAt": "2022-06-28T16:47:00Z",
"updatedAt": "2022-06-28T16:47:00Z",
"seatDiscountType": "ALL_SEATS"
}
]Results pagination
Show child attributes
{
"after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
"before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
"totalResultSize": 10
}