Skip to main content

Activates a gate pricelist range

POST 

/v2/sms/buying/{plid}/ranges/{rngid}/activate

Activates a gate pricelist date range and chains neighbouring ranges by date. Only ranges in draft or imported status can be activated.

Date chaining:

  • The end date of the previous (currently active) range is set to the start date of the newly activated range. The start date of the new range is not changed
  • If a later range already exists, the end date of the new range is set to that range's start date
  • The last range in the sequence receives an unlimited end date
  • Active ranges whose end date is already in the past are closed

On activation, approvalStatus is set to manually_approved and approvalStatusDate is set to the time of the change.

Privilege:

  • bulk-supplier-pricelist.manage

Auditlog Event: gate.pricelist.range.activate

Errors:

  • NOT_AUTHORIZED - Not authorized
  • GATE_PRICE_LIST_NOT_FOUND - Gate pricelist not found
  • GATE_PRICE_LIST_RANGE_NOT_FOUND - Gate pricelist range not found
  • GATE_PRICE_LIST_RANGE_WRONG_STATUS - Range is not draft or imported
  • GATE_PRICE_LIST_RANGE_START_DATE - Another active or closed range has the same start date
  • GATE_PRICE_LIST_RANGE_START_DATE_WRONG - Start date cannot be activated
  • GATE_PRICE_LIST_RANGE_BASE_PRICE_WRONG - One or more items have a price / base-price mismatch
  • INT_APP_ERROR - Unexpected internal error / missing instance context

Request

Responses

Gate pricelist range activated successfully