Catalog
Products and everything that describes them. Requires catalog:read.
Servers
List the authenticated account's products
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the product title, ASIN and SKU. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Only active catalog products with a cost, missing one, or missing_with_sales: no cost and sales in the last 30 days, the ones that inflate the margin. Those sales are calculated every night, so on an account connected in the last few days it can come back empty while products have no cost: then use missing, and coverage in the P&L for how much of the sales lacks a cost. Combine with include_total for counts. Business and Master plans only.
"with""missing""missing_with_sales"Responses
200
GET /v1/products/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
product-costs
Set a product's unit cost and shipping cost. Requires costs:write - a scope of its own, not catalog:write, that also writes own expenses (/v1/expenses): reading the costs this writes is part of /v1/pnl/*, gated by catalog:read and plan, not by this one.
Operations
Set a product's unit cost and/or shipping cost
Same two independent cost timelines as the product ficha and the CSV template: unit cost (COGS) and shipping cost, each with its own effective date. At least one of price/shipping_cost is required. Writing one does not touch the other - send both to update them together in one call. 404 when id does not exist, is not a catalog product (Amazon Seller or Vendor) or falls outside the connections this credential can read. 409 when a recalculation from an earlier cost change on the same connection is still running - retry once it finishes. 409 with code COST_FROM_PURCHASES when sending price for a product that already has purchases recorded: its unit cost is the weighted average of those purchases, so record or correct a purchase instead. To change its shipping cost, send shipping_cost alone, without price: with both, the whole request fails and the shipping cost is not saved. Does not accept the CSV bulk-import template; this is the single-product write only.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
product-purchases
Purchases from suppliers and the stock groups they belong to: the detailed product cost, where the unit cost is the weighted average of the stock. Reading requires catalog:read; recording, correcting and deleting purchases require costs:write. Both need a plan that includes product cost (Business or Master). To load many purchases at once, use POST /v1/cost-imports with kind: purchases.
Record a purchase of a product
The same as recording a purchase in the product ficha: the product's unit cost becomes the weighted average of its stock, for every product of its stock group, from the purchase day. The first purchase creates the group with the products that share the stock; if they have different costs today, prior_stock_unit_cost is required (400 with code PRIOR_STOCK_VALUE_REQUIRED). 400 with STOCK_ON_HAND_UNKNOWN when stock_on_hand is omitted and there is no Amazon FBA inventory for those days. Vendor products have no purchases: the stock belongs to Amazon. Changing a purchase recalculates its average cost and every later one in the group, and the margin of past periods: 409 with code UNIT_COSTS_RECALCULATION_IN_PROGRESS while an earlier recalculation of one of the group's connections is still running (retry once it finishes), 409 with STOCK_GROUP_BUSY while another change is being saved on the same stock (retry in a few seconds). Reading and writing purchases needs a plan that includes product cost (Business or Master): 403 otherwise. With a stock group spread over several connections, reading needs access to one of them and writing to all: correcting or deleting a purchase out of reach is a 404, and recording one in such a group a 400 with code STOCK_GROUP_OUT_OF_SCOPE.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
201
Purchases of the account, by connection and dates
In the order they were recorded. To answer "how much did I buy this month", filter by from/to. Reading and writing purchases needs a plan that includes product cost (Business or Master): 403 otherwise.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Only purchases of stock groups with products in this connection.
"^[a-f0-9]{24}$"First purchase day, inclusive.
"^\\d{4}-\\d{2}-\\d{2}$"Last purchase day, inclusive.
"^\\d{4}-\\d{2}-\\d{2}$"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Delete a purchase
It cannot be undone. The average cost is recalculated without it; deleting the last purchase of a group dissolves it, and the costs recorded before it apply again. Changing a purchase recalculates its average cost and every later one in the group, and the margin of past periods: 409 with code UNIT_COSTS_RECALCULATION_IN_PROGRESS while an earlier recalculation of one of the group's connections is still running (retry once it finishes), 409 with STOCK_GROUP_BUSY while another change is being saved on the same stock (retry in a few seconds). Reading and writing purchases needs a plan that includes product cost (Business or Master): 403 otherwise. With a stock group spread over several connections, reading needs access to one of them and writing to all: correcting or deleting a purchase out of reach is a 404, and recording one in such a group a 400 with code STOCK_GROUP_OUT_OF_SCOPE.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
Correct a purchase
Send only what changes. Moving the date of a purchase whose stock came from Amazon FBA takes the FBA stock of the new day. Changing a purchase recalculates its average cost and every later one in the group, and the margin of past periods: 409 with code UNIT_COSTS_RECALCULATION_IN_PROGRESS while an earlier recalculation of one of the group's connections is still running (retry once it finishes), 409 with STOCK_GROUP_BUSY while another change is being saved on the same stock (retry in a few seconds). Reading and writing purchases needs a plan that includes product cost (Business or Master): 403 otherwise. With a stock group spread over several connections, reading needs access to one of them and writing to all: correcting or deleting a purchase out of reach is a 404, and recording one in such a group a 400 with code STOCK_GROUP_OUT_OF_SCOPE.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
The stock group of a product, or who its first purchase would join
Products that share the same physical stock (on Amazon pan-EU, the same SKU in every EU country; UK and Vendor go apart) share one average cost. A group is created by the first purchase: before it, proposed_members says who it would join and costs_differ whether that first purchase needs prior_stock_unit_cost. Reading and writing purchases needs a plan that includes product cost (Business or Master): 403 otherwise.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
cost-imports
Import the costs of many products at once, from uploaded spreadsheets or from rows, with the same template and rules as the cost import of the Epinium app and a single recalculation of the margin. Requires costs:write.
List the cost spreadsheets uploaded in the last 7 days, newest first
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Responses
200
Upload a spreadsheet of product costs, kept for 7 days
Up to 8 MB and 200,000 rows: a whole catalog fits in one file. It only reads and keeps the sheet; nothing is imported until POST /v1/cost-imports with its file_id. The same file again returns the same file_id. Free.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
Check a cost import without saving anything
Same body as POST /v1/cost-imports, and the same rules row by row, but nothing is saved or charged: it says how many rows would be applied, skipped and rejected (and why, with examples), how many go without a date and what the import would cost. Free. A row can still be rejected when applied if there is no exchange rate for its currency on its date.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
Import the costs of many products from a spreadsheet
Same template and rules as the cost import of the Epinium app: each row sets the unit cost (COGS) and/or shipping cost of one SKU from its date. Rows are applied in the background with ONE recalculation of the margin at the end; follow GET /v1/cost-imports/:id until status is finished, finished_with_errors or error. 400 when no column can be read as the SKU or as an amount, or without a marketplace column and no currency columns. 409 while a recalculation from an earlier cost change is still running on the connection. Each applied row is charged like POST /v1/products/:id/costs: the rows that can be applied are reserved on creation (402 and nothing imported if the balance is short) and, when it finishes, only the applied ones are charged and the rest is returned.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
202
Status of a cost import and its rejected rows
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Page of rejected_rows, starting at 1.
119007199254740991Rejected rows per page (max 500).
1001500Responses
200
expenses
Own expenses of the account (agency, software, packaging...), which the P&L subtracts down to net profit. Reading requires catalog:read; writing, costs:write. Business and Master plans only.
List the account's own expenses
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
How the expense is computed. fixed: an amount per period, subtracted after contribution margin and only on the whole-account P&L. per_unit: an amount per net unit sold. pct_net_sales: a percentage of net sales. pct_ad_spend: a percentage of advertising spend. The three variable ones are subtracted per product and day, before contribution margin.
"fixed""per_unit""pct_net_sales""pct_ad_spend"Relative to the current month: active (in force), upcoming (starts later) or ended. Omitted: all.
"active""upcoming""ended"A standard category key (staff, agency, software, logistics, off_amazon_marketing, content, legal, insurance, other) or the id of one of the account categories from /v1/expense-categories.
Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Create an own expense
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
List the expense spreadsheets uploaded in the last 7 days, newest first
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Responses
200
Upload a spreadsheet of own expenses, kept for 7 days
Up to 8 MB and 1,000 rows. It only reads and keeps the sheet; nothing is created until POST /v1/expenses/batch with its file_id. The same file again returns the same file_id. Free.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
GET /v1/expenses/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
Delete an expense from the whole history
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
Rename, recategorize, end or reopen an expense
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
Create up to 100 own expenses at once, or check them first
Prefer it over creating expenses one by one for more than a few. All or nothing: every expense is checked with the rules of a single create, and if any fails nothing is written and failure_details lists each one. Send it first with dry_run: true (free, writes nothing), show the result to the person, then again with dry_run: false: with every expense, or only the valid ones to create those now (sending only them is what keeps a corrected spreadsheet sent again from duplicating what already went in). possible_duplicates warns of rows that match an existing expense or an earlier row, without blocking. Only created expenses are billed. A malformed field (a percentage over 100, a bad month) is a 400 for the whole batch, naming the position.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
200
Change the amount of an expense from a month on
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
expense-categories
Categories own expenses are grouped by: the standard ones and the account ones. Reading requires catalog:read; writing, costs:write. Business and Master plans only.
List the expense categories: standard ones and the account ones
Create an account expense category
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
Delete an account expense category that no expense uses
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
Rename an account expense category
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
amazon-seller-products
The authenticated account's Amazon Seller Central product listings. Requires catalog:read.
List the authenticated account's Amazon seller products
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the listing title, ASIN and SKU. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"true returns only listings Amazon is blocking, false only the ones it is not. Listings not synced yet match neither.
"true""false"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
GET /v1/amazon-seller-products/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
amazon-vendor-products
The authenticated account's Amazon Vendor Central product listings. Requires catalog:read.
List the authenticated account's Amazon vendor products
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the listing title, ASIN and SKU. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"true returns only listings Amazon is blocking, false only the ones it is not. Listings not synced yet match neither.
"true""false"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
GET /v1/amazon-vendor-products/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
amazon-advertising-products
The authenticated account's Amazon advertising products. Requires catalog:read.
List the authenticated account's Amazon advertising products
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the listing title, ASIN and SKU. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
GET /v1/amazon-advertising-products/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
seller-product-metrics
Seller Central sales and traffic per product, aggregated from the account's report history. Requires catalog:read.
Operations
Seller Central sales and traffic per product, from the account's report history
Aggregated from the report history over a required start_date/end_date window, grouped by ASIN + SKU + connection + country + currency (the same ASIN sells in several marketplaces with different prices and currencies). Unlike the rest of the API, this resource paginates with limit/offset (an aggregated row has no id to use as a cursor) and has_more tells whether another page follows. Monetary amounts are decimal strings. sessions, page_views, buy_box_percentage, conversion_rate and rank are null, never 0, when Amazon did not report them: its traffic report only covers products with activity. conversion_rate is orders / sessions here, not orders / clicks as in campaign_metrics. The economics block (referral_fee, fba_fulfilment_fee, storage_fee, other_fees, amazon_fees, net_sales, net_units, margin_before_ads, refunded_sales, refunded_units) comes from Amazon Data Kiosk and has three caveats: every amount excludes VAT, as sales does, but it comes from a different Amazon source, so net_sales does not reconcile exactly with sales minus refunds; storage fees are booked on a single day of the month, so read margins over at least a month; and refunds are booked on the refund date, not the sale date. It is null when there is no economics data for the product in the window (it lands 48-72 h late). No field in it includes advertising: take ad spend from the advertising metrics. For that reason margin_before_ads is higher than the product margin shown in the Epinium app, which also subtracts the ad spend Amazon attributes to the product. With group_by, rows are aggregated across products (see the parameter): sums are summed, stock is the sum of the latest stock of each product, days_of_coverage is recomputed on the aggregates (stock summed over the products that reported it, units over all of them), buy_box_percentage and b2b_buy_box_percentage are weighted by page views, and rank, price and fulfillment_channel are null. total_count then counts groups, or group-periods when granularity is not total.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Both ends are included in the range. The window is capped, and the cap depends on the resource AND on granularity — daily allows a much shorter span than total, and target-metrics and search-term-metrics are stricter than the rest because limit/offset bound the response but not what ClickHouse scans. Going over returns a 400 naming the exact limit for your request.
"2026-07-01""^\\d{4}-\\d{2}-\\d{2}$"Both ends are included in the range. The window is capped, and the cap depends on the resource AND on granularity — daily allows a much shorter span than total, and target-metrics and search-term-metrics are stricter than the rest because limit/offset bound the response but not what ClickHouse scans. Going over returns a 400 naming the exact limit for your request.
"2026-07-31""^\\d{4}-\\d{2}-\\d{2}$"total (default) aggregates the whole window into one row per entity or group. Any other value adds a date field with the START of each calendar period: the day, the Monday of the ISO week, or the first day of the month, quarter or year. Periods at the edges of the window are partial: 2026-01-15..2026-03-10 with monthly returns January (15th to 31st), February, and March (1st to 10th). daily has a shorter window cap than the rest.
"total""daily""weekly""monthly""quarterly""yearly""total""total"Page size. For a top-N, combine order_by with a small limit instead of raising it: limit/offset bound the response, not what ClickHouse scans.
100100110000009007199254740991"asc""desc""desc""desc"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Aggregate across entities instead of returning one row per entity. To get the account total, or a per-country or per-connection breakdown, use this INSTEAD of paging through the catalog and summing: one row per group (and per period when granularity is not total). Every metrics call costs a charge per day of the window (1 to 8 credits per day depending on the resource) plus 1 credit per row returned, so a grouped call costs about the window charge alone, and a shorter window is usually what lowers the price most. account collapses everything and cannot be combined with other values; connection and country can be combined by repeating the param (group_by[]=connection&group_by[]=country). Rows are always split by currency (amounts are never converted) and, in advertising, by ad_product. In grouped rows the entity fields (product, asin, sku, campaign, ad_group, target...) are null, and so are the metrics that cannot be aggregated (rank, price, fulfillment_channel, vendor rates and sourcing_lead_time_days). Seller stock and days_of_coverage are null too unless country is one of the dimensions: FBA Pan-European stock is reported in full in every marketplace, so adding it up across countries would count the same units once per country. Combines with every filter. cluster gives one row per product cluster (the clusters resource), with its id in cluster and its name in cluster_name. A product in several clusters counts in full in each of them, so the cluster rows do NOT add up to the account total, and products in no cluster are left out. It combines with connection and country, and with the cluster filter to choose which clusters come back.
Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Amazon ASIN: 10 uppercase letters or digits, e.g. B08GPHNSCW.
"^[A-Z0-9]{10}$""sales""units""orders""sessions""page_views""rank""conversion_rate""net_sales""amazon_fees""margin_before_ads""days_of_coverage""b2b_sales"Responses
200
vendor-product-metrics
Vendor Central sales per product, split by manufacturing and sourcing, aggregated from the account's report history. Requires catalog:read.
Operations
Vendor Central sales per product, split by manufacturing and sourcing, from the account's report history
Aggregated from the report history over a required start_date/end_date window, grouped by ASIN + connection + country + currency (the same ASIN sells in several marketplaces with different prices and currencies; the SKU is not part of the key here, unlike seller_product_metrics). Unlike the rest of the API, this resource paginates with limit/offset (an aggregated row has no id to use as a cursor) and has_more tells whether another page follows. Monetary amounts are decimal strings. There is deliberately NO single sales field: Vendor Central has two business models and Amazon does not report them symmetrically. Manufacturing (Amazon makes the product under licence) reports ordered, shipped and net received, while sourcing (you sell wholesale to Amazon) reports only shipped and net received. Read the pair that matches how you sell. Vendor has no sessions or conversion rate at all; glance_views is the traffic metric, and it is null, never 0, when Amazon did not report it, as are rank and both *_sellable_units. The *_sellable_units fields are the latest inventory snapshot in the window, not a sum. With group_by, rows are aggregated across products (see the parameter): sums are summed, the snapshot fields (both *_sellable_units and the other levels read on the last day of the window with data) are the sum of the latest value of each product, days_of_coverage is recomputed on the aggregates (stock summed over the products that reported it, units over all of them), and rank, sourcing_lead_time_days and the sourcing rates are null. total_count then counts groups, or group-periods when granularity is not total.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Both ends are included in the range. The window is capped, and the cap depends on the resource AND on granularity — daily allows a much shorter span than total, and target-metrics and search-term-metrics are stricter than the rest because limit/offset bound the response but not what ClickHouse scans. Going over returns a 400 naming the exact limit for your request.
"2026-07-01""^\\d{4}-\\d{2}-\\d{2}$"Both ends are included in the range. The window is capped, and the cap depends on the resource AND on granularity — daily allows a much shorter span than total, and target-metrics and search-term-metrics are stricter than the rest because limit/offset bound the response but not what ClickHouse scans. Going over returns a 400 naming the exact limit for your request.
"2026-07-31""^\\d{4}-\\d{2}-\\d{2}$"total (default) aggregates the whole window into one row per entity or group. Any other value adds a date field with the START of each calendar period: the day, the Monday of the ISO week, or the first day of the month, quarter or year. Periods at the edges of the window are partial: 2026-01-15..2026-03-10 with monthly returns January (15th to 31st), February, and March (1st to 10th). daily has a shorter window cap than the rest.
"total""daily""weekly""monthly""quarterly""yearly""total""total"Page size. For a top-N, combine order_by with a small limit instead of raising it: limit/offset bound the response, not what ClickHouse scans.
100100110000009007199254740991"asc""desc""desc""desc"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Aggregate across entities instead of returning one row per entity. To get the account total, or a per-country or per-connection breakdown, use this INSTEAD of paging through the catalog and summing: one row per group (and per period when granularity is not total). Every metrics call costs a charge per day of the window (1 to 8 credits per day depending on the resource) plus 1 credit per row returned, so a grouped call costs about the window charge alone, and a shorter window is usually what lowers the price most. account collapses everything and cannot be combined with other values; connection and country can be combined by repeating the param (group_by[]=connection&group_by[]=country). Rows are always split by currency (amounts are never converted) and, in advertising, by ad_product. In grouped rows the entity fields (product, asin, sku, campaign, ad_group, target...) are null, and so are the metrics that cannot be aggregated (rank, price, fulfillment_channel, vendor rates and sourcing_lead_time_days). Seller stock and days_of_coverage are null too unless country is one of the dimensions: FBA Pan-European stock is reported in full in every marketplace, so adding it up across countries would count the same units once per country. Combines with every filter. cluster gives one row per product cluster (the clusters resource), with its id in cluster and its name in cluster_name. A product in several clusters counts in full in each of them, so the cluster rows do NOT add up to the account total, and products in no cluster are left out. It combines with connection and country, and with the cluster filter to choose which clusters come back.
Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Amazon ASIN: 10 uppercase letters or digits, e.g. B08GPHNSCW.
"^[A-Z0-9]{10}$""units""glance_views""rank""manufacturing_ordered_sales""manufacturing_ordered_units""manufacturing_shipped_sales""manufacturing_shipped_units""manufacturing_shipped_cogs""manufacturing_net_received_sales""manufacturing_net_received_units""sourcing_shipped_sales""sourcing_shipped_units""sourcing_shipped_cogs""sourcing_net_received_sales""sourcing_net_received_units""sourcing_customer_returns""manufacturing_customer_returns""sourcing_confirmed_units""days_of_coverage"Responses
200
pnl
The authenticated account's P&L with product cost (COGS) and own expenses down to net profit, from the same data as the Rentabilidad screen. Unlike every other resource in this API, amounts ARE converted into the currency you request. Free and Guru plans receive the same shape with product cost always 0 and no own expenses. Requires catalog:read.
Waterfall P&L for the period: net sales minus fees, advertising, product cost and own expenses, down to net profit
Same calculation as the "Cascada del periodo" chart in Rentabilidad: net sales - fees/logistics - advertising - product cost - variable expenses = contribution margin, and contribution margin - fixed expenses = net profit, with the previous period of equal length for comparison. Own expenses come in own_expenses: the variable ones are already in the variable_expenses section, broken down there by expense category; the fixed ones (salaries, software, agency fee) are subtracted after contribution margin, down to net_profit. Fixed expenses belong to the whole account, so with connection, country or cluster, or with a credential that cannot read every sales connection, they and net_profit come back null and fixed_unavailable says why, when the account has fixed expenses; without any, net_profit is always there. Unlike every other resource in this API, amounts ARE converted: currency is a required parameter, and every amount in the response lands in it using the daily rate from fx_rates_daily (a day without a rate falls back to an approximate one, never an error). Free and Guru plans receive the same shape with cogs/product_cost always 0 and includes_product_cost: false - see that field before reading those as "no cost", they mean "not on this plan". connection and country restrict to a single sales connection/marketplace; without them, every Amazon Seller/Vendor connection the credential can read is summed. cluster restricts the cascade to the products of one or more product clusters, same semantics as on the metrics resources - a cluster that resolves to no products in scope returns an empty cascade, not an error. Advertising under cluster only counts spend attributed to those products: Sponsored Brands and campaign spend not tied to a specific product are left out. A connection outside the ones this credential can read comes back as an empty cascade, not an error - same criterion as every other resource in this API. Low or zero coverage right after loading costs is rarely "no costs": each cost applies from its valid_from (one loaded without a date applies from the upload day, so earlier periods stay uncovered - suggest reloading it with an earlier date if it already applied), cost reaches the margin only once Amazon confirms the sales (see /v1/pnl/freshness, a few days), and cost-import rows are rejected when the SKU/marketplace is not in that account.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"month (default) returns one row per calendar month. day returns one row per day, capped at 366 days.
"month""day""month"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Responses
200
P&L with product cost per product, paginated and sortable
Same per-product breakdown as the "Margen por producto" table in Rentabilidad, one row per catalog product plus an "unassigned" row (product: null) for sales pnl_lines could not match. Same currency-conversion exception as /v1/pnl/cascade: currency is required and every amount lands in it. Paginates with limit/offset, not a cursor - rows are aggregates, not records with an id. order_by picks the sort field (default netSales); search matches the SKU or ASIN, or the catalog title of the product; cluster restricts the rows to the products of one or more product clusters, and combines with search. Advertising under cluster only counts spend attributed to those products: Sponsored Brands and campaign spend not tied to a specific product are left out. Free and Guru plans receive every row with cogs/product_cost at 0 and includes_product_cost: false. A connection outside the ones this credential can read comes back as an empty list, not an error.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Case-insensitive substring match over the product title. Resolved against the catalog, then matched by SKU/ASIN - a product with no catalog match cannot be found this way.
1200Page size. Paginate with offset, not a cursor: these rows are aggregates over the window, not records with an id.
501200009007199254740991Field to sort by: netSales (default), contributionMargin, marginPct, coverage, a P&L category (sales, refunds, promotions, reimbursements, other_income, commissions, logistics, storage, returns_overheads, other_fees, ads, cogs, own_expenses) or a section (revenue, fees_logistics, advertising, product_cost, variable_expenses).
"netSales""contributionMargin""marginPct""coverage""sales""refunds""promotions""reimbursements""other_income""commissions""logistics""storage""returns_overheads""other_fees""ads""cogs""own_expenses""revenue""fees_logistics""advertising""product_cost""variable_expenses""netSales""asc""desc""desc"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
P&L with product cost for one product, by month and native line
Same ficha as the product margin section in Rentabilidad: one row per month, with the breakdown by native P&L line (e.g. referral_fee, fba_fulfilment_fee, cogs) inside each category. Scoped to the product's own sales connection and country, not to a connection/country filter - there is none here, the id already picks the product. Same currency-conversion exception as /v1/pnl/cascade. 404 when id does not exist, is not a catalog product (seller/vendor) or falls outside the connections this credential can read - never partial data for a product you cannot see. Free and Guru plans receive the same shape with cogs/product_cost always 0 and includes_product_cost: false. Read a low coverage the same way as on /v1/pnl/cascade.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"Responses
200
P&L with product cost per sales connection
Same per-connection breakdown as the channel card in Rentabilidad: one row per sales connection (Amazon Seller or Vendor), ordered by net sales. No limit/offset: the row count is bounded by the sales connections this credential can read, not by catalog size. Same currency-conversion exception as /v1/pnl/cascade. Free and Guru plans receive every row with cogs/product_cost at 0 and includes_product_cost: false. A connection outside the ones this credential can read comes back as an empty list, not an error.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
P&L with product cost per product cluster, paginated and sortable
Same per-cluster breakdown as the "By cluster" tab of "Margen por producto" in Rentabilidad: one row per product cluster (the clusters resource), use it INSTEAD of calling /v1/pnl/cascade once per cluster. A product in several clusters counts in full in each of them, so the rows do NOT add up to the account total (/v1/pnl/cascade without cluster), and products in no cluster, plus amounts with no catalog product (campaign-level advertising, account fees), are left out. Membership is today's: a product added to a cluster now also counts in its earlier months. Clusters with no P&L rows in the window still come back, with has_activity: false, last. Same currency-conversion exception as /v1/pnl/cascade: currency is required and every amount lands in it. Paginates with limit/offset; order_by picks the sort field (default contributionMargin); cluster restricts the rows to those clusters. Advertising only counts spend attributed to the cluster's products: Sponsored Brands and campaign spend not tied to a product are left out. Free and Guru plans receive every row with cogs/product_cost at 0 and includes_product_cost: false. A connection outside the ones this credential can read comes back as an empty list, not an error.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Page size. Paginate with offset, not a cursor: these rows are aggregates over the window, not records with an id.
501200009007199254740991Field to sort by: contributionMargin (default), netSales, marginPct, coverage, a P&L category or a section, same list as /v1/pnl/products. Clusters with no P&L rows in the window always come last.
"netSales""contributionMargin""marginPct""coverage""sales""refunds""promotions""reimbursements""other_income""commissions""logistics""storage""returns_overheads""other_fees""ads""cogs""own_expenses""revenue""fees_logistics""advertising""product_cost""variable_expenses""contributionMargin""asc""desc""desc"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Advertising spend per sales connection and ad platform, against that connection's net sales
Same breakdown as the advertising matrix in the channel card of Rentabilidad: one row per sales connection and ad platform combination (only amazon_ads exists today). No limit/offset, same reasoning as /v1/pnl/channels. Same currency-conversion exception as /v1/pnl/cascade. Not plan-gated: advertising spend is part of the pre-COGS P&L every plan already sees via seller_product_metrics/vendor_product_metrics, so there is no includes_product_cost field here. A connection outside the ones this credential can read comes back as an empty list, not an error.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
Last day with data per P&L source in the window
How complete this P&L is right now: the last day each native source (amazon_economics, amazon_vendor, amazon_ads, unit_costs) actually has a row for, inside the requested window. Use it before reading /v1/pnl/cascade or /v1/pnl/products for a recent period, to tell a real gap from data that has simply not arrived yet - Data Kiosk economics lag 48-72h. No currency: nothing here is a monetary amount. cluster restricts the freshness check to the products of one or more product clusters. On Free/Guru plans unit_costs never appears in sources - see includes_product_cost. The unit_costs date is the last day the cost recalculation processed, which covers every product-day with sales whether or not a cost is loaded: it does not tell you that costs exist (cost_state on /v1/products does). A connection outside the ones this credential can read comes back as an empty sources list, not an error. No row for a day can also mean no sales that day: on a low-volume marketplace an old last_date is not proof of pending data, and a source with no row inside the window returns no date at all.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Responses
200
Products ranked by realized margin loss this period vs the previous one
Same ranking as the "Fugas de margen" screen in Rentabilidad: products whose margin % dropped this period against the previous one of equal length, sorted by risk_amount descending - the money actually lost this period at the new margin rate versus the old one, not points. margin_pct_drop is previous_margin_pct - margin_pct; a product is only ranked once, its drop is always positive. status buckets the drop into leak/watch/healthy by the same thresholds as the screen. status filters the rows (default all three, like the screen) and summary gives the counts per status and the money at risk of the leak + watch products of the whole ranking in the same call, so there is no need to page through everything to count. main_cause is the cost that took the most margin, the same as the "Main cause" column of the screen. Only products with net sales in BOTH periods and a drop are returned - a product with no previous net sales (new launch) or an improved margin does not appear. Same currency-conversion exception as /v1/pnl/cascade: currency is required. cluster restricts the ranking to the products of one or more product clusters, same semantics as /v1/pnl/products. Paginates with limit/offset: there is no order_by, the ranking order is fixed. An empty list with has_previous_sales: false means there is nothing to compare against, not that there are no leaks. Business and Master plans only: Free and Guru get a 403 with code: "plan_feature_not_allowed", since without product cost there is no real margin to compare.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Case-insensitive substring match over the SKU, ASIN or product title, the same as on /v1/pnl/products. summary and has_previous_sales then describe only the matched products.
1200Statuses to list: leak, watch and/or healthy. Default all three, the same as the Rentabilidad screen.
Page size. Paginate with offset, not a cursor: these rows are ranked, not records with an id.
501200009007199254740991Responses
200
Median of each cost category as a share of net sales, across the account catalog
The reference line for a margin-leak breakdown: for each cost category (commissions, logistics, storage, returns_overheads, other_fees, ads, cogs; not own expenses, which are decisions of the account, not of the product), the median of category / net sales across the products of the account with net sales in the window that have that cost (Vendor has no Amazon fees, products without campaigns have no ads) - a typical catalog rate to compare a leaking product's own breakdown against. Excludes the "unassigned" row. No currency: each value is a dimensionless fraction, converting amounts would scale numerator and denominator by the same factor and leave it unchanged. cluster restricts the catalog the median is computed over to one or more product clusters. Business and Master plans only: Free and Guru get a 403 with code: "plan_feature_not_allowed", since without product cost there is no real margin to compare.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
"^\\d{4}-\\d{2}-\\d{2}$""^\\d{4}-\\d{2}-\\d{2}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Responses
200
Today's Amazon FBA stock valued at cost: tied-up capital, coverage and storage
Same data as the "Inventario" screen in Rentabilidad: one row per Amazon FBA stock as of today, valued at product cost, with how many days it lasts at the current sales pace, its rotation bucket and its storage fees. Answers "how much money do I have sitting in Amazon's warehouses, and where is it stuck?". Amazon Seller FBA only: Vendor stock and the seller's own warehouse are not included. Only products active in Epinium, and stock Epinium has synced from Amazon in the last 7 days. In the EU Amazon pools the stock of every marketplace and reports it repeated in each one, so an EU SKU is ONE row (region: "EU") with all its countries, never one per country - do not add rows up across countries yourself. No date window: it is today's stock; the sales pace uses the last 90 days of sales and storage the last fully billed month (storage_month). currency is required and every amount lands in it: product cost at the latest exchange rate, storage at each day's rate. A stock whose product has no product cost has unit_cost/capital at null and is left out of summary.capital - see summary.products_without_cost before reading a low capital as "little stock". Paginates with limit/offset; order_by picks the sort field (default capital). rotation and search filter the rows, never summary. A connection outside the ones this credential can read comes back as an empty list, not an error. Business and Master plans only: Free and Guru get a 403 with code: "plan_feature_not_allowed", since the capital is valued at product cost.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Target currency for every amount in the response (ISO 4217, e.g. EUR). Unlike the rest of the API, this resource converts: a P&L across several marketplaces has to land in one currency to be summed. A day without a rate in fx_rates_daily falls back to an approximate rate, it never errors.
"^[A-Z]{3}$"24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Keeps the stocks that include this marketplace. A Pan-European stock is shared by every EU country it sells in, so it stays whole, with all its countries - and its sales pace still counts the sales of all of them.
"^[a-f0-9]{24}$"Restrict the rows to the products of one or more product clusters (the clusters resource), by cluster id; repeat the param for several (cluster[]=a&cluster[]=b) and the result is their union, a product in two of them counting once. A cluster holds catalog products (one per connection and country), not ASINs: seller and vendor metrics keep exactly those products, so the same ASIN on another connection is left out unless its product is in the cluster too; product-ad metrics keep each product's ASIN in its country, across every advertising profile in scope. Combines with group_by (e.g. the monthly total of a product family) and with every other filter. An id that does not exist or belongs to another account contributes nothing, so the list comes back empty rather than failing. Rows that Amazon could not match to a catalog product are excluded by this filter: about 0.01% of seller sales, about 5% of vendor sales, and about 3% of product-ad spend (those rows carry no ASIN either).
Rotation buckets to list: lowStock, healthy, excess, agedRisk and/or noSales. Default all five. Filters the rows only: summary always describes the whole scope, so it still tells you how the capital splits across buckets.
Case-insensitive substring match over the SKU, ASIN or product title. Filters the rows, not summary.
1200Page size. Paginate with offset, not a cursor: these rows are computed from today's stock, not records with an id.
501200009007199254740991Field to sort by, the camelCase of the row field: capital (default), sellableUnits, unitCost, coverageDays, storageLastMonth, storageToSellOut, inboundUnits or unfulfillableUnits. Rows with no value for it (no cost, no sales, no storage data) always come last.
"capital""sellableUnits""unitCost""coverageDays""storageLastMonth""storageToSellOut""inboundUnits""unfulfillableUnits""capital""asc""desc""desc"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
product-brands
Brands present in the authenticated account's catalog. Requires catalog:read. Sparse fieldsets use fields[brand] — keyed by the entity type (brand, the same one expand[]=brand and a product's brand field use), not by the resource name.
List the brands present in the authenticated account's catalog
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the brand name. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
GET /v1/product-brands/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
List Amazon marketplace countries
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"22Responses
200
GET /v1/countries/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
currencies
Convert an amount between currencies with the daily exchange rate Epinium uses. A global reference table, like countries. Requires catalog:read.
Operations
Convert an amount between currencies with the daily exchange rate
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Amount to convert, in from.
0ISO 4217 code, e.g. EUR, PLN, GBP, USD, SEK. Case-insensitive.
"^[A-Za-z]{3}$"ISO 4217 code, e.g. EUR, PLN, GBP, USD, SEK. Case-insensitive.
"^[A-Za-z]{3}$"Responses
200
clusters
The authenticated account's keyword clusters. Requires catalog:read; creating and editing them requires catalog:write.
List the authenticated account's keyword clusters
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the cluster name and its positive and negative keywords. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Create a keyword cluster
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
GET /v1/clusters/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels. Each expanded record is charged like a row of its own resource, once per row that carries it (most cost 1 credit, countries are free): expanding two relations on 100 rows adds about 200 credits, so expand only what the answer needs.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
Delete a keyword cluster
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
Add or remove keywords and products of a cluster, or rename it
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
listing-updates
Prepare, validate and apply changes to the attributes of seller and vendor listings, in bulk, from a customer file. Preparing, validating and reading the state of an apply require catalog:read; applying requires catalog:write, runs in the background and saves the changes as pending: nothing is sent to Amazon until someone publishes them.
Find the SKUs of a file and the attributes they can take
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
Convert and validate listing attribute changes, without sending them to Amazon
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
Save the valid rows of an uploaded file as pending listing changes
Accepts the file and saves its rows in the background; answers 202 with the state, to poll with GET /v1/listing-updates/apply/{file_id}. Every row is validated again and the valid ones are saved as pending changes (nothing is published to Amazon until someone presses Publish). Rows whose change opens a cascade (a value that makes other attributes mandatory, like batteries) go to a task for a person to review, unless their cascade_id is in confirmed_cascades; so do rows that only miss attributes a cascade makes mandatory. With a column marked marketplace: true, each row goes to its own country and marketplace is ignored; a cascade is confirmed in each country separately, because its cascade_id includes the country. Rows whose identifier matches listings under several vendor codes in a country (vendor_code_groups in validate) are saved only if that country and combination are in confirmed_multiple, never by default; the rest are rejected. Values are applied as written, in the language of the file. Only the last row of each identifier (per country and vendor code) counts. Billing: on acceptance the file rows x the row price are reserved (402 if the balance does not cover it); when the work ends only the rows sent (applied) are charged and the rest is given back, all of it if it fails. Calling again with the same settings returns the current state; with other settings while it runs, after it was applied, or after a failed attempt that already saved part of it, 409. A file that expires in less than 24 h is also 409: saving its rows reads the file again later, so upload it again and apply the new file_id. A failed file can be applied again with the same settings and resumes where it stopped; rows a person already approved or rejected in its task are not created again.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
202
State and result of applying a file, and what it charged
Poll this after POST /v1/listing-updates/apply until state is applied or failed. result says what was sent; charge what was reserved, charged and given back. 404 when the file was never applied.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
The file_id of a file uploaded with the upload box.
"^[0-9a-f]{24}$"Responses
200
pending-listing-changes
The listing changes saved in Epinium and pending to publish to Amazon, the same ones the Review and publish table shows, without the rows already uploading, and publishing them. Listing requires catalog:read; include_total=true gives the size of the whole set. Publishing requires catalog:write and catalog:publish: it sends to Amazon the chosen changes and new listings by the same path as Publish in the app, cannot be undone, and answers 409 selection_changed without publishing anything when the selection is no longer expected_count. Follow the publication with GET /v1/publications/{id}.
List the listing changes saved in Epinium and pending to publish to Amazon
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Amazon marketplace: its domain (amazon.es) or its marketplace id (A1RKKUPIHCS9HS).
240Case-insensitive substring match over the SKU, the ASIN, the previous value and the new value of the change. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Publish to Amazon a selection of the pending listing changes and new listings
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
publications
Each publication of listing changes to Amazon and how it is going per country, the same as the Publications panel of the app: accepted, rejected and pending counts, rejections with their issues, and new listings accepted by Amazon that are still being imported into Epinium. A publication is in progress while in_flight is true; importing can take up to about two hours. Requires catalog:read. include_total=true gives the size of the whole set.
List the publications to Amazon, newest first
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
true lists only the publications still in progress; false only the finished ones.
"true""false"Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Retrieve one publication and how it is going
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
The publication id, which is its upload request id.
"^[a-f0-9]{24}$"Responses
200
listing-drafts
New seller offers on products that already exist in the Amazon catalog: find the product by ASIN, EAN, UPC or GTIN, validate the offer and save it as pending. Finding, validating and listing require catalog:read; saving and discarding require catalog:write. Validation reports in amazon.missing what Amazon requires for that product and the offer lacks; saving repeats Amazon's validation and refuses with 400 an offer Amazon would reject. Nothing is sent to Amazon until someone presses Publish in the app.
Find a product in the Amazon catalog by ASIN, EAN, UPC or GTIN
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Seller or vendor connection of the account. A vendor connection gets no restrictions check: Amazon offers it to sellers only.
"^[a-f0-9]{24}$"Amazon marketplace: its domain (amazon.es) or its marketplace id (A1RKKUPIHCS9HS).
240The ASIN, EAN, UPC or GTIN to look for, or up to 20 of the same type separated by commas: they all go to Amazon in one call.
"^[^,]{1,40}(,[^,]{1,40}){0,19}$"What identifier is.
"ASIN""EAN""UPC""GTIN"Condition of the offer, to check whether the account may sell it (new_new by default). Seller connections only.
40"true" adds to each match the attributes Amazon shows for it in this marketplace, in listing format. For a new vendor listing of a product the account does not have in another connection: only the products that still miss values, never all the products of the file by default.
"true""false"Only with include_attributes: the attribute names to return, separated by commas, such as the ones missing lists in the validation. Without it every attribute comes back, about 3 KB per product.
2000"^[a-z0-9_]+(,[a-z0-9_]+)*$"Responses
200
List the shipping templates of a seller account in one marketplace
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Seller Central connection of the account. Vendor connections cannot create offers.
"^[a-f0-9]{24}$"Amazon marketplace: its domain (amazon.es) or its marketplace id (A1RKKUPIHCS9HS).
240true asks Amazon again even if the stored list is less than a day old, for a template created a moment ago.
"true""false"Responses
200
Recommend the Amazon product type of a new product from its name
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Seller or vendor connection of the account. A vendor connection creates whole listings with productType, never offers on an existing ASIN: Amazon does not support them for vendors.
"^[a-f0-9]{24}$"Amazon marketplace: its domain (amazon.es) or its marketplace id (A1RKKUPIHCS9HS).
240Name of the product, as the user would title it (for example "Camiseta de algodón para hombre").
1250Responses
200
Validate a new offer on an existing ASIN, or a new product, against its schema and with Amazon, without saving anything
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
Save a new offer on an existing ASIN, or a new product, pending to publish from the app
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
Discard a new offer that was not published yet
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Responses
200
listing-files
Upload a spreadsheet of listing changes once, or store the rows written in a chat as one, to prepare, validate and apply it by file_id. Requires catalog:read; storing rows written in a chat requires catalog:write. Files are kept 7 days.
List the spreadsheets of listing changes uploaded in the last 7 days, newest first
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Responses
200
Upload a spreadsheet of listing changes, kept for 7 days
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
Store listing changes written in a chat (headers and rows) as a file, kept for 7 days
For changes the user writes instead of uploading a spreadsheet: one row per product, the identifier first. It returns the same file_id as an upload, to prepare, validate and apply it. The same rows again return the same file, unless it is being applied or was applied: then a new one. Requires catalog:write.
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Request Body
Responses
200
listing-images
Upload a product image to use as the media_location of an Amazon image attribute (main_product_image_locator, other_product_image_locator_1 to _8, swatch_product_image_locator). JPEG, PNG, GIF or TIFF, up to 8 MB. Requires catalog:write. Images are kept 30 days.
Operations
Upload a product image for Amazon listings, kept for 30 days
prompts
The authenticated account's custom prompts: the instructions Epinium's AI follows when it writes listing content, linked to keyword clusters. Requires catalog:read; creating and editing them requires catalog:write.
List the authenticated account's custom prompts
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the prompt name. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Create a custom prompt
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
GET /v1/prompts/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
Rename a custom prompt or change its instruction or fields
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200
brand-identities
The authenticated account's brand identity (Settings > Corporate identity in the app): name, category, the brand's and its competitors' websites, a profile per competitor with its threat level, free observations as plain text and the catalog brands it covers. Not the catalog brands of product-brands. Requires catalog:read; creating and editing them requires catalog:write. No delete, logo or files.
List the authenticated account's brand identities
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Query Parameters
Page size. The default is enough to explore; raise it only when you need to walk a whole collection.
20201100Cursor for the next page: the id of the last record you received. Returns the records after it.
Cursor for the previous page: the id of the first record you received. Returns the records before it.
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Case-insensitive substring match over the brand name and category. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.
1200Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources it counts entities (or groups with group_by), and, with any granularity other than total, each of their periods that has data, not entities times periods: entity-days with granularity=daily. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.
"true""false"Responses
200
Create a brand identity
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Request Body
Responses
201
GET /v1/brand-identities/{id}
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Query Parameters
Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. An unknown key or field name is rejected with a 400 that lists the valid ones.
Responses
200
Change the name, category, URLs, observations or catalog brands of a brand identity
Authorizations
Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....
Parameters
Header Parameters
Any string identifying this intent, up to 255 characters. Reuse the same value when retrying the same change: without it a network timeout turns one write into two.
1255Path Parameters
24-character hexadecimal Mongo ObjectId.
"^[a-f0-9]{24}$"Request Body
Responses
200