Implementation

This guide requires a valid GS1 Sweden API user and token endpoint details, accessible on the Technical Integration page while logged in to MyGS1.

1. Request a token

POST a request to the token endpoint specified in MyGS1. In the options for Headers, add Content-Type = ”application/x-www-form-urlencoded". Replace values in example request below with valid data and POST. A token is returned.

POST a request with GTIN 07310350118342 in an array as image below to get a response.

2. Request data from Verified GTIN API

The Verified GTIN API is available to every customer with a number series, test a request with a GTIN to establish a connection with GS1 Sweden APIs. The token returned from the token request should be included in the header as image below.

After succeeding, please look into the option of using refresh tokens for the implementation.