Establishments
POST /establishments
Creates an establishment and returns its ID
Endpoint
POST/establishments
Request Body
{
"paymentPlanId": "string"
"name": "string"
"email": "string"
"description": "string"
"location": "string"
"defaultCurrency": "string"
"monthlyAllocatedCoins": "string"
"status": "string"
"parentCasinoId": "string"
"accountManagerId": "string"
"backgroundPrimary": "string"
"foregroundPrimary": "string"
"backgroundSecondary": "string"
"foregroundSecondary": "string"
"backgroundSidebarPrimary": "string"
"backgroundSidebarSecondary": "string"
"marketplaceBackground": "string"
"marketplaceForegroundPrimary": "string"
"marketplaceForegroundSecondary": "string"
"marketplaceBackgroundCard": "string"
"marketplaceForegroundCardPrimary": "string"
"marketplaceForegroundCardSecondary": "string"
"marketplaceForegroundCardTertiary": "string"
"font": "string"
}
Attribute | Type |
---|---|
paymentPlanId | string |
name | string |
string | |
description | string |
location | string |
defaultCurrency | string |
monthlyAllocatedCoins | string |
status | string |
parentCasinoId | string |
accountManagerId | string |
backgroundPrimary | string |
foregroundPrimary | string |
backgroundSecondary | string |
foregroundSecondary | string |
backgroundSidebarPrimary | string |
backgroundSidebarSecondary | string |
marketplaceBackground | string |
marketplaceForegroundPrimary | string |
marketplaceForegroundSecondary | string |
marketplaceBackgroundCard | string |
marketplaceForegroundCardPrimary | string |
marketplaceForegroundCardSecondary | string |
marketplaceForegroundCardTertiary | string |
font | string |
Responses
200
Establishment created successfully.
{
"message": "Establishment created successfully"
"establishmentId": "123e4567-e89b-12d3-a456-426614174000"
}
500
Internal server error when the establishment creation fails.
{
"message": "Failed to create establishment"
"error": "Error message with details"
}
GET /establishments/[establishmentId]
Returns an establishment
Endpoint
GET/establishments/{establishmentId}
Parameters
Attribute | Description | Type |
---|---|---|
establishmentId | Establishment ID to be queried | string |
Responses
200
Establishment data retrieved successfully.
{
"establishmentId": "undefined"
"name": "undefined"
"email": "undefined"
"payment_plan_id": "undefined"
}
400
Bad request due to missing establishmentId parameter.
{
"message": "Missing establishmentId parameter"
}
404
Establishment not found.
{
"message": "Establishment not found"
}
500
Internal server error when the request fails due to a server-side issue.
{
"message": "Failed to get establishment"
"error": "Error message with details"
}
PUT /establishments/[establishmentId]
Updates details of a given establishment
Endpoint
PUT/establishments/{establishmentId}
Request Body
{
"payment_plan_id": "string"
"name": "string"
"email": "string"
"description": "string"
"location": "string"
"defaultCurrency": "string"
"monthlyAllocatedCoins": "string"
"status": "string"
"parentCasinoId": "string"
"accountManagerId": "string"
"backgroundPrimary": "string"
"foregroundPrimary": "string"
"backgroundSecondary": "string"
"foregroundSecondary": "string"
"backgroundSidebarPrimary": "string"
"backgroundSidebarSecondary": "string"
"marketplaceBackground": "string"
"marketplaceForegroundPrimary": "string"
"marketplaceForegroundSecondary": "string"
"marketplaceBackgroundCard": "string"
"marketplaceForegroundCardPrimary": "string"
"marketplaceForegroundCardSecondary": "string"
"marketplaceForegroundCardTertiary": "string"
"font": "string"
}
Attribute | Type |
---|---|
payment_plan_id | string |
name | string |
string | |
description | string |
location | string |
defaultCurrency | string |
monthlyAllocatedCoins | string |
status | string |
parentCasinoId | string |
accountManagerId | string |
backgroundPrimary | string |
foregroundPrimary | string |
backgroundSecondary | string |
foregroundSecondary | string |
backgroundSidebarPrimary | string |
backgroundSidebarSecondary | string |
marketplaceBackground | string |
marketplaceForegroundPrimary | string |
marketplaceForegroundSecondary | string |
marketplaceBackgroundCard | string |
marketplaceForegroundCardPrimary | string |
marketplaceForegroundCardSecondary | string |
marketplaceForegroundCardTertiary | string |
font | string |
Parameters
Attribute | Description | Type |
---|---|---|
establishmentId | Unique identifier of the establishment | string |
Responses
200
Establishment details updated successfully
400
Bad request, invalid input
{
"error": "string"
}
500
Server error
{
"error": "string"
}