API Authentication
Summary
Every Flxpoint API request must be authenticated with an access token passed as a bearer token in the Authorization header. Flxpoint issues separate, context-scoped tokens for Sources, Channels, and Resellers (B2B); this page covers each token type, how to generate and send it, and how to resolve 401 errors.
Every request to the Flxpoint API must be authenticated with an access token, passed as a bearer token in the request header. Flxpoint issues different tokens for different situations - one for Sources, one for Channels, and one for Resellers - and each token is only valid for the endpoints tied to that context.
| Context | Endpoints it unlocks | How the token is obtained |
|---|---|---|
| Source | Create/Update Source Inventory 路 Get Fulfillment Requests/Orders 路 Acknowledge FR/FO 路 Cancel FR/FO 路 Create Shipment(s) | The Flxpoint user generates the token from the Source. |
| Channel (Products) | Get Listings to Sync 路 Post Sync Responses 路 Get Listings to Publish 路 Post Publish Responses | The Flxpoint user generates the token from the Channel. |
| Channel (B2C ordering) | Create New Order 路 Get Shipments 路 Get Order Status | The Flxpoint user generates the token from the Channel. |
| Reseller (B2B ordering) | Create New Order 路 Get Shipments 路 Get Order Status | The reseller retrieves their token from the Reseller Portal. |
A Source token makes all Source endpoints accessible for that Source.
- Log in to the Flxpoint application at
app.flxpoint.com. - Go to View All Sources.
- Configure the Source you want a token for.
- On the Basic Info screen, find the API Access section.
- If no token exists yet, click Grant Access to generate one.
- Copy the token and use it to interact with that Source via the API.
A Channel token makes all Channel endpoints accessible for B2C channels, and product access for B2B channels.
- Log in to the Flxpoint application at
app.flxpoint.com. - Go to View All Channels.
- Choose Sales Channels (B2C) or Reseller Channels (B2B).
- Configure the Channel you want a token for.
- On the Basic Info screen, find the API Access section.
- If no token exists yet, click Grant Access to generate one.
- Copy the token and use it to interact with that Channel via the API.
A Reseller token lets a dealer submit and check orders that are isolated to their own dealer account.
- The dealer logs in to the Reseller Portal for the Flxpoint user (for example,
custom-subdomain.flxpoint.com). - Once the dealer is approved, the API token appears on their Settings page.
- If the dealer is not yet approved, they must reach out to the Flxpoint user for approval first.
- The dealer uses this token to authenticate B2B ordering in the API.
Include the access token in every request, passed as a bearer token in the Authorization header.
Authorization: Bearer {Access Token}401.401 until you swap in the new one.Authorization header of each call. A request with a missing, malformed, or invalid token returns 401.How do I send the token in a request?▸
Authorization header on every request: Authorization: Bearer {Access Token}. There is no session, so the token must be present on each call.Why am I getting a 401 even though my token looks correct?▸
401 means the token is invalid, revoked, regenerated, or not permitted for that endpoint. Re-check that you are using the right token for the context - a Source token cannot create orders on a Channel, and a Channel token cannot create B2B orders.Can one token work across Sources, Channels, and resellers?▸
What happens to my old token if I regenerate it?▸
401 until you update it to the new token.