Getting Started
Set up your environment and authenticate with the Glin API.
New to Glin? Follow the Integration Guide for a complete step-by-step walkthrough from creating your first remittance to accepting live payments.
Environments
Glin provides two environments for development and production:
| Environment | Base URL | Purpose |
|---|---|---|
| Staging | pay.staging.glin.com.br | Development and testing |
| Production | pay.glin.com.br | Live payments |
Authentication
The Glin API uses Bearer token authentication. Include your integration key in the Authorization header of every request.
curl --request GET \
--url https://pay.staging.glin.com.br/merchant-api/remittances/ \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'You can generate your API key from the Glin merchant dashboard under Integration Keys.
Two APIs
Glin exposes two API surfaces depending on your integration:
Merchant API
Server-side API authenticated with your Bearer token. Used to create remittances, manage webhooks, and query payment status.
POST /merchant-api/remittances/Checkout API
Client-side API used by the Checkout SDK. Authenticated with a public key via X-Public-Key header. You don't call this directly — the SDK handles it.
GET /checkout-api/checkout/{remittanceId}Install the SDK
If you're using the Plug & Play or Customizable integration, add the SDK to your page. Choose one of the two options below.
Option A — Script tag (CDN)
Load the SDK directly from the Glin CDN. No build step required.
<script src="https://sdk.glin.com.br/v1/glin-checkout.js"></script>Option B — npm
If you use a bundler (Vite, Webpack, Next.js, Nuxt, etc.), install the package and import it.
npm install @glin/checkout-sdkimport { GlinCheckout } from '@glin/checkout-sdk';The Redirect integration does not require the SDK — it uses server-side API calls only.
Next Steps
Choose the integration that best fits your needs: