Get Provider Options
Get Provider Options
Resolve an imports options_source key into selectable value/label pairs
GET
Get Provider Options
Get Provider Options
Use this endpoint when an imports template column exposesoptions_source instead of inline options.
It resolves backend-managed provider keys such as countries, logistics_tocs, and fuels
into a simple list of selectable values:
value: the canonical value the backend validates and storeslabel: the display label a client can show in dropdowns or selectors
This endpoint is especially useful for the Imports Mapping and Review steps, where a client needs to populate
category dropdowns without hardcoding reference data.
Request
Path Parameters
Provider key declared by a template column’s
options_source.Supported keys currently include:countrieslogistics_tocsfuels
Headers
Your API key for authentication.
Your organization UUID.
Response
The provider key that was resolved.
List of resolved option objects.
Examples
Fetch country options
Successful response
Typical Usage In The Imports Flow
- Call
GET /v2/imports/templates/{template_id}. - Inspect each column.
- If a category column has inline
options, render those directly. - If a category column has
options_source, callGET /v2/imports/options/{source_key}. - Render the returned
value/labelpairs in the UI.
countrymay useoptions_source="countries"fuelmay useoptions_source="fuels"for canonical logistics recharge fuel namestocmay useoptions_source="logistics_tocs"
Common Errors
404 Not Found
Cause: Unknownsource_key
options_source key.
