List line items on a credit note
Returns the line items attached to a credit note. Each line describes a portion of the invoice that the credit applies to — either a whole invoice line or a prorated slice. Use this to reconstruct the credit's effect per invoice line (for example, when displaying the credit breakdown in your own UI).
/credit_notes/{id}/linesReturns the line items attached to a credit note. Each line describes a portion of the invoice that the credit applies to — either a whole invoice line or a prorated slice. Use this to reconstruct the credit's effect per invoice line (for example, when displaying the credit breakdown in your own UI).
Related endpoints
GET /credit_notes— List credit notesPOST /credit_notes— Create a credit noteGET /credit_notes/{id}— Get credit note by IDPOST /credit_notes/{id}/void— Void a credit notePOST /credit_notes/preview— Preview a credit note without creating it
Common errors
401 authentication_error— missing, invalid, expired, or revoked credential. Codes:authentication_failed,invalid_api_key,expired_api_key,api_key_revoked,session_invalid,merchant_required. Carries aWWW-Authenticate: Bearerchallenge.403 authorization_error— the caller is identified but the action is denied. Codes includeinsufficient_permissions,ip_not_allowed,merchant_mismatch, andorigin_not_allowed.404 resource_missing— the referenced resource does not exist or is not visible to your key.
Pagination
Offset-based with limit (default 25, max 100) and offset. The response pagination block includes total and hasMore. See the pagination guide for SDK auto-paging helpers.
Authorization
apiKey Your RevKeen merchant API key. Create and manage keys in Dashboard → Settings → Developer. Use rk_sandbox_* for staging/test and rk_live_* for production. The same key may be sent as Authorization: Bearer <key> if that suits your HTTP client better. A missing, invalid, expired, or revoked key returns 401 with a WWW-Authenticate: Bearer challenge; a valid key without the required scope returns 403.
In: header
Path Parameters
Credit note UUID
uuidQuery Parameters
Maximum number of line items to return (1-100, default 100).
1 <= value <= 100100Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.revkeen.com/v2/credit_notes/11111111-1111-4111-8111-111111111111/lines?limit=100" \
-H "x-api-key: $REVKEEN_API_KEY"Synthetic documentation data, validated against the response schema; not a live API result.
{ "object": "list", "data": [ { "id": "abcd1234-e29b-41d4-a716-446655440000", "object": "credit_note_line", "credit_note_id": "00000000-0000-4000-8000-000000000001", "invoice_line_item_id": "31d3bb6c-3ad5-4317-93f6-7349092767e9", "description": "Pro Plan subscription — prorated for unused 12 days", "quantity": 1, "unit_amount_minor": 5000, "total_amount_minor": 5000, "metadata": { "property1": null, "property2": null }, "created_at": "2026-09-01T12:00:00Z" } ], "has_more": true, "url": "https://example.com/webhooks/revkeen"}