Skip to main content
Version: Lastest

API Detail Transaction

Endpoint: /api/v2/partner/orders/transaction/:partner_ref_id

Method: GET

Header: How to generate a JWT_TOKEN

{
"X-APPOTAPAY-AUTH": "JWT_TOKEN",
"X-Request-Id": "Your_Unique_id",
"Content-Type": "application/json"
}

Request params

ParameterRequirementData typesDescription
partner_ref_idrequiredStringPartner reference transaction ID

Response Params

Success

Http Status Code 200 - OK

ParameterData typesDescriptionNotes
transaction_idStringAppotaPay transaction ID
order_idStringOrder ID
statusStringTransaction status

pending = The transaction is pending.

processing = The transaction is being processed.

success = The transaction is successful.

error = The transaction has failed.

void = The transaction has been refunded.

amountIntegerPayment amount
error_codeIntegerTransaction error code (Note: returned only if status != success)
error_messageStringTransaction status details (Note: returned only if status != success)
payment_methodStringPayment methods
created_atStringTransaction creation time (ISO 8601 format)
paid_atStringTransaction payment time (ISO 8601 format)

Failure

HTTP Status Code != 200

ParameterData typesDescription
error_codeStringError code
error_messageStringError code description

Example

Response

{
"order_id": "586205440621461504",
"transaction_id": "01K9SPCC1PGFT23E797EWC2K6R",
"payment_method": "POS",
"amount": 10000,
"status": "success",
"error_code": "00",
"error_message": "Giao dịch thành công",
"created_at": "2025-11-11T21:51:08",
"paid_at": "2025-11-11T21:51:30"
}

Code Example

curl --location 'https://pos-gw.dev.appotapay.com/api/v2/partner/orders/transaction/:partner_ref_id' \
--header 'X-APPOTAPAY-AUTH: JWT_TOKEN' \
--header 'X-Request-Id: UUID' \
--header 'Content-Type: application/json'

Request

REQUEST

Development server