Socotra
API ReferenceBilling API

Disbursements API

ActionEndpoint
Fetch DisbursementGET/billing/{tenantLocator}/disbursements/{locator}
Fetch Multiple DisbursementsGET/billing/{tenantLocator}/disbursements/list
Create a DisbursementPOST/billing/{tenantLocator}/disbursements
Update a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}
Update a Disbursement and Replace Extension DataPUT/billing/{tenantLocator}/disbursements/{locator}
Validate a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/validate
Approve a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/approve
Execute a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/execute
Reject a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/reject
Reset a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/reset
Reverse a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/reverse
Discard a DisbursementPATCH/billing/{tenantLocator}/disbursements/{locator}/discard
Fetch Disbursements With NumberGET/billing/{tenantLocator}/disbursements/numbers/{disbursementNumber}
Set Disbursement NumberPOST/billing/{tenantLocator}/disbursements/{locator}/number/set
Generate Disbursement NumberPOST/billing/{tenantLocator}/disbursements/{locator}/number/generate

Fetch

Fetch Disbursement

Fetch DisbursementfetchDisbursement
GET/billing/{tenantLocator}/disbursements/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
read

Fetch Multiple Disbursements

Fetch Multiple DisbursementsfetchMultipleDisbursements
GET/billing/{tenantLocator}/disbursements/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
offsetqueryinteger?No
countqueryinteger?No
accountLocatorqueryulid?No
extendedqueryboolean?No
Security Group:disbursements
Permissions:
read,list
DisbursementListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsDisbursementResponse[]
DisbursementResponse

Required properties

PropertyTypeDescription
locatorulid
currencystring
disbursementStateEnum draft | validated | approved | executed | reversed | rejected | discarded
amountnumber
typestring
datamap<string, object>
createdAtdatetime
createdByuuid
sourcesCreditItem[]

Optional properties

PropertyTypeDescription
accountLocatorulid?
externalCashTransactionLocatorulid?
anonymizedAtdatetime?
disbursementNumberstring?
validationResultValidationResult?

Lifecycle

Create a Disbursement

Create a DisbursementcreateDisbursement
POST/billing/{tenantLocator}/disbursements

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Security Group:disbursements
Permission:
write
DisbursementCreateRequest

Required properties

PropertyTypeDescription
amountnumber
typestring
useDefaultFinancialInstrumentboolean
datamap<string, object>
sourcesCreditItem[]

Optional properties

PropertyTypeDescription
accountLocatorulid?
financialInstrumentLocatorulid?
currencystring?
transactionMethodEnum? ach | cash | eft | standard | wire
transactionNumberstring?

Update a Disbursement

Update a DisbursementupdateDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write
DisbursementUpdateRequest

Required properties

PropertyTypeDescription
addSourcesCreditItem[]
removeDatamap<string, object>
removeSourcesulid[]
setDatamap<string, object>

Optional properties

PropertyTypeDescription
accountLocatorulid?
financialInstrumentLocatorulid?
currencystring?
amountnumber?
transactionMethodEnum? ach | cash | eft | standard | wire
transactionNumberstring?
typestring?
useDefaultFinancialInstrumentboolean?

Update a Disbursement and Replace Extension Data

Update a Disbursement and Replace Extension DataupdateDisbursementReplaceData
PUT/billing/{tenantLocator}/disbursements/{locator}

Updates the disbursement and replaces all existing data extensions with the data.

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write
DisbursementUpdateReplaceDataRequest

Required properties

PropertyTypeDescription
amountnumber
typestring
useDefaultFinancialInstrumentboolean
datamap<string, object>
sourcesCreditItem[]

Optional properties

PropertyTypeDescription
accountLocatorulid?
financialInstrumentLocatorulid?
currencystring?
transactionMethodEnum? ach | cash | eft | standard | wire
transactionNumberstring?

Validate a Disbursement

Validate a DisbursementvalidateDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/validate

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Approve a Disbursement

Approve a DisbursementapproveDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/approve

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Execute a Disbursement

Execute a DisbursementexecuteDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/execute

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Reject a Disbursement

Reject a DisbursementrejectDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/reject

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Reset a Disbursement

Reset a DisbursementresetDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/reset

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Reverse a Disbursement

Reverse a DisbursementreverseDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/reverse

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Discard a Disbursement

Discard a DisbursementdiscardDisbursement
PATCH/billing/{tenantLocator}/disbursements/{locator}/discard

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

Numbering

Fetch Disbursements With Number

Fetch Disbursements With NumberfetchDisbursementsWithNumber
GET/billing/{tenantLocator}/disbursements/numbers/{disbursementNumber}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
disbursementNumberpathstringYes
Security Group:disbursements
Permissions:
read,list

Set Disbursement Number

Set Disbursement NumbersetDisbursementNumber
POST/billing/{tenantLocator}/disbursements/{locator}/number/set

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
disbursementNumberquerystringYes
Security Group:disbursements
Permission:
write

Generate Disbursement Number

Generate Disbursement NumbergenerateDisbursementNumber
POST/billing/{tenantLocator}/disbursements/{locator}/number/generate

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:disbursements
Permission:
write

See Also

On this page