Square SDK and Mobile Samples

Explore samples for OAuth, Square SDK, GraphQL, and mobile.

Link to section

OAuth samples

These sample applications demonstrate a bare-bones implementation of the OAuth flow for Square APIs. Each language-specific application serves a link that directs merchants to the OAuth Permissions form and handles the result of the authorization, which is sent to your application's Redirect URL. For more information and a detailed walkthrough, see OAuth Walkthrough.

Java    Node.js     PHP     Python     Ruby    

Link to section

Square SDK samples

  • Bookings API
    Node.js

  • Catalog API (product management samples)
    Java

  • Gift Cards API
    Node.js

  • Invoices API
    Node.js

  • Loyalty API (included in the order-ahead sample)
    Node.js

  • Orders API (order-ahead sample)
    Node.js

  • Snippets API
    Ruby

  • Subscriptions API
    Node.js

  • Web Payments SDK and Payments API (payment processing samples)
    PHP     Ruby     Python     Node.js     Java     .NET

Link to section

GraphQL samples

Sample applications demonstrating how to use Square QraphQL queries to access data from Square APIs. Each application includes a script you can run to upload test data to your Square account.