Skip to main content
POST
Retry reading a company bill's document

Authorizations

x-dolfin-api-key
string
header
required

An API key issued to your client. It carries the client's scope; org-scoped calls also require the x-dolfin-organisation-id header. Keys are created and revoked by a client administrator.

Headers

x-dolfin-client-id
string<uuid>

Target client. Required when your credential grants access to more than one client; omit when it resolves a single client.

Path Parameters

companyId
string<uuid>
required
billId
string<uuid>
required

Response

Accepted

id
string<uuid>

Identifier of the bill. It does not change when the bill is routed: the same id retrieves the bill from GET /bills/{billId} afterwards.

companyId
string<uuid>
status
enum<string>

Where the bill is in the inbox. AwaitingOrganisation means it needs routing; ExtractionFailed means the document could not be read; Discarded means someone rejected it.

Available options:
Extracting,
ExtractionFailed,
AwaitingOrganisation,
Discarded
source
enum<string>

How the bill arrived — an API upload, or the company's bill-forwarding email address.

Available options:
Upload,
Email,
Webhook
routingOutcome
null | any

Why the bill was not routed automatically. Tells you what needs deciding: for example, that the delivery address matched several sites, that it was delivered to head office, or that no address could be read.

Available options:
AutoAssigned,
BelowThreshold,
Ambiguous,
HeadOffice,
MultipleDeliveryAddresses,
NoDeliveryAddress,
NoOrganisations,
AutoAssignDisabled,
null
suggestedOrganisationId
null | string<uuid>

The organisation the bill most likely belongs to, if one stood out. Present even when confidence was too low to route automatically.

suggestedOrganisationConfidence

How confident the address match was, from 0 to 1.

candidates
object[]

The candidate organisations, best match first, so a reviewer can pick rather than search.

supplierName
null | string
supplierEmail
null | string
supplierAddress
null | string
deliveryAddress
null | string

The delivery address exactly as printed on the document.

deliveryAddressDetail
null | object

The delivery address as components — what the bill is matched against when deciding which organisation it belongs to.

invoiceNumber
null | string
invoiceDate
null | string<date-time>
dueDate
null | string<date-time>
currency
string

ISO 4217 currency code (e.g. GBP, USD, EUR)

subTotal
taxAmount
totalAmount
confidence

Extraction confidence reported by the document reader, from 0 to 1.

extractionError
null | string

Why extraction failed, when it did.

createdAt
string<date-time>
updatedAt
string<date-time>