Confirm Order
V1
post /insurance/motor/v1/orders/{order_id}/confirm
This endpoint to confirm order.
Request Header
Name | Type | Required | Description |
---|---|---|---|
authorization | string | Required | Bearer token |
content-type | string | Required | application/json |
Request Body
Name | Type | Required | Description |
---|---|---|---|
trans_no | string | Required | Unique string that the client can create to track the current request call. |
order_id | guid | Required | The order id |
payment | object | Optional | Json object containing details of the Payment |
transaction_by | guid | Required | Globally unique identifier value of the user id Provided by AXA |
Example request
Response
Name | Type | Description |
---|---|---|
trans_no | string | Unique string the client made the request |
status | string |
Order status
|
message | string | |
order_id | string | Unique Order id |
policies | array[object] | Array of Policy |
Example response
Policy Reference
Name | Type | Description |
---|---|---|
policy_id | guid | Policy id |
policy_no | string | Policy number |
policy_type | string |
Type of policy
|
package | string | Package name |
downloads | array[object] | Array of Download |
links | array[object] | Array of Link |
Download Reference
Name | Type | Description |
---|---|---|
type | string |
Type of download
|
layer | string |
Type of layer
|
link | string | Hyperlink points to a whole document |
header | bool | With document header |
Link Reference
Name | Type | Description |
---|---|---|
method | string |
HTTP method
e.g. GET, PUT, POST |
rel | string |
Used to describe the action of a link
e.g. cancel_policy |
href | string | Endpoint to take action |
Payment Reference
Name | Type | Required | Description |
---|---|---|---|
source | string | Required | Payment source
Max length: 50 |
merchant_id | string | Required |
Merchant ID of the merchant for the full amount payment
Max length: 50 |
currency_code | string | Required | Currency code
Max length: 3 |
amount | string | Required | Payment amount in the transaction |
transaction_ref | string | Required |
Transaction reference id from payment gateway
Max length: 50 |
payment_date | date | Required | Timestamp of when the payment was created |
payment_ref | string | Required |
Payment reference id between Payment Gateway and AXA
Max length: 50 |
user_ref1 | string | Optional |
Any value that was defined by user
Max length: 50 |
user_ref2 | string | Optional |
Any value that was defined by user
Max length: 50 |
user_ref3 | string | Optional |
Any value that was defined by user
Max length: 50 |
user_ref4 | string | Optional |
Any value that was defined by user
Max length: 50 |
user_ref5 | string | Optional |
Any value that was defined by user
Max length: 50 |