API reference
Merchants
Create, update and remove the merchants in your partner account.
Get merchants
Retrieves a list of merchants available for your partner account. Merchants can also be filtered based on metadata information, using query string keys meta.{key}={value}, such as ?meta.iso_id=2
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | No | Retrieve a specific merchant by ID or merchant_id |
ids |
array | No | Retrieve multiple merchants by their IDs |
merchant_id |
string | No | Filter by merchant ID (exact match) |
search |
string | No | Search by merchant_id or associated domain hostname |
is_registered |
boolean | No | Filter by whether a domain is linked to the merchant |
created_at_start |
string | No | Filter merchants created after this date |
created_at_end |
string | No | Filter merchants created before this date |
registered_at_start |
string | No | Filter merchants registered after this date |
registered_at_end |
string | No | Filter merchants registered before this date |
activated_at_start |
string | No | Filter by domain activation date (after) |
activated_at_end |
string | No | Filter by domain activation date (before) |
domain_status |
string | No | Filter by associated domain status |
domain_id |
string | No | Filter by domain ID |
domain_partner_id |
string | No | Filter by domain partner ID |
page |
integer | No | Page number |
limit |
integer | No | Results per page |
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
GET /api/portal/merchants HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"meta": {
"current_page": 0,
"next_page": 0,
"prev_page": 0
},
"result": [{
"id": "string",
"merchant_id": "string",
"company_name": "string",
"country": "US",
"state": "DE",
"city": "Wilmington",
"address": "112 Main road",
"postal_code": 112334,
"iso_id": "string",
"description": "string",
"created_at": "string",
"registered_at": "string",
"partner_id": "string",
"product": {
"id": 0,
"code": "BASE",
"name": "string",
"description": "string"
},
"price_list": {
"id": 0,
"code": "string",
"name": "string"
},
"addons": [{
"id": "string",
"start_date": "string",
"created_at": "string",
"product": {
"id": {},
"code": {},
"name": {},
"description": {},
"support_url": {}
}
}],
"domain": {
"id": "string",
"hostname": "string",
"status": "string",
"is_active": false,
"created_at": "string",
"activated_at": "string",
"email": "string",
"source": "string"
},
"meta": {}
}]
}Create merchant
Create a new merchant in your partner account
Show properties
Show properties
POST /api/portal/merchants HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "merchant_id": "string", "company_name": "My Company Inc", "country": "US", "state": "DE", "city": "Wilmington", "address": "112 Main road", "postal_code": 112334, "description": "Merchant one", "iso_id": "my-iso-id", "product": "BASE", "price_list": "RESELLER", "addons": [ { "addon": "INSUR_01", "start_date": "string" } ], "meta": { "key": "value" } }
{
"result": {
"id": "1f19dbcbc7b84be5b40ffcc4ya0zqbtr",
"merchant_id": 1234556,
"company_name": "My Company Inc",
"meta": {},
"created_at": "string"
}
}Get merchant
Retrieve information about a single merchant
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchantId |
string | Yes | The Clym merchant id, or your own merchant_id |
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
GET /api/portal/merchants/{merchantId} HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"result": {
"id": "string",
"merchant_id": "string",
"company_name": "string",
"country": "US",
"state": "DE",
"city": "Wilmington",
"address": "112 Main road",
"postal_code": 112334,
"iso_id": "string",
"description": "string",
"created_at": "string",
"registered_at": "string",
"partner_id": "string",
"product": {
"id": 0,
"code": "BASE",
"name": "string",
"description": "string"
},
"price_list": {
"id": 0,
"code": "string",
"name": "string"
},
"addons": [{
"id": "string",
"start_date": "string",
"created_at": "string",
"product": {
"id": 0,
"code": "string",
"name": "string",
"description": "string",
"support_url": "string"
}
}],
"domain": {
"id": "string",
"hostname": "string",
"status": "string",
"is_active": false,
"created_at": "string",
"activated_at": "string",
"email": "string",
"source": "string"
},
"meta": {}
}
}Update merchant
Update information about a merchant
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchantId |
string | Yes | The Clym merchant id, or your own merchant_id |
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
PUT /api/portal/merchants/{merchantId} HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "merchant_id": "my-merchant-id", "company_name": "My Company Inc", "country": "US", "state": "DE", "city": "Wilmington", "address": "112 Main road", "postal_code": 112334, "description": "My merchant description", "meta": { "iso_id": "id" }, "domain_id": "dadcc24837ff49a2b409b288ur0tdpfd", "domain_partner_id": "string", "iso_id": "my-iso-id", "product": "BASE", "price_list": "RESELLER", "addons": [ { "addon": "INSUR_01", "start_date": "string" } ] }
{
"result": {
"id": "string",
"merchant_id": "string",
"company_name": "string",
"country": "US",
"state": "DE",
"city": "Wilmington",
"address": "112 Main road",
"postal_code": 112334,
"iso_id": "string",
"description": "string",
"created_at": "string",
"registered_at": "string",
"partner_id": "string",
"product": {
"id": 0,
"code": "BASE",
"name": "string",
"description": "string"
},
"price_list": {
"id": 0,
"code": "string",
"name": "string"
},
"addons": [{
"id": "string",
"start_date": "string",
"created_at": "string",
"product": {
"id": 0,
"code": "string",
"name": "string",
"description": "string",
"support_url": "string"
}
}],
"domain": {
"id": "string",
"hostname": "string",
"status": "string",
"is_active": false,
"created_at": "string",
"activated_at": "string",
"email": "string",
"source": "string"
},
"meta": {}
}
}Delete merchant
Completely delete the merchant and associated domain (if any) from your partner account
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
merchantId |
string | Yes | The Clym merchant id. Your own merchant_id is not accepted here. |
Show properties
DELETE /api/portal/merchants/{merchantId} HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
{
"result": {
"deleted": false
}
}Bulk create merchants
Create up to 200 merchants in bulk with a single API call. If product, price list and addons is specified in the root body (outside merchants), they will act as default data for all items in the merchants[] array
Show properties
Show properties
Show properties
Show properties
Show properties
POST /api/portal/merchants/bulk/create HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "merchants": [ null ], "product": "BASE", "price_list": "RESELLER", "addons": [ { "addon": "INSUR_01", "start_date": "string" } ] }
{
"result": {
"created": [{
"id": "7301d95285824ae2b6c99e70zkyjssgp",
"merchant_id": "my-merchant-id",
"created_at": "string"
}],
"failed": [{
"merchant_id": "my-merchant-id",
"error": {
"code": "DATA.INVALID_NAME",
"ns": "DATA",
"message": "string",
"status": 400,
"data": {}
}
}]
}
}Bulk delete merchants
Delete up to 200 merchants in bulk with a single API call
Show properties
Show properties
Show properties
Show properties
POST /api/portal/merchants/bulk/delete HTTP/1.1 Host: partners.clym.io Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* { "merchants": [ "string" ] }
{
"result": {
"removed": [{
"id": "7301d95285824ae2b6c99e70zkyjssgp",
"merchant_id": "my-merchant-id"
}],
"failed": [{
"merchant_id": "my-merchant-id",
"error": {
"code": "DATA.INVALID_NAME",
"ns": "DATA",
"message": "string",
"status": 400,
"data": {}
}
}]
}
}