SkyJoy
HomeDocs
  • 👋Welcome to SkyJoy
  • GETTING STARTED
    • Introduction
    • Ground rules for API
    • Authentication
    • Error handling
  • DEVELOPMENT PROCESS
    • Integration model
    • Batch
  • API REFERENCE
    • Authentication
    • Customer
    • Point
    • Transaction
  • WEBHOOK
    • Partner Integration
  • SINGLE SIGN-ON (SSO)
    • iFrame
    • Regular Web App
    • Single Page App
  • VERSION HISTORY
    • Document changelog
Powered by GitBook
On this page
  • Summary
  • Methods
  • Lookup Transaction

Was this helpful?

  1. API REFERENCE

Transaction

Point APIs reference

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 ID of the transaction to look up.

{
    "statusCode": 200,
    "message": "SUCCESS",
    "data": {
        "transactionPoint": 2,
        "transactionAmount": 152123,
        "transactionSource": "SkyJoy",
        "bitReference": "3GRHDIS7ILEZL2QN6RUHG09WF4",
        "transactionType": "ACCRUAL",
        "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"
    }
}
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'

Last updated 1 year ago

Was this helpful?