Client 🤝
APIs to create and update a partner's clients
Available Endpoints
Type | Description | Endpoint |
---|---|---|
POST | integrations/client | |
PUT | integrations/client |
POST - Create New Client
This API is used by partners to create new clients
This endpoint is only available for our Partner customers only 🤝
Request
Header
Attribute | Type | Required | Description |
---|---|---|---|
| string | Yes | Partner Access Token, The token is of type Bearer |
Body
Attribute | Type | Required | Description |
---|---|---|---|
| string | Yes | Name of the Client |
| string | Yes | Email of the Client |
| string | Yes | Mobile Number of the Client |
| string | Yes | Store Name or any unique identifier from the system of the partner (This attribute will later be used to access APIs on behalf of the client) |
| string | Yes | Domain of the store of the Client |
| string | Yes | Country of the store |
| string | Yes | Currency of the store |
| string | Yes | Timezone of the store |
| boolean | No | A Boolean flag indicating if the store's Loyalty Program will be enabled once they are created or not (Default value is false) |
| string | No | Custom Domain of the store |
| string | No | Name of the Partner's plan that the client is subscribed to (Default is Free) |
| string | No | Status of the Client in the partner's system, could be one of the following:
|
| integer | No | The id of the client's subscription on the partner’s system |
Sample Request Body
Response
Parameter | Type | Description |
---|---|---|
| string | The newly created client's APIKey |
secretKey | string | The newly created client's secretKey |
| integer | The ID of the newly created client in Gameball's system |
Store these values somewhere safe for later usage
Sample Response
PUT - Update Client
This API is used by partners to update clients
This endpoint is only available for our Partner customers only 🤝
Request
Header
Attribute | Type | Required | Description |
---|---|---|---|
| string | Yes | Partner Access Token, The token is of type Bearer |
| string | Yes | Id of the store on the partner's system |
Only parameters that will be updated should be sent
Body
Attribute | Type | Description |
---|---|---|
| string | Name of the Client |
| string | Email of the Client |
| string | Store Name or any unique identifier from the system of the partner (This attribute will later be used to access APIs on behalf of the client) |
| string | Domain of the store of the Client |
| string | Country of the store |
| string | Currency of the store |
| string | Timezone of the store |
| boolean | A Boolean flag indicating if the store's Loyalty Program will be enabled once they are created or not |
| string | Custom Domain of the store |
| string | Name of the Partner's plan that the client is subscribed to |
| string | Status of the Client in the partner's system, could be one of the following:
|
| integer | The id of the client's subscription on the partner’s system |
Sample Request
Response
Attribute | Type | Description |
---|---|---|
| integer | Id of the client in Gameball's system |
| string | Name of the Client |
| string | Email of the Client |
| string | Store Name or any unique identifier from the system of the partner (This attribute will later be used to access APIs on behalf of the client) |
| string | Domain of the store of the Client |
| string | Country of the store |
| string | Currency of the store |
| string | Timezone of the store |
| boolean | A Boolean flag indicating if the store's Loyalty Program will be enabled once they are created or not |
| string | Custom Domain of the store |
| string | Name of the Partner's plan that the client is subscribed to |
| string | Status of the Client in the partner's system, could be one of the following:
|
| integer | The id of the client's subscription on the partner’s system |
Sample Response
Last updated