Skip to content

Create Offer Import Context

Request

Create a new offer import context. Its origin is always ApiIntegration; no origin can be specified. A name already used by another context, of any origin, is rejected with 409.

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"
Bodyapplication/jsonrequired
namestringrequired
descriptionstring or null
POST
/offer-import-contexts
curl -i -X POST \
  https://api.luminovo.com/offer-import-contexts \
  -H 'Accept: application/api.luminovo.offer-import-context-v1+json' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "description": "string"
  }'

Responses

Offer import context created.

Bodyapplication/json
idstring, (uuid)required
namestringrequired
descriptionstring or null
originstring(types.offer_import_context.v1.Origin)required

The channel an import context's offers arrived through.

  • CsvIntegration: the nightly job pulling CSV files from a customer's ERP storage.
  • ApiIntegration: programmatic import through the offers API.
  • ManualFileUpload: a CSV file uploaded in the UI.
Enum:"CsvIntegration""ApiIntegration""ManualFileUpload"
created_atstring, (date-time)required
updated_atstring, (date-time)required
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "origin": "CsvIntegration", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }