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 Acess-Token

Access-Token là mã truy cập do được khởi tạo từ Auth Code, để có thể truy cập dữ liệu của bạn trên hệ thống của Casso.

Get access token

POST https://oauth.casso.vn/v1/token

Endpoint này dùng để lấy access token.

Request Body

Name
Type
Description

code

string

API Key

{
    "refresh_token": "Refresh token",
    "access_token": "Access token",
    "expires_in": "Số giây access token hết hạn, mặc định là 21600 = 6 tiếng"
}
{
    "error": 401,
    "message": "Unauthorized Access",
    "data": null
}
curl --location --request POST 'http://oauth.casso.vn/v1/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "API Key"
}'

PreviousChange logNextAPI lấy thông tin user

Last updated 3 years ago

Was this helpful?