Skip to main content

echoCreateShipmentRecord

Add an adjustment shipped orders 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 quantityShipped or quantityShippedAmount.
  • quantityShippedAmount 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_shipment_record
echoCreateShipmentRecord(
input: CreateShipmentRecordInput!
): ShipmentRecord!

Arguments​

echoCreateShipmentRecord.input ● CreateShipmentRecordInput! non-null input common​

Parameters for CreateShipmentRecord

Type​

ShipmentRecord object common​

A day's shipped orders for a SKU, by sales channel.