Update a data source
Fully updates a data source.
name and supplier_code are both required and must stay unique across all data sources.
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 create or full update request.
The seller's display name. Must be unique across all data sources.
A URL-safe identifier. Optional; must be unique when given.
The seller's full / legal name. Optional.
The seller's unique business code. Must be unique across all data sources.
Postal address. Optional.
Contact e-mail address. Optional.
Contact phone number. Optional.
Fax number. Optional.
Registered electronic-mail (KEP) address. Optional.
Central Registry (MERSIS) number. Optional.
Trade association / chamber the seller belongs to. Optional.
Free-form JSON for extra data. Optional; defaults to an empty object.
The identifier of the price list supplying this seller's prices. Optional. Must reference an existing price list when given.
The identifier of the stock list supplying this seller's stock. Optional. Must reference an existing stock list when given.
Whether the data source is active. On create, omitting it stores the record as active.
trueThe 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.
PUT /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: 125
{
"name": "Main Supplier",
"supplier_code": "SUP-001",
"title": "Main Supplier Co.",
"price_list": 2,
"stock_list": 2,
"is_active": true
}{
"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?

