Skip to main content
POST
/
delivery-notes
Create a new delivery note
curl --request POST \
  --url http://localhost/api/delivery-notes \
  --header 'Content-Type: application/json' \
  --data '
{
  "identification": {
    "seller": {
      "pink_id": "<string>",
      "gln": "<string>"
    },
    "buyer": {
      "pink_id": "<string>",
      "gln": "<string>"
    },
    "pink_id": "<string>",
    "seller_delivery_note_id": "<string>"
  },
  "issue_date": "2023-11-07T05:31:56Z",
  "delivery_date": "2023-11-07T05:31:56Z",
  "lines": [
    {
      "line_number": "<string>",
      "product_name": "<string>",
      "quantity": 123,
      "unit": "pc",
      "product_id": "<string>",
      "batch_number": "<string>",
      "expiry_date": "2023-11-07T05:31:56Z",
      "origin": {
        "generic": "<string>",
        "detailed_meat": {
          "born": "NOT_EU",
          "rearing": "NOT_EU",
          "slaughter": "NOT_EU",
          "cutting": "NOT_EU"
        }
      }
    }
  ],
  "references": [
    {
      "type": "DELIVERY_NOTE",
      "seller_document_id": "<string>",
      "pink_id": "<string>"
    }
  ]
}
'
{
  "message": "Delivery note created successfully",
  "transmission_id": "<string>",
  "": "<string>"
}

Body

application/json

DeliveryNote

identification
DeliveryNoteIdentification · object
required
issue_date
string<date-time>
required
delivery_date
string<date-time>
required
lines
DeliveryNoteLine · object[]
required
references
DeliveryNoteReferenceIdentification · object[]

Document references

Response

message
string
required
Example:

"Delivery note created successfully"

transmission_id
string
required
string