Payments API
| Action | Endpoint |
|---|---|
| Fetch a Payment | GET/billing/{tenantLocator}/payments/{locator} |
| Fetch Multiple Payments | GET/billing/{tenantLocator}/payments/list |
| Fetch Subpayments | GET/billing/{tenantLocator}/payments/{locator}/subpayments/list |
| Fetch Payments With Number | GET/billing/{tenantLocator}/payments/numbers/{paymentNumber} |
| Create a Payment | POST/billing/{tenantLocator}/payments |
| Update a Payment | PATCH/billing/{tenantLocator}/payments/{locator} |
| Update a Payment (overwrite extension data) | PUT/billing/{tenantLocator}/payments/{locator} |
| Validate a Payment | PATCH/billing/{tenantLocator}/payments/{locator}/validate |
| Post a Payment | PATCH/billing/{tenantLocator}/payments/{locator}/post |
| Reverse a Posted Payment | PATCH/billing/{tenantLocator}/payments/{locator}/reverse |
| Reset a Validated Payment Back to Draft State | PATCH/billing/{tenantLocator}/payments/{locator}/reset |
| Discard a Payment | PATCH/billing/{tenantLocator}/payments/{locator}/discard |
| Set Payment Number | POST/billing/{tenantLocator}/payments/{locator}/number/set |
| Generate Payment Number | POST/billing/{tenantLocator}/payments/{locator}/number/generate |
| Execute Payment | PATCH/billing/{tenantLocator}/payments/{locator}/request |
| Cancel Payment | PATCH/billing/{tenantLocator}/payments/{locator}/cancel |
| Fail Payment | PATCH/billing/{tenantLocator}/payments/{locator}/fail |
| Fetch shortfall credits | GET/billing/{tenantLocator}/payments/{locator}/shortfallCredits/list |
| Preview Payment Validation | GET/billing/{tenantLocator}/payments/{locator}/previewValidate |
| Preview Payment Post | GET/billing/{tenantLocator}/payments/{locator}/previewPost |
Fetch
Fetch a Payment
Fetch a Payment
fetchPaymentGET
/billing/{tenantLocator}/payments/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
readFetch Multiple Payments
Fetch Multiple Payments
fetchMultiplePaymentsGET
/billing/{tenantLocator}/payments/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No | |
accountLocator | query | ulid? | No | |
targetContainerLocator | query | ulid? | No | |
extended | query | boolean? | No |
Response:
ListPageResponsePaymentResponseSecurity Group:
paymentsPermissions:
read,listFetch Subpayments
Fetch Subpayments
fetchSubpaymentsGET
/billing/{tenantLocator}/payments/{locator}/subpayments/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No |
Response:
ListPageResponsePaymentResponseSecurity Group:
paymentsPermissions:
read,listFetch Payments With Number
Fetch Payments With Number
fetchPaymentsWithNumberGET
/billing/{tenantLocator}/payments/numbers/{paymentNumber}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
paymentNumber | path | string | Yes |
Response:
PaymentResponse[]Security Group:
paymentsPermissions:
read,listListPageResponsePaymentResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | PaymentResponse[] |
PaymentResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
currency | string | |
paymentState | Enum draft | validated | requested | executing | posted | failed | cancelled | reversed | discarded | |
amount | number | |
type | string | |
createdAt | datetime | |
createdBy | uuid | |
executionLog | PaymentRequestExecutionLogItem[] | |
shortfallCreditLocators | ulid[] | |
subpayments | SubpaymentResponse[] | |
targets | CreditItem[] |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
aggregatePaymentLocator | ulid? | |
externalCashTransactionLocator | ulid? | |
retryPlanName | string? | |
anonymizedAt | datetime? | |
nextRequestTime | datetime? | |
paymentMode | Enum? normal | aggregate | |
paymentNumber | string? | |
postedAt | datetime? | |
remainingAmount | number? | |
reversalReason | string? | |
reversedAt | datetime? | |
reversedBy | uuid? | |
validationResult | ValidationResult? | |
data | map<string, object>? |
SubpaymentResponse
Required properties
| Property | Type | Description |
|---|---|---|
subpaymentLocator | ulid | |
amount | number |
CreditItem
Required properties
| Property | Type | Description |
|---|---|---|
containerLocator | ulid | |
containerType | Enum invoice | account | subpayment | invoiceItem |
Optional properties
| Property | Type | Description |
|---|---|---|
amount | number? |
PaymentRequestExecutionLogItem
Required properties
| Property | Type | Description |
|---|---|---|
paymentRequestLocator | ulid | |
paymentRequestState | Enum pending | completed | failed | error | |
data | map<string, object> |
Optional properties
| Property | Type | Description |
|---|---|---|
note | string? | |
requestTime | datetime? | |
transactionId | string? |
Create and Update
Create a Payment
Create a Payment
createPaymentPOST
/billing/{tenantLocator}/paymentsParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes |
PaymentCreateRequest
Required properties
| Property | Type | Description |
|---|---|---|
amount | number | |
type | string | |
data | map<string, object> | |
targets | CreditItem[] |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
financialInstrumentLocator | ulid? | |
retryPlanName | string? | |
currency | string? | |
paymentMode | Enum? normal | aggregate | |
transactionMethod | Enum? ach | cash | eft | standard | wire | |
transactionNumber | string? | |
useDefaultFinancialInstrument | boolean? |
Update a Payment
Update a Payment
updatePaymentPATCH
/billing/{tenantLocator}/payments/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
PaymentUpdateRequest
Required properties
| Property | Type | Description |
|---|---|---|
addTargets | CreditItem[] | |
removeData | map<string, object> | |
removeTargets | ulid[] | |
setData | map<string, object> |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
financialInstrumentLocator | ulid? | |
retryPlanName | string? | |
currency | string? | |
amount | number? | |
nextRequestTime | datetime? | |
paymentMode | Enum? normal | aggregate | |
transactionMethod | Enum? ach | cash | eft | standard | wire | |
transactionNumber | string? | |
type | string? | |
useDefaultFinancialInstrument | boolean? |
Update a Payment (overwrite extension data)
Update a Payment (overwrite extension data)
updatePaymentOverwriteDataPUT
/billing/{tenantLocator}/payments/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Validate a Payment
Validate a Payment
validatePaymentPATCH
/billing/{tenantLocator}/payments/{locator}/validateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writePost a Payment
Post a Payment
postPaymentPATCH
/billing/{tenantLocator}/payments/{locator}/postParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeReverse a Posted Payment
Reverse a Posted Payment
reversePaymentPATCH
/billing/{tenantLocator}/payments/{locator}/reverseParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Request:
CreditDistributionReverseRequestResponse:
PaymentResponseSecurity Group:
paymentsPermission:
writeReset a Validated Payment Back to Draft State
Reset a Validated Payment Back to Draft State
resetPaymentPATCH
/billing/{tenantLocator}/payments/{locator}/resetParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeDiscard a Payment
Discard a Payment
discardPaymentPATCH
/billing/{tenantLocator}/payments/{locator}/discardParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeSet Payment Number
Set Payment Number
setPaymentNumberPOST
/billing/{tenantLocator}/payments/{locator}/number/setParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
paymentNumber | query | string | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeGenerate Payment Number
Generate Payment Number
generatePaymentNumberPOST
/billing/{tenantLocator}/payments/{locator}/number/generateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writePayment Requests
Execute Payment
Execute Payment
executePaymentPATCH
/billing/{tenantLocator}/payments/{locator}/requestParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeCancel Payment
Cancel Payment
cancelPaymentPATCH
/billing/{tenantLocator}/payments/{locator}/cancelParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeFail Payment
Fail Payment
failPaymentPATCH
/billing/{tenantLocator}/payments/{locator}/failParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentResponseSecurity Group:
paymentsPermission:
writeShortfall Credits
Fetch shortfall credits
Fetch shortfall credits
listShortfallCreditsGET
/billing/{tenantLocator}/payments/{locator}/shortfallCredits/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No |
Security Group:
paymentsPermissions:
read,listListPageResponseShortfallCreditResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | ShortfallCreditResponse[] |
ShortfallCreditResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
accountLocator | ulid | |
parentCreditLocator | ulid | |
currency | string | |
shortfallCreditState | Enum draft | distributed | reversed | |
amount | number | |
creditType | Enum creditDistribution | disbursement | payment | subpayment | shortfallWriteOff | writeOff | |
createdAt | datetime | |
createdBy | uuid | |
targets | CreditItem[] |
Optional properties
| Property | Type | Description |
|---|---|---|
reversalReason | string? |
Payments by invoice
Fetch Payments For An Invoice
Fetch Payments For An Invoice
fetchPaymentsForAnInvoiceGET
/billing/{tenantLocator}/invoices/{locator}/payments/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeReversed | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
PaymentListResponseSecurity Group:
invoicesPermissions:
read,listPaymentListResponse
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | PaymentResponse[] |
Fetch Invoices Targeted By APayment
Fetch Invoices Targeted By A Payment
fetchInvoicesTargetedByAPaymentGET
/billing/{tenantLocator}/payments/{locator}/invoices/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
includeReversed | query | boolean? | No | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No |
Response:
InvoiceListResponseSecurity Group:
paymentsPermissions:
read,listPayment Previews
Preview Payment Validation
Preview Payment Validation
previewPaymentValidateGET
/billing/{tenantLocator}/payments/{locator}/previewValidateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PreviewPaymentResponseSecurity Group:
paymentsPermission:
readPreview Payment Post
Preview Payment Post
previewPaymentPostGET
/billing/{tenantLocator}/payments/{locator}/previewPostParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PreviewPaymentResponseSecurity Group:
paymentsPermission:
readPreviewPaymentResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
currency | string | |
paymentState | Enum draft | validated | requested | executing | posted | failed | cancelled | reversed | discarded | |
amount | number | |
type | string | |
data | map<string, object> | |
createdAt | datetime | |
createdBy | uuid | |
credits | CreditWithBalance[] | |
shortfallCredits | ShortfallCreditPreviewResponse[] | |
targets | CreditItem[] |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? | |
aggregatePaymentLocator | ulid? | |
externalCashTransactionLocator | ulid? | |
invoices | ListPageResponseInvoicePaymentPreview? | |
paymentMode | Enum? normal | aggregate | |
postedAt | datetime? | |
remainingAmount | number? | |
validationResult | ValidationResult? | |
subpayments | PreviewPaymentResponse[]? |
CreditWithBalance
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
amount | number | |
type | Enum accountCreditBalance | invoiceCreditBalance | cash | creditCash | charge | credit | installmentItem | invoiceItem | account | policy | accountExpenseBalance |
ShortfallCreditPreviewResponse
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
accountLocator | ulid | |
currency | string | |
shortfallCreditState | Enum draft | distributed | reversed | |
amount | number | |
creditType | Enum creditDistribution | disbursement | payment | subpayment | shortfallWriteOff | writeOff | |
targets | CreditItem[] |
ListPageResponseInvoicePaymentPreview
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | InvoicePaymentPreview[] |
InvoicePaymentPreview
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
accountLocator | ulid | |
invoiceState | Enum open | settled | discarded |
Optional properties
| Property | Type | Description |
|---|---|---|
amount | number? | |
remainingAmount | number? |