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
{
    "trans_no": "AXA-22-000120",
    "payment": {
        "source": "TCTP",
        "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",
    "policies": [
        {
            "policy_id": "d6fe1816-d847-4563-8a95-38fcb085276c",
            "policy_no": "P5000166",
            "policy_type": "Compulsory",
            "package": "Compulsory",
            "downloads": [
                {
                    "type": "Schedule",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/d312af4ae978432596ed1b3931be74c8",
                    "header": true
                },
                {
                    "type": "Taxinvoice",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/d1b756345d6c4dcfb3268ca79d09b3b7",
                    "header": true
                },
                {
                    "type": "Schedule",
                    "layer": "Copy",
                    "link": "https://uatapiconnect.axa.co.th/report/b89742e607cd4763ab5f571ddb843078",
                    "header": true
                },
                {
                    "type": "Taxinvoice",
                    "layer": "Copy",
                    "link": "https://uatapiconnect.axa.co.th/report/3a89d7e3e51d4a8f8f43d67ad8f7c3d5",
                    "header": true
                },
                {
                    "type": "PolicyWording",
                    "layer": "Original",
                    "link": "https://uatconnect.axa.co.th/downloads/EUKEGKXPJGXYCYL",
                    "header": true
                }
            ],
            "links": [
                {
                    "href": "https://uatapiconnect.axa.co.th/insurance/motor/v3/policies/d6fe1816-d847-4563-8a95-38fcb085276c/cancel?hash=Oi7xpnY7BGRdJyCiC9WIaoFRDkndM165",
                    "rel": "cancel_policy",
                    "method": "PUT"
                }
            ]
        }
    ]
}
Policy Reference
Name Type Description
policy_id guid Policy id
policy_no string Policy number
policy_type string Type of policy
  • Compulsory
  • Voluntary
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
  • Schedule
  • Taxinvoice
  • KnockForKnock
layer string Type of layer
  • Original
  • Copy
link string Hyperlink points to a whole document
header bool With document header
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