Credits API
Credits are added to the system to as desired to credit customer accounts.
Note
Currently the only credits supported (other than payments and credit distributions) are write-offs to resolve invoice payment shortfalls within the tolerance threshold.
Endpoint Index
| Action | Endpoint |
|---|---|
| Fetch Credits | GET /billing/{tenantLocator}/credits/list |
| Fetch Shortfall Credit | GET /billing/{tenantLocator}/shortfallCredits/{locator} |
| Fetch Multiple Shortfall Credits | GET /billing/{tenantLocator}/shortfallCredits/list |
GET /billing/{tenantLocator}/credits/listRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| accountLocator | query | string? | optional |
| offset | query | int? | optional |
| count | query | int? | optional |
| extended | query | boolean? | optional |
Response:CreditListResponse
Security Group:credits  Permissions:read,list
CreditListResponse
¶requiredlistCompleted booleanitems CreditResponse[]
CreditResponse
¶requiredlocator stringcurrency stringcreditState Enum discarded | draft | posted | reversed | validated | executed | distributed | approved | rejected | requested | executing | failed | cancelledamount numbercreditType Enum creditDistribution | disbursement | payment | shortfallWriteOff | subpayment | writeOffcreatedAt datetimeoptionalaccountLocator string?realizedAt datetime?reversalReason string?reversedAt datetime?
GET /billing/{tenantLocator}/shortfallCredits/{locator}Request Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:ShortfallCreditResponse
Security Group:shortfall-credits  Permission:read
ShortfallCreditListResponse
¶requiredlistCompleted booleanitems ShortfallCreditResponse[]
ShortfallCreditResponse
¶requiredlocator stringaccountLocator stringparentCreditLocator stringcurrency stringshortfallCreditState Enum draft | distributed | reversedamount numbercreditType Enum creditDistribution | disbursement | payment | shortfallWriteOff | subpayment | writeOffcreatedAt datetimecreatedBy uuidtargets CreditItem[]optionalreversalReason string?
GET /billing/{tenantLocator}/shortfallCredits/listRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| offset | query | int? | optional |
| count | query | int? | optional |
| accountLocator | query | string? | optional |
| extended | query | boolean? | optional |
Response:ShortfallCreditListResponse
Security Group:shortfall-credits  Permissions:read,list
GET /billing/{tenantLocator}/invoices/{locator}/credits/listRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
| includeReversed | query | boolean? | optional |
| offset | query | int? | optional |
| count | query | int? | optional |
| extended | query | boolean? | optional |
Response:CreditListResponse
Security Group:invoices  Permissions:read,list