API url
The{api_url} is your company specific url + priceedge.eu/papi.
If your company url is yourdomain then the API-url would be yourdomain.priceedge.eu/papi
In examples the API-url is yourdomain.priceedge.eu/papi/
Username and password
From the PriceEdge team or your system owner you should have received a username. The password, if not already set, you set via the link in mail you should have received. These are used for ApiKey auth and to get bearer token.Bearer token
Authentication is done using a Bearer Token, particular type of access token, with the property that anyone can use the token. In other words, a client doesn’t need a cryptographic key or other secret to use a bearer token. For this reason, the PriceEdge API works only on HTTPS. The token is generated with a call to an endpoint with different headers and with a username and password. Beside the generated token, which has a limited expiration time - which is configurable for each client - there will be also created a Refresh Token which is a special kind of token that can be used to obtain a renewed Bearer Token at any time. Refresh tokens must be stored securely by an application because they essentially allow a user to remain authenticated for a long time. Requests made with invalid credentials value will receive an HTTP 403 – Forbidden response. On the next pages we will explain in more depth how the security endpoint can be used to obtain the Bearer Token using the username/password or the refresh tokenObtain Bearer token
Application has no security token, needs to make a secure call with the user and password to the PriceEdge API to get a valid token. Make a POST request to the API:HTTP Example
First option: the one explained above, by using a post call to the token endpoint with the user name and password. Second option: send the refresh token to the obtain token endpoint
HTTP Example
In this example the username is pricing@example.com and **MYPASSWORD123 as the password
First request - GET item metadata Bearer Token
HTTP Example
First request - GET item metadata ApiKey
Don’ forget to change to you domain, username and password
HTTP Example
cURL Example
ApiKey is case sensitive and note the : between username and password