Skip to main content
POST
/
api
/
goods_in_receipts
/
{id}
/
storage_unit_labels
Print storage unit labels for a receipt
curl --request POST \
  --url https://clarus-api.com/api/goods_in_receipts/{id}/storage_unit_labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Clarus-Subdomain: <api-key>' \
  --data '
{
  "data": {
    "type": "goods_in_receipts",
    "attributes": {
      "storage_unit_id": 123,
      "cloud_print": true,
      "printer_id": 1
    }
  }
}
'
{
  "data": {
    "id": 1,
    "type": "documents",
    "attributes": {
      "status": "processing"
    }
  }
}

Request Structure

{
  "data": {
    "type": "goods_in_receipts",
    "attributes": {
      "storage_unit_id": 123,
      "cloud_print": true,
      "printer_id": 1
    }
  }
}

Key Fields

FieldRequiredDescription
storage_unit_idNoSpecific storage unit to print label for (omit for all on receipt)
cloud_printNoWhen true, sends to printer via PrintNode instead of returning PDF
printer_idNoPrintNode printer ID (required when cloud_print is true)

Response Behavior

  • With cloud_print: true: Returns JSON acknowledgement that the print job was sent
  • Without cloud_print: Returns a PDF binary stream (application/pdf)

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

id
integer
required

The unique identifier of the goods in receipt

Body

application/json
data
object

Response

Label print job created successfully (when cloud_print is true) or PDF binary stream (when cloud_print is false)

data
object