Create Item Mapping
POST/api/spscommerce/:integrationInstance/item-mappings
Map a buyer part number to a product for one of this connection's customers. The mapping is saved on the customer's SKU mappings (source edi), so it also applies to purchase orders that customer emails in. Every failed purchase order of that customer's trading partners that this leaves fully mapped is retried straight away; retried_purchase_orders says how many. Other customers' lines with the same item number are not touched.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token and the integrations.update permission.
Body fields:
- customer_id (integer, required): one of the customers from List Item Mapping Customers
- customer_sku (string, required, max 255): the buyer part number (or UPC); unique per customer
- product_id (integer, required): the product it becomes
- description (string, optional, max 255): how the retailer describes the item
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.