Manage rate catalog (pricing for services)
- List Adjustments
Billing & Ledger Service API (1.0.0)
The Billing & Ledger Service is the financial engine of the NPS Billing Platform. It manages pricing (Rates, Rate Cards), subscription configurations, allocation rules for split billing scenarios (divorced households, subsidies), charge lifecycle, and double-entry accounting ledger.
Charges follow a strict lifecycle with immutability after invoicing:
- PENDING → Created but not validated
- BILLED → Validated and ready to invoice (still editable)
- INVOICED → Invoiced (IMMUTABLE - moved to SettledCharge)
- PAID → Paid directly without invoice
- VOID → Cancelled
Defines how charges are split between multiple accounts (e.g., divorced parents, subsidy agencies). Three rule types:
- RESPONSIBLE_PARTY: Percentage-based split
- COVERAGE_TRANSFER: Fixed amount covered (e.g., $25 subsidy per charge)
- BILLING_CAP: Maximum amount per period
All financial transactions follow the accounting equation (Debits = Credits). Journal entries are immutable once created - corrections use adjustment entries.
Request
Create a manual adjustment to correct ledger entries.
Adjustment Types:
DISCOUNT_CORRECTION- Fix discount calculation errorFEE_CORRECTION- Adjust fee amountCREDIT_MEMO- Issue credit to accountDEBIT_MEMO- Charge additional amountWRITE_OFF- Bad debt write-off
Authorization: Requires special permission level for manual adjustments. All adjustments include a full audit trail.
Type of adjustment
- Mock serverhttps://docs.nelnetpay.com/_mock/apis/billing-ledger-service/adjustments
- UAT serverhttps://api.uat.nelnetpay.com/billing/adjustments
- Production serverhttps://api.nelnetpay.com/billing/adjustments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.nelnetpay.com/_mock/apis/billing-ledger-service/adjustments \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"adjustmentType": "DISCOUNT_CORRECTION",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"chargeId": "aec0aceb-a4db-49fb-b366-75e90229c640",
"invoiceId": "4f163819-178d-470c-a246-d6768476a6ec",
"amount": 1,
"reason": "string",
"debitAccountCode": "string",
"creditAccountCode": "string",
"metadata": {
"property1": "string",
"property2": "string"
}
}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5", "adjustmentType": "DISCOUNT_CORRECTION", "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "chargeId": "aec0aceb-a4db-49fb-b366-75e90229c640", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "amount": 0, "reason": "string", "adminUserId": "string", "adminUserEmail": "string", "status": "PENDING", "journalEntryId": "72600ee4-b304-47f3-89cd-f685d2692490", "debitAccountCode": "string", "creditAccountCode": "string", "approvedBy": "string", "approvedAt": "2019-08-24T14:15:22Z", "appliedAt": "2019-08-24T14:15:22Z", "metadata": { "property1": "string", "property2": "string" }, "optimisticLockVersion": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
- Mock serverhttps://docs.nelnetpay.com/_mock/apis/billing-ledger-service/adjustments
- UAT serverhttps://api.uat.nelnetpay.com/billing/adjustments
- Production serverhttps://api.nelnetpay.com/billing/adjustments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.nelnetpay.com/_mock/apis/billing-ledger-service/adjustments?adjustment_type=DISCOUNT_CORRECTION&admin_user_id=string&page=1&page_size=50' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "results": [ { … } ], "pagination": { "totalRecords": 100, "currentPage": 1, "totalPages": 10, "nextPage": 2, "prevPage": null } }
- Mock serverhttps://docs.nelnetpay.com/_mock/apis/billing-ledger-service/adjustments/{adjustmentId}
- UAT serverhttps://api.uat.nelnetpay.com/billing/adjustments/{adjustmentId}
- Production serverhttps://api.nelnetpay.com/billing/adjustments/{adjustmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.nelnetpay.com/_mock/apis/billing-ledger-service/adjustments/{adjustmentId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5", "adjustmentType": "DISCOUNT_CORRECTION", "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "chargeId": "aec0aceb-a4db-49fb-b366-75e90229c640", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "amount": 0, "reason": "string", "adminUserId": "string", "adminUserEmail": "string", "status": "PENDING", "journalEntryId": "72600ee4-b304-47f3-89cd-f685d2692490", "debitAccountCode": "string", "creditAccountCode": "string", "approvedBy": "string", "approvedAt": "2019-08-24T14:15:22Z", "appliedAt": "2019-08-24T14:15:22Z", "metadata": { "property1": "string", "property2": "string" }, "optimisticLockVersion": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }