List or export the credit ledger
curl --request GET \
--url https://code.deepline.com/api/v2/billing/ledger \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/billing/ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/billing/ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"org_id": "org_example",
"scope": {
"kind": "org"
},
"entries": [],
"has_more": false,
"next_cursor": null,
"next_before_at": null
}{
"error": "Unauthorized"
}{
"error": "<string>"
}{
"error": "<string>"
}Billing
List or export the credit ledger
Requires workspace admin access. Reads customer-visible credits and debits across the workspace. JSON is paginated: reuse next_cursor while has_more is true, including when a filtered page is empty. CSV streams the matching history and ignores cursor and limit. Responses are private and uncached.
GET
/
api
/
v2
/
billing
/
ledger
List or export the credit ledger
curl --request GET \
--url https://code.deepline.com/api/v2/billing/ledger \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/billing/ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/billing/ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"org_id": "org_example",
"scope": {
"kind": "org"
},
"entries": [],
"has_more": false,
"next_cursor": null,
"next_before_at": null
}{
"error": "Unauthorized"
}{
"error": "<string>"
}{
"error": "<string>"
}