Solk ERP API
Ping
Confirms the key and returns the datasets enabled on the connection (datasets); queued_orders = orders waiting to be written to the ERP.
Authorization
AuthorizationheaderrequiredSolk ERP API key (erp_…): shown once when a Solk ERP API connection is created under Settings → Accounting & ERP. May also be sent as the
X-Solk-Erp-Key header.Request
curl https://ornek.solk.app/api/erp/v1/ping \
-H "Authorization: Bearer $SOLK_ERP_KEY"const res = await fetch("https://ornek.solk.app/api/erp/v1/ping", {
headers: {
Authorization: `Bearer ${process.env.SOLK_ERP_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.get(
"https://ornek.solk.app/api/erp/v1/ping",
headers={"Authorization": f"Bearer {os.environ['SOLK_ERP_KEY']}"},
)
print(r.json())Response
{
"connection": {
"id": 1,
"name": "Logo ara katmanı"
},
"datasets": [
"customers",
"balances"
],
"ok": true,
"queued_orders": 0
}Example responses were captured from a v54 installation running sample data; lists are shortened to two items.