Get invoice

GET /api/v1/invoices/:id read:inventory

A single invoice header plus every line item. Line types: shipping (postage at cost, no markup), pass_through (carrier-collected tax, insurance, duties, address correction, returned/refused — at cost), redemption (per-card redemption fee; rate depends on who supplies packaging), intake (per-card fee charged once at scan-in), holding (storage per holding period after the free period), special_handling (pre-agreed manual handling, only when agreed in writing), service_credit (SLA-breach credit — a negative amount).

Try it GET /api/v1/invoices/0

These inputs are shared across all docs pages, so an id entered here carries over.

response

Not run yet. Press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).

curl (tracks the inputs above)
curl -X GET 'https://service.rip.fun/api/v1/invoices/0' \
  -H 'X-API-Key: rip_…'

Response fields (data)

FieldDescription
invoiceSame shape as a GET /invoices row
lineItems[].line_type / descriptionshipping | pass_through | redemption | intake | holding | special_handling | service_credit
lineItems[].quantity / unit_amount_cents / total_amount_cents / currencyAmounts — unit_amount_cents is negative for service_credit lines
lineItems[].reference_type / reference_id / occurred_at / metadataWhat the line points back to + when it occurred

Errors

StatusCodeWhen
400invalid idid is not a positive integer
404not foundinvoice not part of your account

See Errors for the response envelope and the full code list.