/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).
GET /api/v1/invoices/0 These inputs are shared across all docs pages, so an id entered here carries over.
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 -X GET 'https://service.rip.fun/api/v1/invoices/0' \ -H 'X-API-Key: rip_…'
data)| Field | Description |
|---|---|
invoice | Same shape as a GET /invoices row |
lineItems[].line_type / description | shipping | pass_through | redemption | intake | holding | special_handling | service_credit |
lineItems[].quantity / unit_amount_cents / total_amount_cents / currency | Amounts — unit_amount_cents is negative for service_credit lines |
lineItems[].reference_type / reference_id / occurred_at / metadata | What the line points back to + when it occurred |
| Status | Code | When |
|---|---|---|
| 400 | invalid id | id is not a positive integer |
| 404 | not found | invoice not part of your account |
See Errors for the response envelope and the full code list.