Skip to main content

Update a goods receipt

The PUT /pic/link/goods-receipts/update endpoint allows you to update a goods receipt πŸ‘”πŸ’ΌπŸ€

Authorization​

This endpoint requires authentication through Basic Auth with the username and password of the backend that will consume it. To create and configure a backend, follow the backends tutorial

Request parameters​


This request does not contain parameters of type Path

Examples​

curl --location 'https://<identifier>.api.appliqloud.com/pic/link/goods-receipts/update' \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <token>' \
--data '{
"inputs": [
{
"header": {
"goodsReceiptId": "43000001",
"purchaseOrderId": "450000001",
"locationId": "MX-LOC",
"storageId": "ST1",
"receiptDate": "2024-08-09",
"goodsReceiptFileKey": "goods-receipts/d6963433-6d75-4ea6-a7b5-0596546e767f.jpg"
},
"items": [
{
"itemId": "0",
"purchaseOrderItemId": "10",
"quantity": 3,
"unitId": "EA"
}
]
}
]
}'
caution

Make sure to modify the <identifier> and <token> fields with your company identifier and authentication token respectively.

Responses​


The goods receipts were successfully updated

{
"success": [
{
"header": {
"goodsReceiptId": "43000001",
"goodsReceiptStatus": "CLOSED",
"vendorBusinessPartnerId": "1287",
"purchaseOrderId": "45000001",
"locationId": "CMPNHQ",
"storageId": "ST1",
"receiptDate": "2024-08-09",
"goodsReceiptFile": {
"key": "goods-receipts/5973a304-6bdc-436d-9f9f-fd487600c2e0.pdf",
"url": "https://prd-apq-tenant-bucket.s3.amazonaws.com/goods-receipts/5973a304-6bdc-436d-9f9f-fd487600c2e0.pdf"
}
},
"items": [
{
"itemId": "0",
"purchaseOrderItemId": "10",
"quantity": 10,
"unitId": "EA",
"netUnitPrice": 1240.00,
"netTotalPrice": 12400.00
}
]
}
],
"errors": []
}