# Globagift API

Source: https://docs.globagift.io/docs/api
Description: Issue, deliver, redeem and report on Globagift gift cards from your own platform, or sell many merchants' gift cards through a marketplace with the distributor API.


The Globagift API connects gift cards to your own systems. It is the same engine that powers the merchant portal, the webshop and Point of sale.

API access is agreed with Globagift. [Talk to us](https://www.globagift.io/en/contact) about your project before you build, so we can confirm the operations and environment you need.

## What you can build [#what-you-can-build]

<Cards>
  <Card title="Your own gift card platform" href="/docs/api/cards">
    Create products, issue cards from your own checkout, let cardholders claim them, and redeem them at your tills, sites or apps.
  </Card>
  <Card title="A gift card marketplace" href="/docs/api/distributor">
    As a distributor, list the merchants you are granted, reserve your prefunded float, and issue their cards to your customers.
  </Card>
</Cards>

## Two kinds of key [#two-kinds-of-key]

| Key | Prefix | Acts for | Used for |
| --- | --- | --- | --- |
| Merchant API key | `gg_` | One merchant brand | Products, cards, redemptions, reports and webhooks for that brand |
| Distributor key | `ggd_` | A distributor | Selling the cards of merchants that have granted the distributor access |

Redemptions use a third credential: a signing secret for an acceptance point, such as a till. See [Authentication](/docs/api/authentication).

## Environments [#environments]

| Environment | Base URL | Use it for |
| --- | --- | --- |
| Sandbox | `https://engine-sandbox.globagift.io` | Building and testing with test keys. No real money moves. |
| Production | `https://engine.globagift.io` | Live cards, with live keys, once your integration is agreed. |

Build and test against the sandbox first. Live keys and production access are enabled after onboarding.

## Start here [#start-here]

1. [Quickstart](/docs/api/quickstart): make your first calls in the sandbox.
2. [Authentication](/docs/api/authentication): keys, scopes and request signing.
3. [Conventions](/docs/api/conventions): amounts, retries, errors and pagination.
4. [Issue and redeem cards](/docs/api/cards) or [Distributor marketplace](/docs/api/distributor), depending on what you are building.
5. The API reference, starting with [Cards](/docs/api/reference/cards), for every field and response.

## What the API does not cover [#what-the-api-does-not-cover]

The published API covers the operations in this section. Issuing a card through the API does not take a payment from anyone, so collect payment in your own checkout before you issue. If you want Globagift to handle checkout, discuss it with us. Merchant onboarding, distributor setup, grants and prefunding are arranged with Globagift rather than through the API.

API availability does not mean the same action is self-service in the merchant portal. For website embeds and the brand storefront, see [Integrations](/docs/merchants/integrations). For a fully branded programme, see [White label gift cards](/docs/solutions).
