API reference
Instance property
Read a merchant's property and manage its subdomains and widget assets, through the instance gateway.
Get property
GET
Retrieve the property information and configuration
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
200Result with an array of recordsapplication/json
Show properties
The property id
The property name
The property status
Possible values:
NEW INVITED SCANNED ACTIVEThe property description. Only returned when set.
When the property last became ACTIVE. Only returned when set.
Whether the property's subscription is active.
The widget type configured for the property.
Possible values:
V1 V2The company that owns the property.
Show properties
The company id
The company name
get/portal/instance/property
GET /api/portal/instance/property HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
200Result with an array of records
{
"result": {
"id": "string",
"name": "string",
"status": "NEW",
"description": "string",
"activated_at": "string",
"is_subscription_active": false,
"widget_type": "V1",
"company": {
"id": "string",
"name": "string"
}
}
}Send instructions
POST
This API endpoint is used to send implementation instructions to the specified email address
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
Request bodyapplication/json
The email address to send the implementation instructions
Additional information to be included in the email
200Request completed successfullyapplication/json
post/portal/instance/property/support/instructions
POST /api/portal/instance/property/support/instructions HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "email": "string", "message": "string" }
200Request completed successfully
{
"result": {}
}Sign asset
POST
Prepares a signed URL for a logo, logo_light or favicon to be uploaded for the property.
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
Request bodyapplication/json
The property field you want to upload an asset for
Possible values:
logo_url logo_light_url favicon_url hero_image_urlThe mime type of the asset you want to upload
200Result with the added property domainapplication/json
Show properties
The signed upload URL to be used
post/portal/instance/property/settings/widget/sign-asset
POST /api/portal/instance/property/settings/widget/sign-asset HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "field": "logo_url", "mime": "image/png" }
200Result with the added property domain
{
"result": {
"url": "string"
}
}Delete asset
DELETE
This API endpoint is used when you want to remove a previously uploaded asset from the property.
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
field |
string | Yes | The property asset field to remove |
200Request completed successfullyapplication/json
delete/portal/instance/property/settings/widget/remove-asset
DELETE /api/portal/instance/property/settings/widget/remove-asset HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
200Request completed successfully
{
"result": {}
}Get subdomains
GET
Retrieve a list of available subdomains for this property
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
200Result with an array of property subdomainsapplication/json
Pagination metadata
Show properties
Show properties
get/portal/instance/property/subdomains
GET /api/portal/instance/property/subdomains HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
200Result with an array of property subdomains
{
"meta": {
"current_page": 0,
"next_page": 0,
"prev_page": 0
},
"result": {
"id": "string",
"name": "string",
"is_primary": false,
"created_at": "string"
}
}Create subdomains
POST
Create a new subdomains for this property
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
Request bodyapplication/json
The full domain hostname to be added
200Result with the added property domainapplication/json
Show properties
post/portal/instance/property/subdomains
POST /api/portal/instance/property/subdomains HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "name": "mydomain.com" }
200Result with the added property domain
{
"result": {
"id": "string",
"name": "string",
"is_primary": false,
"created_at": "string"
}
}Delete subdomains
DELETE
Deletes the specified property subdomains
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | The property subdomain id, as returned by GET /portal/instance/property/subdomains |
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchant_id |
string | No | Merchant ID (takes priority over domain_id and property_id) |
domain_id |
string | No | Domain ID (takes priority over property_id) |
property_id |
string | No | Property ID |
delete/portal/instance/property/subdomains/{id}
DELETE /api/portal/instance/property/subdomains/{id} HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
200Request completed successfully
{}