Skip to content

nintc-al2020-4/electronic-payment-api

Repository files navigation

FORMAT: 1A

電子決済API

Group Users

ログイン [/login]

トークン取得 [POST]

  • Request (application/json)

  • Responce 200 (application/json)

    • Body
      {
        "token": "Base64"
      }
  • Responce 400 (application/json)

    • Body
      {
        "error": "Invalid format"
      }
  • Responce 401 (application/json)

    • Body
      {
        "error": "Email or password is wrong."
      }

ログアウト [/logout]

トークン破棄 [DELETE]

  • Request

    • Headers
      Authorization: Token xxxx
      
  • Responce 204

  • Responce 401 (application/json)

    • Body
      {
        "error": "Invalid token"
      }

口座オブジェクト [/wallet]

データ取得 [GET]

  • Request

    • Headers
      Authorization: Token xxxx
      
  • Responce 200 (application/json)

    • Body
      {
        "balance": 0
      }
  • Responce 401 (application/json)

    • Body
      {
        "error": "Invalid token"
      }

支払いトークン [/payment_token]

トークン取得 [GET]

  • Request

    • Headers
      Authorization: Token xxxx
      
  • Responce 200 (application/json)

    • Body
      {
        "token": "Base64"
      }
  • Responce 401 (application/json)

    • Body
      {
        "error": "Invalid token"
      }

Group Process

チャージ [/refills]

チャージ履歴取得 [GET]

  • Request

    • Headers
      Authorization: Token xxxx
      
  • Responce 200 (application/json)

    • Body
      [
        {
          "amount": 0,
          "time": "YYYY-MM-DDThh:mm:ss+09:00"
        }
      ]

チャージ [POST]

  • Request (application/json)

    • Headers
      Authorization: Token xxxx
      
    • Body
      {
       "amount": 0
      }
  • Responce 204

  • Responce 400 (application/json)

    • Body
      {
        "error": "Invalid format"
      }
  • Responce 400 (application/json)

    • Body
      {
        "error": "Error Message"
      }
  • Responce 401 (application/json)

    • Body
      {
        "error": "Invalid token"
      }

支払い [/payments]

支払履歴取得 [GET]

  • Request

    • Headers
      Authorization: Token xxxx
      
  • Responce 200 (application/json)

    • Body
      [
        {
          "amount": 0,
          "time": "YYYY-MM-DDThh:mm:ss+09:00"
        }
      ]
  • Responce 401 (application/json)

    • Body
      {
        "error": "Invalid token"
      }

支払データ作成 [POST]

  • Request (application/json)

    • Body
      {
       "amount": 0,
       "token": "Base64"
      }
  • Responce 204

  • Responce 400 (application/json)

    • Body
      {
        "error": "Invalid format"
      }
  • Responce 400 (application/json)

    • Body
      {
        "error": "Error Message"
      }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages