CStoreOffice® Support & Learning

Refreshing API Authorization Data

API authorization data represents a token you need to generate using the credentials from your Petrosoft account. After a certain period of time the authorization token expires and you need to refresh it.

To refresh the authorization token:

  1. Go to the Authorization API by the following the link:
    https://api-docs.petrosoft.cloud/?service=device_gateway_proxy_service
  2. In the Authorization API page, expand the Auth section.

  3. In the Auth section, expand the Refresh token by related token identifier subsection.
  4. In the Refresh token by related token identifier subsection, click the Try it out button, to enable the Request body section for entering data.

  5. Copy the refresh token value received together with the authorization token. For more information, see Getting API Authorization Data.
  6. Go to the Request body section and copy the refresh token into the refresh_token field.
  7. Click Execute.

  8. Go to the Responses section > Response body subsection.
  9. Get your refreshed authorization token in the access_token field.

    For confidentiality reasons, the token data is blurred intentionally.

You can now use this refreshed authorization token to authorize with Petrosoft APIs.