Get a single credit note
GET/v1/credit-notes/:code
This endpoint allows you to retrieve a credit note by its unique code
Request
Path Parameters
The unique identifier for the credit note
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
Credit Note
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
{
"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"
}
}
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "400 Bad Request (Client Error)"
}