Get Shop URL
The following is the method to get the shop URL.
Request URL
url
POST https://api.zerva.app/api/v1/shop/urlRequest Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | ✅ | The access token received from Issue Access Token. |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| type | String | ❌ | booking (default), service (service_id required), history |
| service_id | String | When "type" is service | Specific ID or SKU of the service on the URL (The ID will be converted to SKU when provided). |
| query_string | Object (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
| Name | Type | Description |
|---|---|---|
| url | String | The shop URL |
Example
json
{
"url": "https://zerva.app/[shop-id]/[service-id]?foo=bar"
}