List credit notes
GET/v1/credit-notes
This endpoint allows you to retrieve a list of created credit notes.
Request
Query Parameters
Default value: 1
The page of results
Default value: 15
Maximum Number of results per page
Possible values: [pending
, active
]
Filter the credit notes returned by its status.
Filter the credit notes returned by insurer.
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]
The unique identifier for credit note
Current status of the policy
The credit note premium
Date when premium will be due
Date of creation
customer object
The the customer's information
Unique identifier for the customer on your system
The customer's email address
insurer object
An insurance provider
The unique code of the insurer
The name of the insurer
A link to the Insurer's logo
Insurer's terms and conditions
product object
An individual insurance product or plan
The name of the product
The unique identifier for technical purposes
Unique Id of the product.
insurer object
An insurance provider
The unique code of the insurer
The name of the insurer
A link to the Insurer's logo
Insurer's terms and conditions
product type object
A major category of insurance e.g Health, Automobile, Life, Gadget, Goods in transit, etc
The generally accepted human friendly name
The unique identifier for technical purposes
list of the nefits covered.
Date of product creation
Price of product
Define the product premium tier.
Possible values: [monthly
, quarterly
, annually
]
Default value: annually
links object
{
"data": [
{
"code": "CN-34243TF",
"status": "active",
"premium": 800000,
"premium_due_date": "2022-03-24",
"current_date": "2022-03-24",
"customer": {
"ref": "string",
"email": "string",
"phone": "408-867-5309",
"first_name": "Jane",
"last_name": "Doe"
},
"insurer": {
"code": "AXA",
"name": "Axa Mansard",
"logo_url": null,
"terms_conditions": null
},
"product": {
"title": "Comprehensive Car Plan XYZ",
"code": "auto-com-xyz",
"id": 1,
"insurer": {
"code": "AXA",
"name": "Axa Mansard",
"logo_url": null,
"terms_conditions": null
},
"product type": {
"name": "Goods in Transit",
"slug": "GIT"
},
"cover-benefits": {},
"created-at": "string",
"price": 0,
"premium-type": "string",
"premium-rate-unit": 0,
"premium-rate": 0,
"premium": 0,
"partner-commision-rate": 0,
"min-premium": "string",
"premium-rules": "string",
"premium_frequency": "annually"
}
}
],
"links": {
"first": "https://api.grow.curacel.co/credit-notes?page=1",
"last": "https://api.grow.curacel.co/credit-notes?page=3",
"prev": "https://api.grow.curacel.co/credit-notes?page=1",
"next": "https://api.grow.curacel.co/credit-notes?page=2"
}
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "400 Bad Request (Client Error)"
}