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

Data Sources

Administrative endpoints for data sources — the sellers / suppliers behind the catalog. A data source carries the commercial and legal identity of a seller (a display name, a unique supplier_code, and contact details) and binds that seller to the price list and stock list it sells under. On a marketplace, each seller is a data source; a single-seller store typically has one.

Core Capabilities

1. Listing & Filtering

  • Retrieve a paginated list of data sources.

  • Filter by supplier_code (case-insensitive exact match).

  • Order results with the sort parameter, as described under Filtering & Ordering.

2. Full CRUD

  • Create a data source with its identity, contact details, and price / stock list bindings.

  • Retrieve a single data source.

  • Fully or partially update a data source.

  • Delete a data source. DELETE is a hard delete — the record is removed.

Deactivating a data source has a side effect. Setting is_active to false on an update removes every basket item on the storefront that references this data source. Deactivation is not the same as deletion: the record itself is kept and can be reactivated later.

Data Source Fields

Field
Type
Description

pk

integer

The unique identifier of the data source. Read-only; supplying it in a request body has no effect.

name

string

The seller's display name. Required on create and full update. Up to 64 characters and unique across all data sources.

slug

string

A URL-safe identifier. Optional and unique when given; up to 64 characters.

title

string

The seller's full / legal name. Optional; up to 255 characters.

supplier_code

string

The seller's unique business code. Required on create and full update. Up to 50 characters and unique across all data sources.

address

string

Postal address. Optional.

email

string

Contact e-mail address. Optional; must be a valid e-mail when given.

phone_number

string

Contact phone number. Optional; up to 128 characters.

fax_number

string

Fax number. Optional; up to 128 characters.

kep_address

string

Registered electronic-mail (KEP) address. Optional; must be a valid e-mail when given.

mersis_number

string

Central Registry (MERSIS) number. Optional; up to 16 characters.

trade_association

string

Trade association / chamber the seller belongs to. Optional; up to 255 characters.

extras

object

Free-form JSON for extra, integration-specific data. Optional; defaults to an empty object.

price_list

integer

The identifier of the price list supplying this seller's prices. Optional; may be null.

stock_list

integer

The identifier of the stock list supplying this seller's stock. Optional; may be null.

is_active

boolean

Whether the data source is active. Defaults to true on create. See the deactivation side effect above.

Filtering & Ordering

The list endpoint accepts a single filter, supplier_code, matched case-insensitively against the whole value. Query parameters that are not listed are ignored rather than rejected. Results can be ordered with the sort parameter on the data source's fields; prefix a field with a hyphen for descending order and separate several fields with commas.

Dynamic Settings & Environment Variables

No dynamic settings (dj_dynamic_settings) and no environment variables are read by these endpoints. Their behavior does not change with the management-panel or deployment configuration.

Last updated

Was this helpful?