Skip to main content

Business

Introduction

The Business integration allows partners to manage their customers' wallets.

Admin Authentication

In order to use the Business APIs (B2B APIs), partners must issue a valid Admin Token.

Operations Sequence

The sequence of API calls will be as follows:

  1. Issue an admin token by supplying the Admin (B2B) client credentials.

    note

    The authentication details for the calling client are submitted through Basic Auth, encompassing the admin Client ID and Client Secret credentials - both provided by Paysafe business relationship manager.

    Issue an Admin Token

    Request

    curl --location 'https://api.paysafe.com/digitalwallets/v1/auth/brands/{{brand}}/token' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'Authorization: Basic {{encodeBase64(client_id:client_secret)}}' \
    --data-urlencode 'grant_type=client_credentials'

    Response

    {
    "access_token": "{{admin-token}}",
    "expires_in": 36000,
    "token_type": "Bearer",
    "scope": "whitelabelWallet"
    }
  2. You get an admin token in response. It has a short lifespan to ensure better security.

  3. Use the admin token to call the Business APIs (B2B APIs) and perform administrative wallet operations.

Business Admin AuthenticationBusiness Admin AuthenticationBusiness Admin AuthenticationBusiness Admin Authentication