Skip to main content

Generate a token

Generate a token or a refresh token

Request Body
  • client_id string required

    The client ID of your application that was generated when you registered it.

  • client_secret string required

    The client secret of your application that was generated when you registered it.

  • code string required

    The authorization code that you received from requesting an authorization code.

  • grant_type string required

    Possible values: [authorization_code, refresh_token]

    The grant type used for obtaining an access token.

  • refresh_token string

    A required parameter when generating a refresh token.

Responses

OK


Schema
  • access_token string

    The access token that you need to use in your requests to the SumUp API.

  • expires_in integer

    The validity of the access token in seconds.

  • refresh_token string

    The refresh token provided in the request call

  • scope string

    List of authorization scopes granted to your access token.

  • token_type string

    The type of the token. The value is always Bearer.