Skip to main content
POST /api/v2/storefront/buyer-instructions Creates a new buyer-instructions row. The (operatorDomain, brandDomain) tuple is unique per storefront — a duplicate scope fails with 409. To change an existing row, update it instead.

Request

curl

Parameters

All five fields are required. Send null for any you want to leave unscoped.

Response

Returns 201 with the created row. The resolver picks the maximum discountPercent across all rows that match a given buyer.

Errors

  • 400 VALIDATION_ERROR — missing required field, discountPercent out of 0100, or a malformed country code.
  • 409 CONFLICT — a row already exists for this (operatorDomain, brandDomain) scope. Update that row instead.
  • 401 UNAUTHORIZED — missing or invalid bearer token.
See Errors for the full error contract.

Buyer instruction tasks

All buyer-instructions operations.

Update buyer instructions

Change discount, notes, or countries.