API reference

The Open Network REST API — base URL, authentication, and every endpoint.

The Open Network API is a JSON REST API. It is called from your server, authenticated with an API key, and answers with a consistent response envelope.

Base URL#

https://api-host.localoy.app/api/v1/open-network/v1

Sandbox and production share the base URL; the key decides the environment. Paths below are relative to it.

Authentication#

Send your key as a bearer token. Each endpoint needs one scope.

Conventions#

  • JSON bodies with Content-Type: application/json, at most 1 MB.
  • camelCase field names; money as integers in minor units.
  • ISO 8601 UTC timestamps.
  • Errors carry a stable code.
  • Rate limit: 240 requests per 15 minutes per key.
Authenticated request
curl "$LOCALOY_BASE_URL/ping" \
  -H "Authorization: Bearer $LOCALOY_API_KEY"
Response · 200
{
  "success": true,
  "data": {
    "ok": true,
    "principal": "PARTNER",
    "environment": "PRODUCTION",
    "scopes": ["REGISTRATION", "UPDATE", "INVENTORY", "PAYMENT"],
    "keyPrefix": "lok_live_ab3kq7mz"
  }
}

Endpoints#

MethodPathScopeDescription
GET/healthnone, no keyService health.
GET/pingkey, no scopeVerify a key.
POST/catalog/itemsREGISTRATIONCreate or replace an item.
GET/catalog/itemsINVENTORYList items.
GET/catalog/items/{externalId}INVENTORYRetrieve an item.
PATCH/catalog/items/{externalId}UPDATEUpdate an item.
DEL/catalog/items/{externalId}UPDATEDelete an item.
GET/bookablesINVENTORYList what items can link to.
GET/payments/sessions/{id}PAYMENTRetrieve a payment session.
POST/payments/sessions/{id}/resultPAYMENTReport a payment result.
POST/payments/sessions/{id}/refundPAYMENTRecord a refund.

Account setup — keys, webhook endpoints, checkout and inventory settings — is done in the Partner Portal, not through this API.