VM_API
    English
    • 简体中文
    • English
    • Integration Guide
    • Environment Configuration
    • Global Error Codes
    • Transaction Type Description
    • Card Status Description
    • VM Card operation V1 (only for accounts with a merchant public key configured before 2026-10-30)
      • Webhook Signature Verification
      • Get Account Balance
        POST
      • Get Card Product Code
        POST
      • Apply for Card
        POST
      • Card Details
        POST
      • Modify Card Limit(For credit line cards only)
        POST
      • Freeze/Unfreeze Card
        POST
      • Card Top-up(For prepaid cards only)
        POST
      • Card Refund(For prepaid cards only)
        POST
      • Transaction Records
        POST
      • Delete Card
        POST
      • Card List
        POST
      • Card Flow
        POST
    • VM Card operation V2 (available to all accounts, recommended)
      • Get Account Balance
        POST
      • Get Card Product Code
        POST
      • Apply for Card
        POST
      • Card Details
        POST
      • Modify Card Limit(For credit line cards only)
        POST
      • Freeze/Unfreeze Card
        POST
      • Card Top-up(For prepaid cards only)
        POST
      • Card Refund(For prepaid cards only)
        POST
      • Transaction Records
        POST
      • Delete Card
        POST
      • Card List
        POST
      • Card Flow
        POST
    • Notification
      • WebHook
      • Card 3DS Notification
    • Change Log
      • Change Log
    • FAQ
      • FAQ
    • Get accessToken
      GET
    • 数据模型
      • 示例数据模型
        • Pet
        • Category
        • Tag

      Get accessToken

      GET
      /getAccessToken
      最后修改时间:2026-11-04 08:36:02
      This page shows request parameters before encryption and response data after decryption. For v1, the actual request must be encrypted with the VM public key and placed in {"content": "ciphertext"} as described in the Integration Guide, and the returned data must be decrypted with the merchant private key.
      Get accessToken
      The returned token is valid for 7200 seconds; it is recommended to obtain a new one 600 seconds in advance. When calling other APIs, put the token directly in the Authorization request header, without Bearer.

      请求参数

      Query 参数

      返回响应

      🟢200成功
      application/json
      Bodyapplication/json

      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location 'https://sandbox-api.vmcardio.com/getAccessToken?app_id=&app_secret='
      响应示例响应示例
      {
          "code": 0,
          "msg": "ok",
          "data": {
              "token": "fb6688dd-fe87-43e8-8ef4-8ddbd964d082",
              "expired_time": 1749094592
          }
      }
      修改于 2026-11-04 08:36:02
      上一页
      FAQ
      下一页
      Pet
      Built with