Skip to content

Get Shop URL

The following is the method to get the shop URL.

Request URL

url
POST https://api.zerva.app/api/v1/shop/url

Request Headers

NameTypeRequiredDescription
AuthorizationStringThe access token received from Issue Access Token.

Request Body

NameTypeRequiredDescription
typeStringbooking (default), service (service_id required), history
service_idStringWhen "type" is serviceSpecific ID or SKU of the service on the URL (The ID will be converted to SKU when provided).
query_stringObject (String of String)Query string on the URL

Example

json
{
    "service_id": "da93acea-a2ba-4cbc-acfb-c2ec845e2ed3",
    "query_string": {
        "foo": "bar"
    }
}

Request Example

sh
curl -X GET 'https://api.zerva.app/api/v1/shop/url' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}'

Response

NameTypeDescription
urlStringThe shop URL

Example

json
{
    "url": "https://zerva.app/[shop-id]/[service-id]?foo=bar"
}