Developer docs menu

API reference / Purchase receipts

Purchase receipts API

6 endpoints. Scopes: Scalar360.purchase-receipts.READ, .CREATE, .UPDATE, .DELETE or .ALL. All calls need Authorization: Scalar360-oauthtoken <access_token> — see Authentication.

GET

Queue

/api/v1/purchase-receipts

Scope: Scalar360.purchase-receipts.READ

ParameterInTypeRequired
qquerystringNo
statusquerystringNo
vendorIdquerystring (uuid)No
warehouseIdquerystring (uuid)No
purchaseOrderIdquerystring (uuid)No
startDatequerystring (date)No
endDatequerystring (date)No
pagequeryintegerNo
pageSizequeryintegerNo
sortByquerystringNo
sortDirquerystringNo
Example request
curl -X GET "https://api.scalar360.com/api/v1/purchase-receipts" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
POST

Receive

/api/v1/purchase-receipts

Scope: Scalar360.purchase-receipts.CREATE

Body fieldTypeRequiredNotes
purchaseOrderIdstring (uuid)Yes
warehouseIdstring (uuid)Yes
receivedDatestring (date)
notesstringmax length 1000
itemsarray of objectYesrequired, not empty
items[].purchaseOrderItemIdstring (uuid)
items[].quantitynumberYesrequired, > 0
items[].overReceiptReasonstringmax length 500
Example request
curl -X POST "https://api.scalar360.com/api/v1/purchase-receipts" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"purchaseOrderId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","warehouseId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","items":[{"purchaseOrderItemId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","quantity":100,"overReceiptReason":"string"}]}'
POST

Cancel

/api/v1/purchase-receipts/{receiptId}/cancel

Scope: Scalar360.purchase-receipts.CREATE

ParameterInTypeRequired
receiptIdpathstring (uuid)Yes
Body fieldTypeRequiredNotes
reasonstringYesrequired, length 3-1000
Example request
curl -X POST "https://api.scalar360.com/api/v1/purchase-receipts/{receiptId}/cancel" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason":"string"}'
GET

History

/api/v1/purchase-receipts/history

Scope: Scalar360.purchase-receipts.READ

ParameterInTypeRequired
pagequeryintegerNo
pageSizequeryintegerNo
Example request
curl -X GET "https://api.scalar360.com/api/v1/purchase-receipts/history" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
GET

Export history

/api/v1/purchase-receipts/history/export

Scope: Scalar360.purchase-receipts.READ

ParameterInTypeRequired
formatquerystring (default pdf)No
Example request
curl -X GET "https://api.scalar360.com/api/v1/purchase-receipts/history/export" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
GET

Warehouses

/api/v1/purchase-receipts/warehouses

Scope: Scalar360.purchase-receipts.READ

Example request
curl -X GET "https://api.scalar360.com/api/v1/purchase-receipts/warehouses" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"