Transaction
Summary
Retrieve transaction information that updates the customer’s point balance
Methods
Lookup Transaction
POST https://api.skyjoy.vn/api-point/partner/v1/lookup-transaction-id
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | string | Bearer <YOUR_ACCESS_TOKEN> |
| Content-Type* | string | application/json |
Request Body
| Name | Type | Description |
|---|---|---|
| skyjoyId* | string | The Sky ID associated with the transaction. |
| bitReference* | string | The Skyjoy transaction id. Required if transactionId is not present |
| transactionId* | string | The Partner transaction id. Required if bitReference is not present |
json
{
"statusCode": 200,
"message": "SUCCESS",
"data": {
"transactionPoint": 2,
"transactionAmount": 152123,
"transactionSource": "SkyJoy",
"transactionType": "ACCRUAL",
"transactionId": "2311224800623618118460425",
"bitReference": "3GRHDIS7ILEZL2QN6RUHG09WF4",
"sponsor": "RentalCar",
"status": "SUCCESS",
"transactionTime": "2023-08-29T16:37:14+07:00",
"requestId": "1169cf86-6f96-4032-8912-e845fc302916",
"timestamp": "2023-09-12T02:04:02.179Z"
}
}sh
curl -X POST \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
-d '{"skyjoyId":"SJ5408563422","bitReference":"3GRHDIS7ILEZL2QN6RUHG09WF4"}' \
'https://api.skyjoy.vn/api-point/partner/v1/lookup-transaction-id'