Confirm Order

V1

post /insurance/travel/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
{
    "trans_no": "AXA-22-000120",
    "payment": {
        "source": "2C2P",
        "merchant_id": "296282651724324",
        "currency_code": "THB",
        "amount": 6945.37,
        "payment_date": "2022-08-24",
        "transaction_ref": "7623714234",
        "payment_ref": "PO-000000001",
        "user_ref1": "",
        "user_ref2": "",
        "user_ref3": "",
        "user_ref4": "",
        "user_ref5": ""
    },
    "transaction_by": "8C890CB2-9FAD-4953-BCC7-E54B9ACE827C"
}
Response
Name Type Description
trans_no string Unique string the client made the request
status string Order status
  • Created
message string
order_id string Unique Order id
policies array[object] Array of Policy
Example response
{
    "trans_no": "AXA-22-000246",
    "status": "Created",
    "message": "",
    "order_id": "4e762df1-3bb5-40ec-3565-08qa439ae0fd",
    "net_premium": 348.49,
    "discount": 0.00,
    "stamp": 2,
    "vat": 0,
    "total_premium": 375.02,
    "policies": [
        {
            "policy_id": "d6fe1816-d847-4563-8a95-38fcb085276c",
            "policy_no": "Q61000001",
            "net_premium": 348.49,
            "discount": 0.00,
            "stamp": 2,
            "vat": 0,
            "total_premium": 375.02,
            "policy_holder": {
                "name": "Partner Test",
                "address": "1168 Lumpini Tower ช้างม่อย, เมืองเชียงใหม่, เชียงใหม่, 50300",
                "branch": "",
                "passport_no": "uuV7kfViKGpPxbG",
                "tax_id": "",
                "email": ""
            },
            "traveller": {
                "name": "Partner Test",
                "address": "1168 Lumpini Tower ช้างม่อย, เมืองเชียงใหม่, เชียงใหม่, 5030",
                "passport_no": "uuV7kfViKGpPxbG",
                "tax_id": "",
                "birth_date": "1986-01-01",
                "email": ""
            },
            "downloads": [
                {
                    "type": "Schedule",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/d312af4ae978432596ed1b3931be74c8"
                },
                {
                    "type": "Taxinvoice",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/d1b756345d6c4dcfb3268ca79d09b3b7"
                },
                {
                    "type": "PolicyWording",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/5d99a4841cd7493ca0328ecfd3194ffe"
                },
                {
                    "type": "Schedule",
                    "layer": "Copy",
                    "link": "https://uatapiconnect.axa.co.th/report/b89742e607cd4763ab5f571ddb843078"
                },
                {
                    "type": "Taxinvoice",
                    "layer": "Copy",
                    "link": "https://uatapiconnect.axa.co.th/report/3a89d7e3e51d4a8f8f43d67ad8f7c3d5"
                }
            ],
            "links": []
        }
    ]
}
Policy Reference
Name Type Description
policy_id guid Policy id
policy_no string Policy number
policy_holder object Json object containing details of the Policy Holder
traveller object Json object containing details of the Traveller
downloads array [object] Json array object containing details of the Download
links array [object] Json array object containing details of the Link
Download Reference
Name Type Description
type string Type of download
  • Schedule
  • Taxinvoice
  • PolicyWording
layer string Type of layer
  • Original
  • Copy
link string Hyperlink points to a whole document
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

Format: yyyy-mm-dd

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