Confirm Order

V1

post /insurance/marine/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
Payment Reference
Name Type Required Description
currency_code string Required Currency code

Max length: 3

The currentcy code that represented by the following options:

For options refer to Currency

amount string Required Payment amount in the transaction
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

Example request
{
  "trans_no": "AXA:ZtGtGcIh9GEXOoSqNrBIt0Lh42dH",
  "payment": {
    "currency_code": "THB",
    "amount": 4863.15,
    "payment_date": "2024-09-10",
    "payment_ref": "-",
    "user_ref1": "-",
    "user_ref2": "-"
  },
  "transaction_by": "6d4150f2-a5f4-4586-a10b-08dcb5bef2d4"
}
Response
Name Type Description
trans_no string Unique string the client made the request
status string Order status
  • Pending
  • Issued
message string
order_id string Unique Order id
policies array[object] Array of Policy
Policy Reference
Name Type Description
policy_id guid Unique Policy id
policy_no string Unique Policy number
policy_type string Type of policy
downloads array[object] Array of Download
Download Reference
Name Type Description
type string Type of download
  • Schedule
  • Receipt
  • OpenCover
layer string Type of layer
  • Original
  • Copy
  • Draft
link string Hyperlink points to a whole document
Example response
{
    "trans_no": "AXA:ZtGtGcIh9GEXOoSqNrBIt0Lh42dH",
    "status": "Issued",
    "message": "",
    "order_id": "e49a7aba-b2f5-46cd-adc2-22e5deb41252",
    "policies": [
        {
            "policy_id": "6dae5367-d68b-4413-975a-5cbfc5a1240a",
            "policy_no": "S1101519",
            "policy_type": "MCX",
            "downloads": [
                {
                    "type": "Receipt",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/fcfcf5977ca2438887e5f75192cc3cdd"
                },
                {
                    "type": "Policy Schedule",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/15e2d962ea4b4bf0a64d72f66a31d6b2"
                },
                {
                    "type": "Clause",
                    "layer": "Original",
                    "link": "https://uatapiconnect.axa.co.th/report/4c3497371f0042b4a0b5299e2c234fc0"
                }
            ]
        }
    ]
}