Help | SalesPlay Help Center
REST API Access for Business Integration

Step-by-step

How to Get SalesPlay REST API Access for Business Integration

If you're looking to integrate SalesPlay POS with your own inventory, accounting, or ERP system, our REST API allows you to securely access business-critical data like products, orders, stock levels, and more.

This guide will help you get started with accessing and using SalesPlay APIs effectively.


What You Can Do with SalesPlay API

SalesPlay currently provides REST API access for the following resources:

  • Categories
  • Subcategories
  • Measurements
  • Taxes
  • Customers
  • Suppliers
  • Products
  • Receipts
  • Orders
  • Shops
  • Payment Types
  • GRN (Goods Received Notes)
  • Inventory

You can use these APIs to build real-time integrations with your internal systems.


Generate an Access Token

Step 1: Generate an Access Token

To authenticate API requests, you need a personal access token.

Here’s how to get it:

  1. Log in to SalesPlay Backoffice
  2. Go to Integrations > Access Token
  3. Click Generate Token
  4. Copy the token securely (you’ll use this in your API requests)

⚠️ Keep this token confidential and never expose it publicly.

Step 2: Set Up Your Environment (Optional for Developers)

To test the API using Postman:

  1. Download Postman: https://www.postman.com/downloads/
  2. Import the SalesPlay API Collection into Postman
  3. Define variables in Postman environment:
    • baseUrl: https://api.salesplaypos.com/v1.0
    • Token: Your personal access token from Step 1

This setup allows for streamlined testing across multiple endpoints.


Example: How to Call the Products API

Endpoint to Get Product List:

bash

GET /products

 

Full URL:

bash

https://api.salesplaypos.com/v1.0/products

 

Headers Required:

pgsql

Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json

 

Sample cURL Request:

bash

curl --request GET \
--url https://api.salesplaypos.com/v1.0/products \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json'

This will return a paginated list of products. Use the cursor parameter to navigate large datasets.

Handling Pagination

  • By default, responses are limited to 10 items.
  • You can increase this using ?limit=100 (max 250).
  • Use the cursor from the response to fetch the next batch.

API Rate Limits

SalesPlay APIs are rate-limited:

  • 300 requests per 300 seconds per account
  • If exceeded, you'll receive an HTTP 429 error

Plan your integration to respect this limit and implement retry logic if necessary.

Date & Time Format

All timestamps in the API follow 24-hour format. Make sure to convert them to your local time zone as needed.

API Versioning

All API endpoints follow versioning in the base URL:

arduino

https://api.salesplaypos.com/v1.0

Future updates may include new versions (e.g., v1.1, v2.0), so be sure to reference the correct one.

Need Help?

If you have any issues or need help with your API integration:

We’re happy to assist!

 


 

Was this helpful?