Payments API
Endpoint Index
| 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 |
| 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 |
Fetch
GET /billing/{tenantLocator}/payments/{locator}Request Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:read
GET /billing/{tenantLocator}/payments/listRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| offset | query | int? | optional |
| count | query | int? | optional |
| accountLocator | query | string? | optional |
| targetContainerLocator | query | string? | optional |
| extended | query | boolean? | optional |
Response:ListPageResponsePaymentResponse
Security Group:payments  Permissions:read,list
GET /billing/{tenantLocator}/payments/{locator}/subpayments/listRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
| offset | query | int? | optional |
| count | query | int? | optional |
Response:ListPageResponsePaymentResponse
Security Group:payments  Permissions:read,list
GET /billing/{tenantLocator}/payments/numbers/{paymentNumber}Request Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| paymentNumber | path | string | required |
Response:PaymentResponse[]
Security Group:payments  Permissions:read,list
ListPageResponsePaymentResponse
¶requiredlistCompleted booleanitems PaymentResponse[]
PaymentResponse
¶requiredlocator stringcurrency stringpaymentState Enum cancelled | discarded | draft | executing | failed | posted | requested | reversed | validatedamount numbertype stringcreatedAt datetimecreatedBy uuidexecutionLog PaymentRequestExecutionLogItem[]shortfallCreditLocators string[]subpayments SubpaymentResponse[]targets CreditItem[]optionalaccountLocator string?aggregatePaymentLocator string?externalCashTransactionLocator string?retryPlanName string?anonymizedAt datetime?nextRequestTime datetime?paymentMode Enum? aggregate | normalpaymentNumber string?postedAt datetime?remainingAmount number?reversalReason string?reversedAt datetime?reversedBy uuid?validationResult ValidationResult?data map<string,object>?
SubpaymentResponse
¶requiredsubpaymentLocator stringamount number
CreditItem
¶requiredcontainerLocator stringcontainerType Enum account | invoice | invoiceItem | subpaymentoptionalamount number?
PaymentRequestExecutionLogItem
¶requiredpaymentRequestLocator stringpaymentRequestState Enum completed | error | failed | pendingdata map<string,object>optionalnote string?requestTime datetime?transactionId string?
Create and Update
POST /billing/{tenantLocator}/paymentsRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
Request:PaymentCreateRequest
Response:PaymentResponse
Security Group:payments  Permission:write
PaymentCreateRequest
¶requiredamount numbertype stringdata map<string,object>targets CreditItem[]optionalaccountLocator string?financialInstrumentLocator string?retryPlanName string?currency string?paymentMode Enum? aggregate | normaltransactionMethod Enum? ach | cash | eft | standard | wiretransactionNumber string?useDefaultFinancialInstrument boolean?
PATCH /billing/{tenantLocator}/payments/{locator}Request Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Request:PaymentUpdateRequest
Response:PaymentResponse
Security Group:payments  Permission:write
PaymentUpdateRequest
¶requiredaddTargets CreditItem[]removeData map<string,object>removeTargets string[]setData map<string,object>optionalaccountLocator string?financialInstrumentLocator string?retryPlanName string?currency string?amount number?nextRequestTime datetime?paymentMode Enum? aggregate | normaltransactionMethod Enum? ach | cash | eft | standard | wiretransactionNumber string?type string?useDefaultFinancialInstrument boolean?
PUT /billing/{tenantLocator}/payments/{locator}Request Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Request:PaymentCreateRequest
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/validateRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/postRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/reverseRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Request:CreditDistributionReverseRequest
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/resetRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/discardRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
POST /billing/{tenantLocator}/payments/{locator}/number/setRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
| paymentNumber | query | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
Payment Requests
PATCH /billing/{tenantLocator}/payments/{locator}/requestRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/cancelRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
PATCH /billing/{tenantLocator}/payments/{locator}/failRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
Response:PaymentResponse
Security Group:payments  Permission:write
Shortfall Credits
GET /billing/{tenantLocator}/payments/{locator}/shortfallCredits/listRequest Parameters:
| Name | Position | Type | Required |
|---|---|---|---|
| tenantLocator | path | uuid | required |
| locator | path | string | required |
| offset | query | int? | optional |
| count | query | int? | optional |
Security Group:payments  Permissions:read,list
ListPageResponseShortfallCreditResponse
¶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?
Payments by invoice
GET /billing/{tenantLocator}/invoices/{locator}/payments/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:PaymentListResponse
Security Group:invoices  Permissions:read,list
PaymentListResponse
¶requiredlistCompleted booleanitems PaymentResponse[]
GET /billing/{tenantLocator}/payments/{locator}/invoices/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:InvoiceListResponse
Security Group:payments  Permissions:read,list