Get resellers
GET /brands/:brandRef/resellers
List the resellers within the specified brand. This will return an array containing all of the resellers that exist within the brand.
Response
Status: 200 OK
Create reseller
POST /brands/:brandRef/resellers
Create a reseller within the specific brand.
Parameters
name string | Required. Name of the reseller. To be used internally. |
displayName string | Required. This is used in various places in the UI to refer to the brand or reseller to which the user belongs. For example, “Click here to publish your Reseller Name website”. |
accountCreateLimit integer | The number of accounts this reseller is allowed to create. |
defaultCurrencyRef integer | Required. The currency that is associated with the user when they are created. |
defaultLanguageRef integer | Required. The language that is associated with the user when they are created. |
loginURL string | The URL that a reseller’s users can visit to login to their account. This could be the BaseKit account if they access directly, or it could be the reseller account if they access via an external control panel. |
externalAccountURL string | If this is set then users will be redirected to this URL when the Account link is clicked from within the BaseKit application. This is typically the URL of the reseller’s control panel. |
externalPaymentURL string | If this is set then users will be redirected to this URL to purchase a site or add-on. |
externalPaymentCancellationURL string | If this is set then users will be redirected to this URL to cancel their account. |
externalSubscriptionURL string | If this is set then users will be redirected to this URL when they click to purchase a new subscription package. This is typically the URL of the upgrades page in the reseller’s control panel. |
resellerHelpURL string | If this is set then the Help link within the BaseKit editor will redirect to this URL. If it is not set then the Help URL defined in the brand will be used. |
resellerSupportEmail string | If this is set then this email address will be listed in the support pages. |
Content-Type: application/json
Response
Status: 201 Created
Get reseller
GET /resellers/:resellerRef
Get an existing reseller by ref.
Response
Status: 200 OK
Update reseller
PUT /resellers/:resellerRef
Update an existing reseller by ref. This is a partial update and therefore only the fields provided will be changed, if they are different.
Parameters
name string | Name of the reseller. To be used internally. |
displayName string | This is used in various places in the UI to refer to the brand or reseller to to which the user belongs. For example, “Click here to publish your Reseller Name website”. |
accountCreateLimit integer | The number of accounts this reseller is allowed to create. |
defaultCurrencyRef integer | The currency that is associated with the user when they are created. |
defaultLanguageRef integer | The language that is associated with the user when they are created. |
loginURL string | The URL that a reseller’s users can visit to login to their account. This could be the BaseKit account if they access directly, or it could be the reseller account if they access via an external control panel. |
externalAccountURL string | If this is set then users will be redirected to this URL when the Account link is clicked from within the BaseKit application. This is typically the URL of the reseller’s control panel. |
externalPaymentURL string | If this is set then users will be redirected to this URL to purchase a site or add-on. |
externalPaymentCancellationURL string | If this is set then users will be redirected to this URL to cancel their account. |
externalSubscriptionURL string | If this is set then users will be redirected to this URL when they click to purchase a new subscription package. This is typically the URL of the upgrades page in the reseller’s control panel. |
resellerHelpURL string | If this is set then the Help link within the BaseKit editor will redirect to this URL. If it is not set then the Help URL defined in the brand will be used. |
resellerSupportEmail string | If this is set then this email address will be listed in the support pages. |
Content-Type: application/json
Response
Status: 200 OK
Delete reseller
DELETE /resellers/:resellerRef
Delete an existing reseller by ref.
Response
Status: 204 No Content
Get reseller prices
GET /resellers/:resellerRef/prices
List all package prices for a reseller. This will return an array containing all of the prices added to the reseller. Note that this will return an empty response until prices have been added.
Response
Status: 200 OK
Get reseller price
GET /resellers/:resellerRef/prices/:priceRef
Get a reseller price by ref.
Response
Status: 200 OK
Create reseller price
POST /resellers/:resellerRef/prices
Add a reseller package price for a specified billing period and currency. In most cases you will not need an offer price so it is suggested that you provide the same price to each of these parameters.
Parameters
packageRef integer | Required. |
billingPeriodMonths integer | Required. |
currencyRef integer | Required. |
price integer | Required. |
offerPrice integer | Required. |
Content-Type: application/json
Response
Status: 201 Created
Update reseller price
PUT /resellers/:resellerRef/prices/:priceRef
Update a reseller price by ref. You would typically only update price and offerPrice but you can optionally provide all other fields as with the POST method.
Parameters
price integer |
offerPrice integer |
Content-Type: application/json
Response
Staus: 200 OK
Delete reseller price
DELETE /resellers/:resellerRef/prices/:priceRef
Delete a reseller price by ref.
Response
Status: 204 No Content