Page cover

Transaction Endpoint

Transactions API access is read-only

Note: API Beta Access, see API Terms of Use


Overview

The Transactions API allows Enterprise accounts to retrieve a paginated list of their transactions for a selected time period, including the receipt number, date/time, client, item name, price, tax, discount, qty, type (i.e. Service, Product etc.), User.

Endpoint

POST https://my.simplespa.com/api/v1/transactions.php

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

Field

Type

Required

Description

start

string

Yes

Start date in YYYY-MM-DD format

end

string

Yes

End date in YYYY-MM-DD format

client_id

string

No

Client ID found from the SimpleSpa client profile or from the Client Endpoint API

page

integer

No

Page number (default: 1)

per_page

integer

No

Results per page (default: 1000 maximum)

Example Request

Example Response

Notes

  • Important: for polling-based setup, all new records will be fetched together, which could lead to duplication unless filtered appropriately, please keep a record of those that have been contacted if you are using this for notifications

  • Limitation: Start/End date can range up to 92 days

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

  • 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