Build with Gridline API
Integrate orders, payments, loyalty programs, and customer management into your applications with our RESTful API. Get started in minutes with comprehensive documentation and official SDKs.
01
Getting Started
Set up your API keys and make your first request
02Authentication
Learn about API keys, JWT tokens, and auth flows
03Orders
Create, retrieve, and manage orders programmatically
04Products
Manage your product catalog via the API
05Customers
Customer profiles, history, and preferences
06Loyalty
SoPoints integration for earning and redeeming rewards
07Webhooks
Real-time event notifications for your application
08SDKs
Official client libraries for JavaScript and Python
Quick Example
Create an order with a single API call:
POST /v1/ordersJavaScript
const response = await fetch('https://api.gridlinepos.com/v1/orders', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_live_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
items: [
{ product_id: 'prod_abc123', quantity: 2 },
{ product_id: 'prod_def456', quantity: 1 },
],
customer_id: 'cus_xyz789',
payment_method: 'card',
}),
});
const order = await response.json();
console.log(order.id); // "ord_a1b2c3d4"Base URL
All API requests are made to:
https://api.gridlinepos.com/v1All requests must be made over HTTPS. Calls made over plain HTTP will be rejected.