# Postman Collection

Gigastore provides a Postman collection for the Gigastore API. To use the collection, please follow these steps.

1. Make sure you use the latest version of [Postman](https://www.postman.com)
2. Use the "Import" function of Postman to add the collection using this URL: <https://dent.giga.store/DENT-Gigastore-API.postman_collection.json>
3. Select the collection in Postman

<figure><img src="https://744070168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_06ID1EGDSaSa9MhQE%2Fuploads%2Fj5IybLivpVX59Oh7F6eE%2FScreenshot%202024-04-25%20at%2020.40.00.png?alt=media&#x26;token=ed125786-f078-477a-a202-4e96274b8921" alt="" width="271"><figcaption></figcaption></figure>

4. Select the "Authenticate" request and right-click the URL address. Then click "Add new variable".

<figure><img src="https://744070168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_06ID1EGDSaSa9MhQE%2Fuploads%2F6fTuFzWuoZBfM6zAv7Dd%2FScreenshot%202024-04-25%20at%2020.41.47.png?alt=media&#x26;token=8e019d9e-2070-4e8e-9cfe-f1cf887bc3a5" alt="" width="375"><figcaption></figcaption></figure>

5. Set the variable to `https://api.giga.store` and choose the scope (recommended is `Collection`).

<figure><img src="https://744070168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_06ID1EGDSaSa9MhQE%2Fuploads%2F18Hz69ku8IHpUtQo01do%2FScreenshot%202024-04-25%20at%2020.43.50.png?alt=media&#x26;token=c1a00a14-b8b9-46f8-b6cc-2e17c1460690" alt="" width="299"><figcaption></figcaption></figure>

5. Switch to the "Authorization" tab of the request and set `resellerClientId` as a variable based on the **CLIENT ID** from your [Gigastore API page](https://dent.giga.store/#/api).
6. Set the `resellerClientSecret` as a variable based on the **CLIENT SECRET** from your [Gigastore API page](https://dent.giga.store/#/api).
7. Execute the Authorization request in Postman. The response contains the accessToken. If this is not the case, please double-check your variables.&#x20;

<figure><img src="https://744070168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_06ID1EGDSaSa9MhQE%2Fuploads%2FgLou1HKqP2DqrqMnhba1%2FScreenshot%202024-04-25%20at%2020.48.54.png?alt=media&#x26;token=83d43327-2b84-4042-89cb-044e8cfc9b73" alt="" width="372"><figcaption></figcaption></figure>

{% hint style="info" %}
To change variables, you need to remove the field content, paste the new value, select the value, and use the "Set as variable" popup.
{% endhint %}

8. Copy the **complete** accessToken value.
9. Switch to the "Version" request and select the "Authorization" tab. Set the copied accessToken as the value of the `resellerAccessToken` variable.

<figure><img src="https://744070168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_06ID1EGDSaSa9MhQE%2Fuploads%2F0APtF56568N8YsF16kg5%2FScreenshot%202024-04-25%20at%2020.51.25.png?alt=media&#x26;token=ffbb421f-207d-4cee-b01d-63f5b6bcd2d2" alt="" width="375"><figcaption></figcaption></figure>

10. Execute the request and check the response. It will show the server/API version.

<figure><img src="https://744070168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_06ID1EGDSaSa9MhQE%2Fuploads%2F2zJzkjOnyG8iukqDd9f2%2FScreenshot%202024-04-25%20at%2020.55.30.png?alt=media&#x26;token=f1b0c069-ef43-43b3-a467-39ca82e6b8ae" alt="" width="229"><figcaption></figcaption></figure>

🥳 Congrats! Your Gigastore API Postman collection is now ready.&#x20;
