Skip to main content
POST
Upload an invoice PDF and publish the invoice

Autorisations

X-API-KEY
string
header
requis
OW-KEY
string
header
requis

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Paramètres de chemin

invoiceId
integer<int64>
requis

Invoice id

Corps

multipart/form-data
file
file
requis

The invoice PDF

Réponse

Successful response

type
string
requis

Entity type label, e.g. "Invoice". Endpoints that derive it via Scala reflection (most generic list/get endpoints) may return the fully qualified server class name instead (e.g. "models.workorder.WorkOrder"); treat this field as informational.

data
object
requis

Invoice in its external-API projection (InvoiceExternalAPI = full Invoice fields with buyerSupplierRelationship replaced by an external projection). Abridged - the full model carries approval-hierarchy, dispute and hydrated relation fields. For third-party suppliers responses are masked.

status
enum<string>
requis

"ok" on success

Options disponibles:
ok