Create Order Template

Changed on

Saves one or more supplier order templates into Zuper and starts importing their products into your product catalog in the background. Use the supplier_order_template_id values from Get Live Order Templates; every ID is looked up at the supplier first, and the whole request is rejected if any of them is not found. Sending a template that is already saved for this provider refreshes it (name, description and the supplier's current product list) instead of creating a duplicate. The call returns as soon as the templates are saved: follow import_status in Get Saved Order Templates to see when the import finishes, and save branches for the provider first, because imported products are priced and linked against those branches. The supplier provider must be CONNECTED; otherwise the request fails with 403. Admin only: the API key must belong to an admin user; other roles receive 405 Access Denied.

post/supplier_provider/{supplier_provider_uid}/order_templates

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/supplier_provider/{supplier_provider_uid}/order_templates
  • Auth
    API key in header x-api-key

Path parameters

supplier_provider_uidstring required

UID of the supplier provider.

Request body

Response

200

type'success'
titlestring
messagestring

Changes