Skip to main content

Transaction

View purchases and renewal made by your client. Transaction involves the purchase, payment and renewal of policy.

Create Transactions

When clients pay a premium on an insurance policy, a transaction is created. To create a client's transaction, use the endpoint below.

POST /api/v1/client/transactions


Path param

authorization : *bearer
REQUEST BODY SCHEMA: application/json


NameDescriptionRequiredType
invoiceIdId of the invoice to be paid RequiredString
amountAmount paid in the currency of the invoice. If not provided, remaining invoice amount is used. number >= 0Not Requirednumber
chequeNoRequired if payment method is cheque. >=3 charactersNot Requiredstring
chequeTypeRequired if payment method is chequeNot RequiredString
chequeDateRequired if payment method is cheque. <date-time>Not Requiredstring
dateReceivedDate at which payment was received. If not provided, current date is be used.Not Requiredstring
exchangeRateCurrency exchange rate. If not provided, invoice exchange rate will be used. Default: 1Not Requiredstring
paymentMethodEnum: "ONLINE" "MOBILE_MONEY" "CASH" "CHEQUE" "BANK_TRANSFER" "UNSPECIFIED" RequiredString
transactionNoTransaction Number is automatically generated if not providedNot RequiredString
transactionTypeIf not provided, policy business type is used. Enum: "RENEWAL" "EXTENSION" "NEW_BUSINESS"Not Requiredstring

Response

CodeDescription
200Success
409Unauthorized.

Example Success Response

Content type
application/json

[
{
"dateReceived": "string",
"payee": "string",
"invoiceId": "62a8de63eeba455ddc20dccc",
"transactionType": "RENEWAL",
"transactionNo": "string",
"paymentInstitution": "string",
"description": "",
"amount": 0,
"exchangeRate": 1,
"currency": "GHC",
"chequeDate": "2019-08-24T14:15:22Z",
"nameOnCheque": "string",
"chequeNo": "string",
"chequeType": "string",
"files": [
{ }
],
"paymentMethod": "ONLINE"

}
]
...
]