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

Create an adapter

Creates a new feed adapter. The (name, adapter_type) combination must be unique — creating a record that duplicates an existing pair is rejected with a 406 business error (google_merchant_feed_adapter_100_1).

Paths in conf.attribute_params and conf.nested_tags[].attribute that contain dangerous segments (delete, update, save, create, bulk_create, bulk_update, objects, or their __-joined forms) are rejected with a 400 validation error.

To restrict the feed to a specific set of products, supply filter_file as a data URI (data:<mime-type>;base64,<content>) containing an XLS, XLSX, or CSV file with at least one column named sku or base_code.

post
/product_merchant_feeds/
Authorizations
AuthorizationstringRequired

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

Body

Fields for creating or updating a product feed adapter.

namestring · max: 255Required

A human-readable name for this adapter. Together with adapter_type, must be unique.

Example: Main Google Feed
confobjectRequired

Adapter-specific configuration JSON. See the Adapter Configuration (conf) section. Paths in attribute_params and nested_tags[].attribute containing dangerous segments (delete, update, save, create, bulk_create, bulk_update, objects) are rejected with a 400 validation error.

Example: {"feed_filename":"google/feed.xml"}
adapter_typestring · enumOptional

The adapter implementation used to generate the feed. See the Adapter Types table in the Product Feed Adapters section for descriptions.

Possible values:
is_activebooleanRequired

Whether the adapter participates in scheduled feed generation.

Example: true
is_one_timebooleanOptional

When true, the adapter is excluded from recurring scheduled runs. Defaults to false.

Default: falseExample: false
filter_filestring · nullableOptional

Tabular file (XLS, XLSX, or CSV) that limits which products are included in the feed, encoded as a data URI: data:<mime-type>;base64,<content> (e.g. data:application/vnd.ms-excel;base64,UEsDB...). The file must contain at least one column named sku or base_code; any other layout is rejected with a 400 validation error. Omit or send null to include all eligible products.

Responses
201

The adapter was created.

application/json

A product feed adapter record.

pkintegerRead-onlyOptional

The unique identifier of the adapter. Assigned by the server.

namestring · max: 255Optional

A human-readable name for this adapter. Together with adapter_type, must be unique.

Example: Main Google Feed
confobjectOptional

Adapter-specific configuration. See the Adapter Configuration (conf) section for the recognized top-level keys.

Example: {"feed_filename":"google/feed.xml","schema_data":null}
adapter_typestring · enumOptional

The adapter implementation used to generate the feed. See the Adapter Types table in the Product Feed Adapters section for descriptions.

Possible values:
is_activebooleanOptional

Whether the adapter is included in scheduled feed generation runs. Inactive adapters can still be triggered on demand.

Example: true
is_one_timebooleanOptional

When true, the adapter is used only once and excluded from recurring scheduled runs. It can still be triggered manually.

Example: false
file_urlstring · nullableRead-onlyOptional

The public URL of the most recently generated feed file, derived from conf.feed_filename and the AWS_S3_BUCKET_URL_TEMPLATE environment variable. null when conf.feed_filename is absent.

Example: https://mybucket.s3.amazonaws.com/google/feed.xml
filter_filestring · nullableOptional

URL of the stored product filter file, or null when no filter file is configured. When a filter file is set, only products whose sku or base_code appears in the file are included in the generated feed.

post/product_merchant_feeds/
POST /api/v1/remote/1/product_merchant_feeds/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 148

{
  "name": "Main Google Feed",
  "conf": {
    "feed_filename": "google/feed.xml"
  },
  "adapter_type": "base",
  "is_active": true,
  "is_one_time": false,
  "filter_file": null
}
{
  "pk": 1,
  "name": "Main Google Feed",
  "conf": {
    "feed_filename": "google/feed.xml",
    "schema_data": null
  },
  "adapter_type": "base",
  "is_active": true,
  "is_one_time": false,
  "file_url": "https://mybucket.s3.amazonaws.com/google/feed.xml",
  "filter_file": null
}

Last updated

Was this helpful?