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_activetofalseremoves every basket item on the storefront that references this data source. The data source record itself is kept and can be reactivated later.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the data source.
The body of a data source partial update request. Only the fields included in the body are changed; every field is optional.
The seller's display name. Omitting it keeps the current value; must stay unique when included.
A URL-safe identifier. Must stay unique when included.
The seller's full / legal name.
The seller's unique business code. Must stay unique when included.
Postal address.
Contact e-mail address.
Contact phone number.
Fax number.
Registered electronic-mail (KEP) address.
Central Registry (MERSIS) number.
Trade association / chamber the seller belongs to.
Free-form JSON for extra data.
The identifier of the price list. Must reference an existing price list when given.
The identifier of the stock list. Must reference an existing stock list when given.
Whether the data source is active. Setting it to false removes every basket item that references this data source.
The updated data source.
A data source — the commercial and legal identity of a seller / supplier, bound to the price and stock lists it sells under.
The unique identifier of the data source.
The seller's display name. Unique across all data sources.
A URL-safe identifier. Unique when set.
The seller's full / legal name.
The seller's unique business code.
Postal address.
Contact e-mail address.
Contact phone number.
Fax number.
Registered electronic-mail (KEP) address.
Central Registry (MERSIS) number.
Trade association / chamber the seller belongs to.
Free-form JSON for extra, integration-specific data.
The identifier of the price list supplying this seller's prices.
The identifier of the stock list supplying this seller's stock.
Whether the data source is active.
The request contains invalid or missing data — for example a missing name or supplier_code, a name, supplier_code, or slug that repeats a value already stored, a malformed e-mail in email or kep_address, or a price_list / stock_list that does not exist. The response names the field the complaint belongs to.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No data source exists with the given identifier.
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?

