Productsup

API reference

Complete reference for the Export Template Management (ETM) API — every endpoint, request, and response, grouped by API version.

The Export Template Management API has two versions:

  • V2 is the recommended version. It covers export templates from creation to publishing: list, create, read, update, replace, duplicate, delete, publish, revisions, and analyzer tests.
  • V1 is the version for the operations V2 doesn't have yet, listed under When to use V1. When both versions have an endpoint for an operation, use the V2 endpoint.

Both versions work on the same export templates, with the same IDs, so you can use them together in one integration. For example, create an export template with V2, upload its logo with V1, and publish it with V2.

Write operations on an export template change its draft, including changes to analyzer tests. They reach the Productsup platform only after you publish the export template with POST /V2/export-templates/{templateId}/publish. See Publishing changes.

Every operation page in this reference renders request and response schemas from the upstream OpenAPI spec. Download the ETM OpenAPI specification (JSON) to import into Postman, generate clients, or feed into any OpenAPI-aware tool. Authentication uses the OAuth 2.0 Client Credentials flow — see Authentication.

V2

When to use V1

Use V1 for the operations in this section, and V2 for every other operation. For example, publish with POST /V2/export-templates/{id}/publish, not with POST /V1/export-templates/{id}/commit.

V1 writes change the same draft as V2 writes, so one publish includes both. V1 writes don't change draftVersion, so If-Match doesn't detect them. See Avoid overwriting other people's changes.

Change part of an export template

In V2 you can change attributes, tags, custom form fields, marketing information, and some settings only by sending the complete export template with PUT /V2/export-templates/{id}. To change only one of them, use V1.

OperationV1 reference
Create, update, or delete one attribute, or create or update several at onceAttributes
Add or delete the xslt or allow_override export template tag. Productsup manages all other tags; writing them returns 403 Forbidden.Tags
Create, update, or delete a custom form fieldCustom form fields
Update the marketing informationExport marketing
Update a setting that PATCH /V2/export-templates/{id} doesn't accept, such as encoding, deltaKeyUnique, or deltaSingleFileUpdate an export template

Operations without a V2 endpoint

These operations need V1, because V2 has no endpoint for them yet.

OperationV1 reference
List export categories and countries, or get one by ID, for example to find the IDs for the marketing informationList export categories, Get an export category, List export countries, Get an export country
Upload or delete the logo of an export templateUpload an export template logo, Delete an export template logo
List the attributes of several export templates in one request, or look up attributes by IDList export template attributes by filter
List the export templates of your account with their current values, including the ones that were never published, or filter them by ID, country, XML or delta support, type, or capabilityList export templates

GET /V2/export-templates is a different list: it shows the published export templates you can use, global ones included, with their published values.

On this page