Login

  • OAuth Authentication
  • PUT Token

Update the token

This method allows you to update the expiration time of a token associated with your account.

Resource

  • Production environment: https://oauth.altravia.com/token/"token"
  • Testing environment: https://test.oauth.altravia.com/token/"token"

Parameters

Property name Type Description
expire int Time in seconds you want to extend the deadline.

Request examples

Response

Response Format

If successful, the response header HTTP status code will be 200 OK and the request will be answered.

If you try to get a request without authorization, you will receive an error 401 Unauthorized.

Additionally you should also handle the 400 Bad request status. For more info on HTTP status handling see dedicated section in Integration best practices page.

Request Response

Parameter Type Description
data TokenResponseDetails Array of token objects, one object per every token.
success boolean True or false.
message string Contains error or success messages.
error int Contains the encoding of the error or NULL if successful.

Token Response Details

Parameter Type Description
scopes array List of scopes associated with the token.
expire int Token expiration time.
token string Tokens associated with the scopes.