Skip to main content

Save goods receipts files

The POST /pic/link/goods-receipts/files endpoint allows you to save files associated with goods receipts. πŸ‘”πŸ’ΌπŸ€

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/files' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <token>' \
--data '{
"inputs": [
{
"id": "01",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC",
"fileType": "jpg"
}
]
}'
caution

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

Responses​


The goods receipt files were successfully saved

{
"success":[
{
"id":"01",
"key":"goods-receipts/d6963433-6d75-4ea6-a7b5-0596546e767f.jpg"
}
],
"errors":[

]
}