- List contract lines for a charge number
Purpose
Returns the lines of a revenue contract that came from one Zuora Billing rate plan charge.
When to use
- Trace a subscription charge from Zuora Billing to its revenue lines.
- Find the lines to target with a charge-level hold or charge-level link and delink.
Behavior notes
The path chargeNumber always wins over a chargeNumber query parameter. The charge-number filter counts toward the limit of 5 filters, so you can add at most 4 more. No match returns HTTP 200 with an empty data array.
Filtering
Every query parameter other than page, size, and sort is treated as a filter.
field=valuematches records where the field equals the value.field[op]=valueapplies an operator. URL-encode the brackets as%5Band%5D, for exampleid%5Bgt%5D=1000. Operators:eq,ne,gt,gte,lt,lte,like(supply%wildcards yourself).- All filters are combined with AND. At most 5 filters are allowed per request.
- Blank filter values are ignored.
- An unknown field or operator returns HTTP 400.
Sort order as field,direction. Separate several sort fields with ; (for example id,desc;rcId,asc). Direction is asc or desc; any other value sorts ascending. Sortable fields: id, rcId, rcPobId, batchId, chargeNumber. When sort is omitted the order is not guaranteed, so always sort when paging through results.
- Productionhttps://one.zuora.com/revenue/services/v1/contracts/{rcId}/lines/charge-number/{chargeNumber}
curl -i -X GET \
'https://one.zuora.com/revenue/services/v1/contracts/111442/lines/charge-number/C-00012345?page=1&size=20&sort=id%2Casc&id=85922&rcPobId=156912&batchId=5001' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'X-REV-BOOK-ID: 1' \
-H 'Zuora-Request-Id: b8f1c2d4-6e1a-4c7b-9d2e-0f3a5b7c9e11'A page of records. An empty data array means no record matched.
{ "data": [ { … } ], "page": { "number": 1, "size": 20, "totalElements": 1, "totalPages": 1, "first": true, "last": true } }