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

Partially update a data source

Updates one or more fields of a data source. Only the fields included in the request body are changed; everything left out keeps its current value.

name, supplier_code, and slug stay subject to their uniqueness rules when included.

Setting is_active to false removes every basket item on the storefront that references this data source. The data source record itself is kept and can be reactivated later.

patch
/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.

Body

The body of a data source partial update request. Only the fields included in the body are changed; every field is optional.

namestring · max: 64Optional

The seller's display name. Omitting it keeps the current value; must stay unique when included.

slugstring · max: 64 · nullableOptional

A URL-safe identifier. Must stay unique when included.

titlestring · max: 255 · nullableOptional

The seller's full / legal name.

supplier_codestring · max: 50Optional

The seller's unique business code. Must stay unique when included.

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 data.

price_listinteger · nullableOptional

The identifier of the price list. Must reference an existing price list when given.

stock_listinteger · nullableOptional

The identifier of the stock list. Must reference an existing stock list when given.

is_activebooleanOptional

Whether the data source is active. Setting it to false removes every basket item that references this data source.

Responses
200

The updated 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.

patch/data_sources/{id}/
PATCH /api/v1/remote/1/data_sources/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "is_active": false
}
{
  "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?