Billing Holds API
Billing Holds are used to temporarily suspend invoicing and delinquency processes including lapse.
| Action | Endpoint |
|---|---|
| Fetch Hold | GET/billing/{tenantLocator}/holds/{locator} |
| Fetch All Holds For An Account | GET/billing/{tenantLocator}/holds/accounts/{accountLocator}/list |
| Create Hold | POST/billing/{tenantLocator}/holds |
| Update Hold | PATCH/billing/{tenantLocator}/holds/{locator} |
| Validate Hold | PATCH/billing/{tenantLocator}/holds/{locator}/validate |
| Activate Hold | PATCH/billing/{tenantLocator}/holds/{locator}/activate |
| Release Hold | PATCH/billing/{tenantLocator}/holds/{locator}/release |
| Reset Hold | PATCH/billing/{tenantLocator}/holds/{locator}/reset |
| Discard Hold | PATCH/billing/{tenantLocator}/holds/{locator}/discard |
Fetch
Fetch Hold
Fetch Hold
fetchHoldGET
/billing/{tenantLocator}/holds/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
HoldResponseSecurity Group:
holdsPermission:
readHoldResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
accountLocator | ulid | |
holdState | Enum draft | validated | active | discarded | released | |
targetType | Enum invoicing | delinquency | |
updatedAt | datetime | |
createdAt | datetime |
Optional properties
| Property | Type | Description |
|---|---|---|
validationResult | ValidationResult? |
Fetch All Holds For An Account
Fetch All Holds For An Account
fetchAllHoldsForAnAccountGET
/billing/{tenantLocator}/holds/accounts/{accountLocator}/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
accountLocator | path | ulid | Yes | |
state | query | Enum? draft | validated | active | discarded | released | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
HoldListResponseSecurity Group:
holdsPermissions:
read,listHoldListResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | HoldResponse[] |
Creation and Update
Create Hold
Create Hold
createHoldPOST
/billing/{tenantLocator}/holdsParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes |
HoldCreateRequest
Required properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid | |
targetType | Enum invoicing | delinquency |
Update Hold
Update Hold
updateHoldPATCH
/billing/{tenantLocator}/holds/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
HoldUpdateRequest
Properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
targetType | Enum? invoicing | delinquency |
Execution
Validate Hold
Validate Hold
validateHoldPATCH
/billing/{tenantLocator}/holds/{locator}/validateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
HoldResponseSecurity Group:
holdsPermission:
writeActivate Hold
Activate Hold
activateHoldPATCH
/billing/{tenantLocator}/holds/{locator}/activateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
HoldResponseSecurity Group:
holdsPermission:
writeRelease, Reset, and Discard
Release Hold
Release Hold
releaseHoldPATCH
/billing/{tenantLocator}/holds/{locator}/releaseParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
HoldResponseSecurity Group:
holdsPermission:
writeReset Hold
Reset Hold
resetHoldPATCH
/billing/{tenantLocator}/holds/{locator}/resetParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
HoldResponseSecurity Group:
holdsPermission:
writeDiscard Hold
Discard Hold
discardHoldPATCH
/billing/{tenantLocator}/holds/{locator}/discardParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
HoldResponseSecurity Group:
holdsPermission:
write