DENT Gigastore Documentation
  • Introduction
  • Start with Gigastore
    • Create an Account
    • Add Credits
    • Configure Inventory
    • Set Up Auto Top-Up for Credits
  • Technical Integration
    • API Integration
    • SDK Integration
  • API
    • Getting started
    • Open API Specification
    • Postman Collection
    • API Authentification
    • Offering Packages
    • Countries API
    • Supported Devices API
    • Customers
    • First Package
    • eSIM Profiles
    • Top-up
    • Package Refund
    • Error Handling
  • Webhooks
    • First Steps
    • eSIM Status
    • Balance Alert
    • Country Change
  • iOS SDK
    • First Steps
    • Download SDK
    • Enable Direct Installation
    • iOS Universal Link
    • Integrate SDK
    • Prepare eSIM Installation
    • Install eSIM
  • Android SDK
    • First Steps
    • Download SDK
    • Enable Direct Installation
    • Integrate SDK
    • Prepare eSIM Installation
    • Install eSIM
    • Testing
  • SDK Webhooks
    • Activation Request
    • Customer Registration
  • Guidelines
    • UX Guide
  • Customer support
    • Gigastore for Support Teams
    • Connectivity
    • Changing Device
    • Package Refund
Powered by GitBook
On this page

Was this helpful?

  1. API

API Authentification

PreviousPostman CollectionNextOffering Packages

Last updated 11 months ago

Was this helpful?

To authenticate with Gigastore backend, please use the credentials provided when logging in to your Gigastore account.

API credentials and inventory are bound to the Gigastore login. Make sure to use the same login to create credentials and manage your inventory.

The credentials are Client ID and Client Secret, which can be found in theof the Gigastore portal.

The snippet below can be generated by following the "First Steps" in the Gigastore API portal, or the base64 value needs to be calculated on your side.

curl --location --request POST 'https://api.giga.store/reseller/authenticate'
--header 'Authorization: Basic base64(<clientid>:<clientsecret>)'

Response:
{
    "accessToken": "eyJhbGciOiJSUzI1NiIsInR5c..._very.long_string",
    "expiresIn": 86400,
    "refreshToken": null,
    "refreshExpiresIn": 0,
    "tokenType": "Bearer",
    "idToken": null
}

Now, you can use the accessToken in your header as Authorization Bearer for other API calls needing authentification.

curl --location --request GET 'https://api.giga.store/gigastore/products/inventory' \
--header 'Authorization: Bearer eyJhbGciO...YOUR_ACCESS_TOKEN...

Response:
{
    // your inventory
}

Use the /reseller/authenticate endpoint with using your Client ID as username and Client Secret as password to retrieve the accessToken.

Basic Authorization
API section