-H "Authorization: Bearer 4eC39HqLyjWDarjtT1zdp7dc" instead of -u 4eC39HqLyjWDarjtT1zdp7dc.
Scopes
Each API key carries a set of scopes that determine which endpoints it may call. Scopes are configured by your Imprint team based on your integration — see API key rotation for how initial keys are provisioned. The scope required by an individual endpoint is documented on that endpoint’s page under the REST API tab. Endpoints not listed below need no scope beyond a valid API key.
Calling an endpoint with a key that lacks the required scope returns
403 Forbidden:
PCI_DETAILS_READ is the exception — it never fails a request. Payment method endpoints succeed without it, but omit card.pci_details (PAN, CVV, expiry) from the response.
A new API key created via
POST /v2/keys inherits the scopes of the key used to create it. Creating one from a key with no scopes instead grants every scope enabled for your product.Multi-Product Support
If your partnership spans multiple products (e.g., a parent company with several co-branded products), include thex-imprint-merchant-key header in your requests to specify which product the request applies to.
If you have multiple products, you must supply the merchant key in the header in order to retrieve information for that merchant/product: