> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ReceivePurchaseOrderGoodsCommandResponse

> Receives the goods of one delivery for a sent purchase order: any number of item and custom lines in one transaction, all of them or none. Item lines are booked into stock at the default location of the warehouse; custom lines, items without stock management and every line of a drop shipping order only count as delivered. The delivered quantities grow, a fully delivered line gets the day of the receipt as its delivery date, and the order becomes partially delivered or completed. The stock on order, the supplier's delivery time and the average purchase price follow the settings of the ERP. Raises the workflow event 'changed' when the status of the order changes, and 'completed' when the order is completed by it. Errors arrive as GraphQL errors with the code in 'extensions.code'; a refusal because of the current state also lists every reason in 'extensions.blockers'. Codes: an invalid request, for example no line, a quantity of 0, decimals for an item that is not divisible (PURCHASE_ORDER_QUANTITY_NOT_WHOLE), a warehouse on a drop shipping order (WAREHOUSE_NOT_ALLOWED), or PURCHASE_ORDER_BATCH_NUMBER_REQUIRED, PURCHASE_ORDER_BATCH_NUMBER_NOT_ALLOWED, PURCHASE_ORDER_SHELF_LIFE_EXPIRATION_DATE_REQUIRED, PURCHASE_ORDER_SHELF_LIFE_EXPIRATION_DATE_NOT_ALLOWED, PURCHASE_ORDER_SERIAL_NUMBERS_REQUIRED, PURCHASE_ORDER_SERIAL_NUMBERS_NOT_ALLOWED, PURCHASE_ORDER_SERIAL_NUMBER_COUNT_MISMATCH or PURCHASE_ORDER_SERIAL_NUMBER_DUPLICATE; PURCHASE_ORDER_NOT_FOUND or PURCHASE_ORDER_LINE_ITEM_NOT_FOUND (the order or a line was not found); WAREHOUSE_NOT_FOUND (the warehouse was not found); PURCHASE_ORDER_NOT_SENT or PURCHASE_ORDER_COMPLETED (the order is not open for deliveries); WAREHOUSE_NOT_RECEIVABLE (the warehouse cannot receive goods directly); PURCHASE_ORDER_LINE_ITEM_NOT_RECEIVABLE (an allowance or charge, or an item that cannot be received: variation parent, stock variation, bill of materials, partial-quantity item); PURCHASE_ORDER_LINE_ITEM_NOT_OPEN (nothing is open on the line); PURCHASE_ORDER_SERIAL_NUMBER_ALREADY_IN_STOCK. - Response



**Kind**: `object`

## Fields

**`lines`**: `[PurchaseOrderReceivedLine!]!`

One entry per line of the request, in the same order, with the ID of the goods receipt booked into stock.

