For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve a data source

Returns a single data source by its identifier.

get
/data_sources/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the data source.

Responses
200

The requested data source.

application/json

A data source — the commercial and legal identity of a seller / supplier, bound to the price and stock lists it sells under.

pkintegerRead-onlyOptional

The unique identifier of the data source.

namestring · max: 64Optional

The seller's display name. Unique across all data sources.

slugstring · max: 64 · nullableOptional

A URL-safe identifier. Unique when set.

titlestring · max: 255 · nullableOptional

The seller's full / legal name.

supplier_codestring · max: 50Optional

The seller's unique business code.

addressstring · nullableOptional

Postal address.

emailstring · nullableOptional

Contact e-mail address.

phone_numberstring · max: 128 · nullableOptional

Contact phone number.

fax_numberstring · max: 128 · nullableOptional

Fax number.

kep_addressstring · nullableOptional

Registered electronic-mail (KEP) address.

mersis_numberstring · max: 16 · nullableOptional

Central Registry (MERSIS) number.

trade_associationstring · max: 255 · nullableOptional

Trade association / chamber the seller belongs to.

extrasobjectOptional

Free-form JSON for extra, integration-specific data.

price_listinteger · nullableOptional

The identifier of the price list supplying this seller's prices.

stock_listinteger · nullableOptional

The identifier of the stock list supplying this seller's stock.

is_activebooleanOptional

Whether the data source is active.

get/data_sources/{id}/
GET /api/v1/remote/1/data_sources/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 8,
  "name": "Main Supplier",
  "slug": "main-supplier",
  "title": "Main Supplier Co.",
  "supplier_code": "SUP-001",
  "address": "123 Example Street",
  "email": "seller@example.com",
  "phone_number": "+902121234567",
  "fax_number": null,
  "kep_address": "seller@hs01.kep.tr",
  "mersis_number": "0123456789012345",
  "trade_association": "Chamber of Commerce",
  "extras": {},
  "price_list": 2,
  "stock_list": 2,
  "is_active": true
}

Last updated

Was this helpful?