Confirm a goods receipt
PATCH
Confirms a draft receipt: accepted quantities are added to stock, the linked purchase order is marked partly or fully received, and the receipt is picked up for posting to the accounts.
How to use it
- Get the receipt ID from List goods receipts; it must be DRAFT.
- Send confirmedBy with the name of the person confirming.
- Accepted quantities are converted to the item's base unit and added to stock at the line's location, else the purchase order line's location, else the default warehouse. Catch-weight items add their measured net weight.
- A linked purchase order becomes PARTIAL or RECEIVED. The receipt can no longer be cancelled and is posted to the accounts on the next posting run.
BearerAuthheader
AuthorizationBearer <JWT>id*stringID of the record (UUID).
Format
uuidX-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
application/json- body
confirmedBy*stringName of the person confirming the receipt; recorded on the receipt and the stock movement. Required.
OK
*/*- response
status*stringOutcome of the request: SUCCESS when it worked; errors return an error status with the reason in message.
message*stringShort human-readable message describing the outcome.
data?The goods receipt with its lines.
Example Request
curl -X PATCH 'https://beta.iotoms.com/api/v1/procurement/receipts/497f6eca-6276-4993-bfeb-53cbbbba6f08/confirm' \ -H 'X-TenantID: your-tenant-code' \ -H 'Content-Type: application/json' \ -d '{ "confirmedBy": "string"}'Example Response
{ "status": "string", "message": "string", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "grnNumber": "string", "purchaseOrderId": "84a099d9-2935-4997-a6ac-0d3ee9bbef72", "vendorId": "e9b57fab-1850-44d4-8499-71fd15c845a0", "vendorName": "string", "status": "string", "receivedDate": "2019-08-24", "deliveryNoteNumber": "string", "receivedBy": "string", "confirmedBy": "string", "confirmedAt": "2019-08-24T14:15:22Z", "notes": "string", "items": [ { "id": 0, "itemId": "string", "itemName": "string", "receivedQty": 0, "acceptedQty": 0, "rejectedQty": 0, "condition": "string", "receivingLocationId": "f1f8626b-ea08-4582-99e5-64aabd817e6a", "receivingLocationName": "string", "unitCost": 0, "measuredGrossWeight": 0, "measuredNetWeight": 0, "rejectedWeight": 0, "packWeights": [ 0 ], "expectedWeight": 0, "variancePct": 0, "costPerBaseUnit": 0 } ], "createdAt": "2019-08-24T14:15:22Z" }}