Request authorization tokens with a command-line tool to initialize Square mobile solutions like Reader SDK.
Mobile Authorization API

Request a Mobile Authorization Code on the Command Line

PowerShell (Command Line)

Request authorization tokens with a command-line tool to initialize Square mobile solutions like Reader SDK.

To use the steps in this topic, you need:

  • An active location ID. Copy a valid developer account location ID from the Production mode Locations settings page of your Square application in the Developer Dashboard.

  • A valid access token. For more information, see Square API Access Tokens.

You should generate mobile authorization codes programmatically because they are short-lived and cannot be hardcoded or reused. You might, however, need to generate a mobile authorization code manually during development.

To manually generate a mobile authorization code:

  1. Open the Square Developer Dashboard.

  2. Copy your personal access token from the Credentials page.

  3. Copy an active location ID from the Locations page.

  1. Paste the values into the following PowerShell command:

    You should get a response that looks like this:

If you need more assistance, contact Developer Support or ask for help in the Developer Forums.