Create refund

📘

API Refs

This endpoint creates a refund for a specific policyholder.

The policyholder is emailed a collect-payment link. The email follows the same rules as the Send pending payment endpoint: an invitation is always sent when no account exists for the email address. When an account exists, the email is sent only if payment emails are on for that policyholder, and never to one created through the API who has not yet registered an account.

Request body

NameTypeDescriptionRequired
policyholderIdnumberID of the policyholder receiving the refundyes
amountnumberThe amount to be refundedyes
memostringA short description for the refundno

Response

The response will include the details of the created refund, including its status.

NameTypeDescription
idnumberUnique refund identifier
policyholderIdnumberID of the policyholder
amountnumberRefund amount
memostringRefund memo
statusobjectCurrent status of the refund
createdAtstringDate of creation (ISO 8601)
policyholderobjectPolicyholder details

Example

{
  "policyholderId": 123,
  "amount": 100.00,
  "memo": "Refund for policy cancellation"
}

Did this page help you?