Casso Developer
v1
v1
  • Tổng quan
  • Webhook
    • Thiết lập Webhook thủ công
    • Lập trình xử lý sự kiện Webhook
  • API KEY
    • Tạo API Key thủ công
  • OAuth 2
    • Tích hợp OAuth2
  • Thực hành
    • Tích hợp xác nhận thanh toán
  • Change log
    • Change log
  • Danh sách API
    • API lấy Acess-Token
    • API lấy thông tin user
    • API thiết lập webhook
    • API tải thông tin giao dịch
    • API check giao dịch mới
  • Tài nguyên khác
    • Tài khoản ngân hàng Demo
Powered by GitBook
On this page

Was this helpful?

  1. Danh sách API

API lấy thông tin user

Lấy thông tin user

GET https://oauth.casso.vn/v1/userInfo

Lấy chi tiết thông tin của user về bank và business

Headers

Name
Type
Description

Authorization

string

Access-Token

{
    "error": 0,
    "message": "success",
    "data": {
        "user": {
            "id": 1553,
            "email": "haonh@magik.vn"
        },
        "business": {
            "id": 1540,
            "name": "Hữu Hảo"
        },
        "bankAccs": [
            {
                "id": 69,
                "bank": {
                    "bin": 970416,
                    "codeName": "acb_digi"
                },
                "bankAccountName": null,
                "bankSubAccId": "17271687",
                "connectStatus": 1,
                "planStatus": 1
            },
            {
                "id": 63,
                "bank": {
                    "bin": 970454,
                    "codeName": "timoplus"
                },
                "bankAccountName": null,
                "bankSubAccId": "8007041023848",
                "connectStatus": 1,
                "planStatus": 0
            }
        ]
    }
}
{
    "error": 401,
    "message": "Unauthorized Access",
    "data": null
}
curl --location --request GET 'https://oauth.casso.vn/v1/userInfo \
--header 'Authorization: Access token'
PreviousAPI lấy Acess-TokenNextAPI thiết lập webhook

Last updated 3 years ago

Was this helpful?