Skip to main content

echoCreateDemandRecord

Add an adjustment demand record for a grain. Automatic records are system generated and manual records come from imports, so neither can be created here. Fails if an adjustment already exists for the grain; update it instead.

Business Rules​

  • Send either quantityOrdered or quantityOrderedAmount.
  • quantityOrderedAmount is in the SKU's unit of measure, or in unit when given, which is converted to that unit. Decimals are allowed only for products stored in a finer unit, up to that unit's decimal places.

Error Scenarios​

  • **BAD_REQUEST**: when the quantity has more decimal places than its unit allows, or unit cannot be converted.
  • **BAD_REQUEST**: when an adjustment record already exists for the grain.

Permissions Required​

  • echo:create_demand_record
echoCreateDemandRecord(
input: CreateDemandRecordInput!
): DemandRecord!

Arguments​

echoCreateDemandRecord.input ● CreateDemandRecordInput! non-null input common​

Parameters for CreateDemandRecord

Type​

DemandRecord object common​

A day's ordered demand for a SKU, by sales channel.