Skip to main content

Register a goods receipt

The POST /pic/link/goods-receipts/create endpoint allows you to register the receipt of goods associated with a purchase order. πŸ‘”πŸ’ΌπŸ€

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/create' \
--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 registered

{
"success":[
{
"header":{
"goodsReceiptId":"43000001",
"goodsReceiptStatus":"CLOSED",
"vendorBusinessPartnerId":"1245",
"purchaseOrderId":"450000001",
"locationId":"MX-LOC",
"storageId":"ST1",
"receiptDate":"2024-08-09",
"goodsReceiptFile":{
"key":"goods-receipts/d6963433-6d75-4ea6-a7b5-0596546e767f.jpg",
"url":"https://s3.us-west-2.amazonaws.com/dev-apq-demos-bucket/goods-receipts/d6963433-6d75-4ea6-a7b5-0596546e767f.jpg"
}
},
"items":[
{
"itemId":"0",
"purchaseOrderItemId":"10",
"quantity":3,
"unitId":"EA",
"netUnitPrice":6000.0,
"netTotalPrice":18000.0
}
]
}
],
"errors":[

]
}