Page cover

Product Endpoint

Prouducts API access is read-only

Note: API Beta Access, see API Terms of Use


Overview

The Services API allows Enterprise accounts to retrieve a list of active products offered at their business location, including product details like name, stock, price, and categorization.

Endpoint

POST https://my.simplespa.com/api/v1/products

Authentication

You must include a valid Authorization header using your SimpleSpa API Key:

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Replace YOUR_API_KEY with your SimpleSpa Enterprise API Key.

Request Body

The API expects a JSON body with optional parameters to control pagination and filtering.

Example Request Body

Field

Type

Required

Description

page

integer

No

Page number to retrieve (default = 1)

per_page

integer

No

Number of results per page (maximum 1000)

pos

string

No

Filter products with an inventory qty > 0

Example CURL Request

Response Format

The API responds with a JSON object containing the list of services and pagination information.

Example Response

Response Fields

Field

Description

success

Always true if the request was successful

products

List of product records

product_id

Unique hashed ID of the service

name

Product name

sku

SKU number

stock

Inventory stock qty

price

Regular price for the product

special_price

Discounted special price (if applicable)

tax

Tax rate for this product

unlimited

If inventory stock is being recorded

label

Name of the category

label_id

Unique Category ID

image_url

URL which hosts the image

page

Current page number

per_page

Number of results per page

total_results

Total number of services available

Notes

  • Pagination: Default per_page is 100 if not specified. Maximum allowed is 1000.

  • Prices:

    • If the service has a special discounted price, both price and special_price will be shown.

    • If no special price exists, special_price may be null.

  • Rate Limiting: Please ensure reasonable usage to avoid throttling. It is recommended to poll no faster than once per minute.

⚠️ IMPORTANT: Never expose your private API key in client-side JavaScript. Always use secure, server-side code to handle sensitive credentials.

Last updated