Skip to content

Read the shop for your API key

Request

Returns the shop your API key belongs to. Use it to confirm a key is valid and belongs to the shop you expect before you store it. A 401 means the key is not valid.

Security
api_key
Headers
Acceptstringrequired

Accept must be application/json

Example:application/json
curl -i -X GET \
  https://app.useonward.com/api/v1/shop \
  -H 'Accept: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Successful operation

Bodyapplication/json
shop_idintegerrequired

Onward's identifier for the shop.

Example:1234
Response
{ "shop_id": 1234 }