Welcome
Juo’s Customer API provides programmatic access to customer-facing subscription data.It’s a RESTful API that lets authenticated customers interact with their subscriptions and with other customer-related entities.
Authentication
Juo’s Customer API supports several authorization methods depending on the environment in which it’s used.Access token
You can obtain an access token by initializing the login flow with Juo. Once the customer completes the login flow, an access token will become available to be used in theAuthorization
header:
Implicit authorization (only in embedded Shopify context)
You can use implicit authorization when using Juo’s Customer API in an embedded portal under a Shopify Storefront. To use the implicit authorization replace the server URL with/apps/juo/api/customer/v1
.
Delegated Token
You can obtain a Delegated Token through Juo’s Admin API. After acquiring a valid Delegated Token, include it in theX-Delegated-Token
header:
Pagination
The API uses cursor-based pagination to handle large result sets. Navigation links are provided in theLink
response header, containing URLs for the next and previous pages.
limit
query parameter where applicable:
Sorting
Results can be sorted using thesort
query parameter. Multiple sort criteria can be combined using commas.
Sortable fields are the same as filterable fields on a resource. There is a special rank
field that can be used whenever a search query includes a term not bound to a specific field.
Search query language
Resources can be searched / filtered by an expressive query syntax. The search grammar is expressed in EBNF. It uses the following terminal symbols:Symbol | Description |
---|---|
_ | Optional whitespace |
__ | Mandatory whitespace |
field | An identifier ([a-z][a-zA-Z]* ) |
value | An identifier, single quoted string or double quoted string |
Operator | Description |
---|---|
: | Equal |
:> | Greater than |
:>= | Greater than or equal |
:< | Less than |
:<= | Less than or equal |