Payments API
Endpoint Index
Action | Endpoint |
---|---|
Fetch a payment | GET /payments/{paymentLocator} |
Reverse a payment | POST /payments/{paymentLocator}/reverse |
Create a payment | POST /payments |
Update a payment | PATCH /payments/{paymentLocator} |
Fetch payments | GET /payments |
Details
GET /payments/{paymentLocator}
Name | Position | Type | Required |
---|---|---|---|
paymentLocator | path | string | required |
requiredlocator stringdisplayId stringfieldValues map<string,[string]>amount numbermediaByLocator map<string,Media>optionalpolicyholderLocator stringpolicyLocator stringstate string draft | ready | posted | declined | returned | discardedcreatedTimestamp timestampupdatedTimestamp timestamppostedTimestamp timestampreversedTimestamp timestampamountCurrency stringinvoiceLocator string
Note
Some optional fields, such as state
, pertain to Cash Management and will only appear if Cash Management is enabled.
Payments assigned to Premium Reporting invoices will not be returned by this endpoint. To view the details of such payments, fetch the PremiumReportResponse, which will include PremiumReportingPaymentResponse details on the payments
property of invoice
.
POST /payments/{paymentLocator}/reverse
Name | Position | Type | Required |
---|---|---|---|
invoicePaymentReversalRequest | body | InvoicePaymentReversalRequest | optional |
paymentLocator | path | string | required |
optionalname stringdetails string
Note
InvoicePaymentReversalRequest is only available when Cash Management is enabled.
When an endorsement or renewal has a paid invoice and is then invalidated, the payment for that invoice will automatically be reversed.
Note
When a payment is reversed, if the invoice due date is in the past, it will have the due date reset to the end of the current day. This prevents the policy from becoming delinquent without the opportunity to reapply a payment.
Cash Management-Enabled Endpoints
The following endpoints are available to manage payments as independent objects when Cash Management is enabled.
POST /payments
Name | Position | Type | Required |
---|---|---|---|
paymentCreateRequest | body | PaymentCreateRequest | required |
requiredamount numberoptionalpolicyholderLocator stringpolicyLocator stringfieldValues map<string,[string]>amountCurrency string
PATCH /payments/{paymentLocator}
Name | Position | Type | Required |
---|---|---|---|
paymentActionRequest | body | PaymentActionRequest | required |
paymentLocator | path | string | required |
optionalaction string draft | ready | decline | return | discardpaymentUpdate PaymentUpdateRequest
GET /payments
Name | Position | Type | Required |
---|---|---|---|
createdBeforeTimestamp | query | timestamp | optional |
invoiceLocator | query | string | optional |
pageSize | query | integer | optional |
pagingToken | query | string | optional |
policyholderLocator | query | string | optional |
policyLocator | query | string | optional |
postedAfterTimestamp | query | timestamp | optional |
state | query | string | optional |
requiredpayments [PaymentResponse]optionalpagingToken string