Authorize

Create OAuth Token

Each payment should be authorized in one of three available modes:

  • <code>client_credentials</code> - used for standard integration,
  • <code>trusted_merchant</code> - used for authentication of requests made for logged-in shop/application users with fixed <code>extCustomerId</code>,
  • <code>partner</code> - special type of a token meant for creating entities (e.g. Shop, POS, URL) within partner firm.

Generated access token is valid for 43199 seconds.

post/pl/standard/user/oauth/authorize

Request

Request body application/x-www-form-urlencoded

OR
OR

Example request

{
  "grant_type": "client_credentials",
  "client_id": "145227",
  "client_secret": "12f071174cb7eb79d4aac5bc2f07563f"
}

Response

access_tokenstring uuid

Token used for authentication of API calls.

token_type'bearer'
refresh_tokenstring uuid
expires_in43199

Token expiration time (in seconds).

grant_type'client_credentials' | 'trusted_merchant'

Token authentication mode.

Changes

No recorded changes to this operation across all 1 revision of this API.