Convert a quote to an order
POST/v1/quotes/accept
Create an order from a quotation
Request
- application/json
Body
ref stringrequired
The ref of the quotation to convert to order
asset_ref string
Meta field for this order. Will be included in webhooks
customer_ref string
the ref of the customer who owns this order, this would have been supplied when creating the customer
policy_start_date date
the start date of the intended policy coverage
payment_type string
Possible values: [wallet
, web_link
, card
]
Default value: wallet
How you would like to pay for the product.
attachments integer[]
Upload a valid driver's license
child_partner_id string
The child partner key to create the order for the child partner
Responses
- 200
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
order object
id integer
asset_ref string
product_price float
partner_commission float
amount_due float
currency string
payment_instructions object
message string
success boolean
payment_gateway_charge float
{
"order": {
"id": 23,
"asset_ref": "rwt345",
"product_price": 1200.89,
"partner_commission": 20.76,
"amount_due": 1180.13,
"currency": "NGN",
"payment_instructions": {
"message": "Payment successful",
"success": true
},
"payment_gateway_charge": null
}
}
Unprocessable Content
- application/json
- Schema
- Example (from schema)
Schema
message string
errors object
ref string[]
customer_ref string[]
... string[]
{
"message": "The given data was invalid",
"errors": {
"ref": [
"The ref field is required"
],
"customer_ref": [
"The selected customer ref is invalid"
],
"...": [
"..."
]
}
}
Loading...