Skip to content

Offer Import Context

A named grouping that offers are imported under. Every imported offer belongs to at most one import context, which records how and from where that batch of offers arrived.

Use it to organize and trace imported offers by their source. This API lets you list, create, update and delete offer import contexts.

Context names are unique per tenant: a name can belong to at most one context, regardless of origin. Creating a context with, or renaming one to, a name that is already taken returns 409 Conflict.

The origin records the channel a context's offers came through:

  • ApiIntegration: offers imported programmatically through the offers import endpoint, typically by an ERP system integration.
  • CsvIntegration: offers imported by the nightly job that pulls CSV files from a customer's ERP storage.
  • ManualFileUpload: offers imported by uploading a CSV file in the UI.

Contexts created through this API always have ApiIntegration origin: the create request takes no origin field. The other origins are produced by their respective import flows and are only ever seen on reads.

Get All Offer Import Contexts

Request

List every offer import context belonging to the tenant.

Security
BearerAuth
Headers
Acceptstring(OfferImportContextAcceptHeader)required

Set this to application/api.luminovo.offer-import-context-v1+json.

Value:"application/api.luminovo.offer-import-context-v1+json"
GET
/offer-import-contexts
curl -i -X GET \
  https://api.luminovo.com/offer-import-contexts \
  -H 'Accept: application/api.luminovo.offer-import-context-v1+json' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

All offer import contexts.

Bodyapplication/json
itemsArray of objects(types.offer_import_context.v1.OfferImportContextResponse)required
Response
{ "items": [ {} ] }