FaxStore
The FaxStore Sales API allows sales and promotional discounts to be created, retrieved, and removed through the API. Sales can be applied to all items, a specific store category, or an individual item, with a defined discount percentage and expiry time. The available endpoints allow you to retrieve all active sales, retrieve a specific sale by ID, create a new sale, or delete an existing sale.
Table of Contents
| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
[
{
"id": 10,
"name": "Test Sale",
"items": "9",
"saleamount": "10",
"expiry": "",
"createdAt": "1734312724298"
}
]You are not authorized to access this resource.| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | required | The internal database ID of the sale. |
{
"id": 10,
"name": "test",
"items": "9",
"saleamount": "10",
"expiry": "",
"createdAt": "1734312724298"
}You are not authorized to access this resource.Sale not found.| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| name | String | required | The name or description of the sale (displayed internally) |
| items | String | required | A product ID, category, or astricks for everything. See ntoe. |
| expiry | Integer | required | MS timestamp specifying when the sale will end. |
| saleamount | Integer | required | Integer representing the percentage discount to apply. |
{
"id": 10,
"name": "Test Sale",
"items": "9",
"saleamount": "10",
"expiry": "",
"createdAt": "1734312724298"
}Invalid store cateogry ID provided.
Missing required body item - items are required
Invalid store item ID provided.You are not authorized to access this resource.Notes:
For the items body field:
Use * for all items, sc-XX for a store category, or XX for a specific item ID.
XX in the above represent a product or category ID.
Expiries must be in the future or the sale will not begin and will delete within 24 hours.
| Name | Type | Required | Description |
|---|---|---|---|
| authorization | String | required |
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | required | The database ID of the sale to delete. |
(no content)Sale ID not found.You are not authorized to access this resource.