Socotra
API ReferenceBilling API

Billing Holds API

Billing Holds are used to temporarily suspend invoicing and delinquency processes including lapse.

ActionEndpoint
Fetch HoldGET/billing/{tenantLocator}/holds/{locator}
Fetch All Holds For An AccountGET/billing/{tenantLocator}/holds/accounts/{accountLocator}/list
Create HoldPOST/billing/{tenantLocator}/holds
Update HoldPATCH/billing/{tenantLocator}/holds/{locator}
Validate HoldPATCH/billing/{tenantLocator}/holds/{locator}/validate
Activate HoldPATCH/billing/{tenantLocator}/holds/{locator}/activate
Release HoldPATCH/billing/{tenantLocator}/holds/{locator}/release
Reset HoldPATCH/billing/{tenantLocator}/holds/{locator}/reset
Discard HoldPATCH/billing/{tenantLocator}/holds/{locator}/discard

Fetch

Fetch Hold

Fetch HoldfetchHold
GET/billing/{tenantLocator}/holds/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
read
HoldResponse

Required properties

PropertyTypeDescription
locatorulid
accountLocatorulid
holdStateEnum draft | validated | active | discarded | released
targetTypeEnum invoicing | delinquency
updatedAtdatetime
createdAtdatetime

Optional properties

PropertyTypeDescription
validationResultValidationResult?

Fetch All Holds For An Account

Fetch All Holds For An AccountfetchAllHoldsForAnAccount
GET/billing/{tenantLocator}/holds/accounts/{accountLocator}/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
accountLocatorpathulidYes
statequeryEnum? draft | validated | active | discarded | releasedNo
offsetqueryinteger?No
countqueryinteger?No
extendedqueryboolean?No
Security Group:holds
Permissions:
read,list
HoldListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsHoldResponse[]

Creation and Update

Create Hold

Create HoldcreateHold
POST/billing/{tenantLocator}/holds

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Response:HoldResponse
Security Group:holds
Permission:
write
HoldCreateRequest

Required properties

PropertyTypeDescription
accountLocatorulid
targetTypeEnum invoicing | delinquency

Update Hold

Update HoldupdateHold
PATCH/billing/{tenantLocator}/holds/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
write
HoldUpdateRequest

Properties

PropertyTypeDescription
accountLocatorulid?
targetTypeEnum? invoicing | delinquency

Execution

Validate Hold

Validate HoldvalidateHold
PATCH/billing/{tenantLocator}/holds/{locator}/validate

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
write

Activate Hold

Activate HoldactivateHold
PATCH/billing/{tenantLocator}/holds/{locator}/activate

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
write

Release, Reset, and Discard

Release Hold

Release HoldreleaseHold
PATCH/billing/{tenantLocator}/holds/{locator}/release

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
write

Reset Hold

Reset HoldresetHold
PATCH/billing/{tenantLocator}/holds/{locator}/reset

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
write

Discard Hold

Discard HolddiscardHold
PATCH/billing/{tenantLocator}/holds/{locator}/discard

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:HoldResponse
Security Group:holds
Permission:
write

See Also

On this page