Skip to main content

Generate a token

Generate a token or a refresh token

Request Body
  • grant_type string required

    Possible values: [authorization_code, refresh_token]

    The grant type used for obtaining an access token.

  • client_id string required

    The client ID of your application that was generated when you <a href="https://developer.sumup.com/docs/register-app">registered it</a>.

  • client_secret string required

    The client secret of your application that was generated when you <a href="https://developer.sumup.com/docs/register-app">registered it</a>.

  • code string required

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

  • 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.

  • tokent_type string

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

  • 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.