Get the current connection
const url = 'https://sandbox.partners.loops.sa/v1/connection';const options = { method: 'GET', headers: {'Loops-Merchant-Id': 'mer_7Hq2Lw8Z', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://sandbox.partners.loops.sa/v1/connection \ --header 'Authorization: Bearer <token>' \ --header 'Loops-Merchant-Id: mer_7Hq2Lw8Z'Returns what the merchant granted your application, including scopes and locations.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The merchant you are acting for (mer_…). Required for platform applications;
optional for direct integrations, which have a single merchant.
Responses
Section titled “Responses”The connection.
object
Your own reference for this merchant, if you provided one.
Whether locations the merchant adds later are shared automatically.
Example
{ "id": "con_4Tz8Yp1W", "merchant_id": "mer_7Hq2Lw8Z", "external_ref": "BRQ-10021", "status": "active", "scopes": [ "locations:read", "orders:read", "events:read" ]}The access token is missing, expired or invalid.
RFC 9457 Problem Details with a stable code.
object
Stable machine-readable error code. Switch on this, not on title.
Field errors, for invalid_request.
object
Example
{ "type": "https://docs.partners.loops.sa/errors/scope_not_granted", "title": "Scope not granted", "status": 403, "code": "invalid_request", "detail": "The merchant has not granted orders:read to this application.", "request_id": "req_01J9X7P2QK"}Not allowed: the scope isn’t approved or granted, the connection is not active,
or your application is suspended. See code.
RFC 9457 Problem Details with a stable code.
object
Stable machine-readable error code. Switch on this, not on title.
Field errors, for invalid_request.
object
Example
{ "type": "https://docs.partners.loops.sa/errors/scope_not_granted", "title": "Scope not granted", "status": 403, "code": "invalid_request", "detail": "The merchant has not granted orders:read to this application.", "request_id": "req_01J9X7P2QK"}© 2026 Loops Technologies | شركة لووبز للتقنيات. All rights reserved.
