For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quick Start

With this Quick Start guide, make your first request in just minutes

Tip: Shopwaive's quick start guide helps developers setup their first request in minutes. Use this guide to create an API key and make your first request.

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:

  1. In your Shopify admin, open the Shopwaive app.

  2. Click Settings, then the Develop tab.

  3. Under Shopwaive API keys, type a label (for example ERP sync) and click Create key.

  4. 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.

Already have an integration? The access token it sends in the X-Shopwaive-Access-Token header keeps working. You don't need to change anything.

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."}
Reason
What it means

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.

Get customer

get
Authorizations
X-Shopwaive-Access-TokenstringRequired
Path parameters
customer_emailstringRequired

The email of the customer to retrieve

Responses
200

Successfully fetched customer account

application/json
get/api/customer/{customer_email}
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?