Quick Start
With this Quick Start guide, make your first request in just minutes
Get your API keys
Every API request is authenticated with a Shopwaive API key, sent in the X-Shopwaive-Access-Token header. Any request that doesn't include a valid key will return an error.
To create a key:
In your Shopify admin, open the Shopwaive app.
Click Settings, then the Develop tab.
Under Shopwaive API keys, type a label (for example
ERP sync) and click Create key.Click Copy and keep the key somewhere safe. The full key is shown only once.
A key starts with swak_. One key is enough. You can create more, for example one for each developer or integration. To stop a key from working, select it in the list and click Revoke. Your other keys are not affected. A lost key cannot be shown again: revoke it and create a new one.
If a key is refused
A swak_ key that is refused returns HTTP 401. The message names the reason:
{"status": "failed", "message": "Invalid X-Shopwaive-Access-Token: key-revoked."}not-a-shopwaive-api-key
The value starts with swak_ but is not a complete key. Check that you pasted the whole key.
key-not-recognised
No store has this key. It may have been deleted.
key-revoked
The key was revoked. Create a new one.
store-not-installed
Shopwaive is not installed on the store.
store-has-no-token
Contact support@shopwaive.com.
HTTP 503 means the key could not be checked. Retry the request.
Make your first request
To make your first request, send an authenticated request to the get customer endpoint. This will fetch a customer by email address. Ensure to include the X-Shopwaive-Access-Token and X-Shopwaive-Platform headers.
The email of the customer to retrieve
Successfully fetched customer account
Unexpected error. Method not allowed
GET /api/customer/{customer_email} HTTP/1.1
Host: app.shopwaive.com
X-Shopwaive-Access-Token: YOUR_API_KEY
Accept: */*
{
"status": "success",
"customerid": "6659662610648",
"email": "support@shopwaive.com",
"balance": 0,
"expirationdate": "2025-01-19T18:50:15.75Z",
"expires": "false",
"orders": []
}Take a look at how you might call this method using our official libraries, or via curl. Replace YOUR_API_KEY with your key:
Last updated
Was this helpful?