Stores API
Manage multiple store locations, registers, and operating hours
19 endpoints
Base URL:
https://api.nexapay.com/v1| Method | Path | Description |
|---|---|---|
| GET | /stores | List all stores |
| POST | /stores | Create new store |
| GET | /stores/{store_id} | Get store details |
| PUT | /stores/{store_id} | Update store information |
| DELETE | /stores/{store_id} | Delete store |
| GET | /stores/{store_id}/settings | Get store settings |
| PUT | /stores/{store_id}/settings | Update store settings |
| GET | /stores/{store_id}/hours | Get store operating hours |
| PUT | /stores/{store_id}/hours | Update store operating hours |
| POST | /stores/{store_id}/open | Open store for business |
| POST | /stores/{store_id}/close | Close store |
| GET | /stores/{store_id}/status | Get store status and metrics |
| GET | /stores/{store_id}/registers | List registers/terminals |
| POST | /stores/{store_id}/registers | Create register |
| GET | /stores/{store_id}/registers/{register_id} | Get register details |
| PUT | /stores/{store_id}/registers/{register_id} | Update register |
| DELETE | /stores/{store_id}/registers/{register_id} | Delete register |
| POST | /stores/{store_id}/registers/{register_id}/open | Open register shift |
| POST | /stores/{store_id}/registers/{register_id}/close | Close register shift |
Detailed Examples
POST
/storesCreate a new store location.
Request Body
{
"name": "Downtown Location",
"code": "DTN-001",
"address": {
"street": "456 Downtown Ave",
"city": "Las Vegas",
"state": "NV",
"zip": "89102",
"country": "US",
"latitude": 36.1699,
"longitude": -115.1398
},
"phone": "+1-555-987-6543",
"email": "downtown@mycoffeeshop.com",
"timezone": "America/Los_Angeles",
"currency": "USD",
"type": "restaurant",
"operating_hours": {
"monday": { "open": "07:00", "close": "22:00" },
"tuesday": { "open": "07:00", "close": "22:00" },
"wednesday": { "open": "07:00", "close": "22:00" },
"thursday": { "open": "07:00", "close": "22:00" },
"friday": { "open": "07:00", "close": "23:00" },
"saturday": { "open": "08:00", "close": "23:00" },
"sunday": { "open": "08:00", "close": "21:00" }
}
}Response
{
"success": true,
"data": {
"id": "store_xyz789",
"name": "Downtown Location",
"code": "DTN-001",
"address": { ... },
"phone": "+1-555-987-6543",
"status": "active",
"created_at": "2024-01-15T16:00:00Z"
}
}