Transaction Details

This endpoint returns order transaction details

Resource URL

POST http://api.qa.optty.com/orders/{MERCHANT-REFERENCE}/details?merchantId={MERCHANT-ID}

For live environment, please update the endpoint to https://api.optty.com

Headers

Parameters

Grand Parent/Parent Request Parameters

Merchant Request Parameters

Success Response Parameters

Sample Success Response

{
    "merchantReference": "PLANPAY-0000-760-729",
    "status": "SUCCESSFUL",
    "amount": "260",
    "currency": "AUD",
    "provider": "PLANPAY_AU",
    "updatedAt": "2024-02-28T05:30:56.096Z",
    "failureReason": null,
    "bnplOrderId": "zfh1r58g7lqx",
    "transactionReference": "6d5af829b5",
    "transactionHistory": [
        {
            "transactionId": "4763fb55-728c-43ef-9008-ed5568ea9f88",
            "status": "INITIATED",
            "createdAt": "2024-02-28T05:27:31.170Z"
        },
        {
            "transactionId": "3df88423-0cb0-4259-8876-62b311f837ff",
            "status": "PENDING",
            "createdAt": "2024-02-28T05:27:32.663Z"
        },
        {
            "transactionId": "e9f42b19-3d57-4e8e-920f-068d7f90c6b0",
            "status": "SUCCESSFUL",
            "createdAt": "2024-02-28T05:30:56.096Z"
        }
    ],
    "refunds": [
        {
            "refundId": "PLANPAY-0000-760-729",
            "amount": "240",
            "currency": "AUD",
            "status": "SUCCESSFUL",
            "createdAt": "2024-02-28T05:38:18.438Z",
            "refundReason": "300 Refund",
            "refundFailureReason": ""
        }
    ],
    "orderCaptures": [
        {
            "captureId": "CAPTURE_789",
            "amount": "120",
            "status": "SUCCESSFUL",
            "createdAt": "2024-02-29T05:38:18.438Z",
        }
    ]
}

Sample Failure Response

{
    "statusCode": 401,
    "message": "You are not authorized to view this transaction...!",
    "error": "Unauthorized"
}

Last updated