Getting Started with the LetBuyy API

Everything you need to make your first authenticated API call.

The guide, illustrated
A request card and access key connect through a glass gate to product records.
An authenticated request connects your application to structured store data.Concept illustration

Explore an idea, then read the detail.

Authentication

The API uses Bearer token authentication. Generate an API key from Settings → Developer → API Keys in your Merchant Control Plane. Keys are scoped: read-only, read-write, or admin.

Read this section

The LetBuyy API is a REST API with JSON responses. Every LetBuyy store has a unique site_id and can be accessed programmatically via API keys scoped to specific capabilities.

Authentication

A request card and access key connect through a glass gate to product records.
AuthenticateAn authenticated request connects your application to structured store data.Concept illustration

The API uses Bearer token authentication. Generate an API key from Settings → Developer → API Keys in your Merchant Control Plane. Keys are scoped: read-only, read-write, or admin.

curl -X GET \
  https://api.letbuyy.com/v1/products \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Site-ID: your_site_id"

Core Endpoints

ResourceEndpointMethods
Products/v1/productsGET, POST, PUT, DELETE
Orders/v1/ordersGET, PUT
Customers/v1/customersGET, POST, PUT
Inventory/v1/inventoryGET, PUT
Collections/v1/collectionsGET, POST, PUT, DELETE

Rate Limits

  • Standard: 100 requests per second per site
  • Burst: 250 requests in any 5-second window
  • Rate limit headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
  • 429 response when exceeded — implement exponential backoff

Pagination

An editorial storefront product collection.
PaginationShow the product clearly, then help the buyer decide.Concept illustration
GET /v1/products?limit=50&cursor=eyJpZCI6MTIzfQ

// Response
{
  "data": [...],
  "pagination": {
    "next_cursor": "eyJpZCI6MTczfQ",
    "has_more": true
  }
}

Idempotency Keys

For POST requests that create resources (orders, products), send an Idempotency-Key header. If the same key is used within 24 hours, the API returns the original response instead of creating a duplicate.

Errors

  • 400 Bad Request: Invalid parameters — check the error.field in the response
  • 401 Unauthorized: Invalid or expired API key
  • 403 Forbidden: Correct key but insufficient scope
  • 404 Not Found: Resource doesn't exist for this site_id
  • 429 Too Many Requests: Rate limit exceeded
  • 500 Internal Server Error: LetBuyy error — retry with backoff

Arjun Mehta

Developer Relations

Builds developer tools and writes about APIs, webhooks, and extending the LetBuyy platform.

5 articles1 topics

Developers
All articles by Arjun
Weekly Newsletter

Commerce guides and platform updates

Commerce Insights Weekly

AI Commerce insights
India growth playbooks
Platform feature updates
Conversion rate tactics

Email subscriptions are not available yet. Follow new guides with your RSS reader.

Follow via RSS

Keep reading

Recommended for you

Email subscriptions are not available yet. Follow new guides with your RSS reader.

Follow via RSS