Skip to main content
GET
/
delivery-notes
/
{id}
Get delivery note
const options = {method: 'GET'};

fetch('https://api.dolfinai.co/delivery-notes/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "dnNumber": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalRef": "<string>",
  "purchaseOrderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "receivedAt": "2023-11-07T05:31:56Z",
  "lines": [
    {
      "description": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "sku": "<string>",
      "quantityReceived": 123,
      "unit": "<string>",
      "sortOrder": 123,
      "matchedQuantity": 123,
      "fullyMatched": true
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string<uuid>
required

Response

OK

A delivery note and its received lines.

dnNumber
string
required

Human delivery-note number. Required and unique within the organisation.

id
string<uuid>

Unique identifier of the delivery note.

organisationId
string<uuid>

The organisation that owns the delivery note.

supplierId
null | string<uuid>

The supplier the goods were received from, if assigned.

externalRef
null | string

Caller's own reference for the note (a reverse pointer to the platform's record), if any.

purchaseOrderId
null | string<uuid>

Loose header link to a purchase order, if one was provided. Optional.

receivedAt
null | string<date-time>

When the goods were received, if recorded.

status
enum<string>

Lifecycle status: Draft, Open, PartiallyMatched, FullyMatched (all derived from matching), or the manual terminal states Closed / Cancelled.

Available options:
Draft,
Open,
PartiallyMatched,
FullyMatched,
Closed,
Cancelled
lines
object[]

The received lines, in display order.

createdAt
string<date-time>

When the delivery note was created.

updatedAt
string<date-time>

When the delivery note was last updated.