Skip to main content
GET
Get an invoice

Autorizaciones

X-API-KEY
string
header
requerido
OW-KEY
string
header
requerido

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

Parámetros de ruta

id
integer
requerido

Respuesta

Success.

type
string
requerido

Entity type marker, e.g. "Invoice".

data
object
requerido

Invoice (external API projection). Every invoice is anchored to exactly one of workOrderId or projectId; the other side (plus its hydrated object) is null. Project invoices skip work-order-anchored behaviour: NTE check, GL-code derivation, budget spend, WO status sync, asset spend mirror, WO-detail PDF, WO-anchored approval hierarchies and notifications, per-WO duplicate check, and tax-line currency validation. locationId and buyerFacilityId may be null on project invoices; when null, the invoice is excluded from cost-by-location and cost-by-facility analytics respectively. ABRIDGED: further fields (invoice type templates, custom field values, approval hierarchy, revision changes, AI-parse metadata, watermarked PDFs) may appear. On external responses buyerSupplierRelationship additionally carries vendorCode.

status
enum<string>
requerido
Opciones disponibles:
ok