Introduction

This documentation aims to provide all the information you need to work with our API.

About API endpoint URL

The endpoint URL is https://api.icafecloud.com

API Wiki

Getting Started

The following instructions explain how to generate and use the API

  1. When switching the iCafeCloud license between master and slave servers (EU3 to EU4), there is no need to update the API, as it remains unchanged. However, if you switch to a different server group ( EU3 to EU18), the API key must be recreated.
  2. Log in to the Admin panel using the "Admin" account, as only the Admin account can create APIs.
  3. You must use a static IP or a VPS, as the IP will be bound to the token. To ensure optimal API usage, it is recommended to make API calls from a static IP server, such as a VPS, rather than directly from a client device.
  4. You can use either IPv4 or IPv6 for the API IP.
  5. To add more than one IP to the list, separate them with commas ( IP1, IP2, IP3).
  6. To assist users in identifying their exact IP address during troubleshooting, the system will now include the user's IP address directly in error message
    {"code": 401, "message'": "Unauthorization from YOUR_IP"}
  7. From the "Settings" page of the Cloud Panel, add the IP you selected as your server IP under "API Access IP." Then, generate your API key by clicking the "Create" button.
  8. Note that the API key is valid for one year.
  9. The API address is fixed as api.icafecloud.com
  10. Once you create a new API key, the old API key will become invalid. We only support one API key at a time.
  11. Click the "Copy" button and save your api key. It's only shown once.
  12. API docs https://dev.icafecloud.com/docs/
  13. You need to add a http header with the "Authorization: Bearer api_key" to authenticate the API access.
  14. To add parameters on the API use Body and not Headers.[On postman can use Body , Form-data and add parameters.
  15. The API endpoint URL should always use HTTPS not HTTP.
  16. You can try the API directly on the iCafeCloud dev.icafecloud.com. Follow these steps:
    • Click the link to https://dev.icafecloud.com/docs/#boot-pcs-apis
    • Fill in the Bearer token and CafeID, which you can find in your iCafeCloud license.
    • Click "Send Request" to retrieve data from the PCs.
    • This process allows you to interact with and test the API functionalities effectively.
  17. Notify balance changes to client PC. Once you've initiated the top-up API call, the next step would be to call the pushClientstatus API. This step is crucial as it ensures that the client's PC is notified of the update
  18. For the API to auto add bonus on topup use:
    • To get the bonus = POST api/v2/cafe/{cafeId}/members/action/fetchBonus
    • And use it as parameter at = POST api/v2/cafe/{cafeId}/members/action/topup -> topup_balance_bonus

Get parameters format in API

Last Updated: Apr 26, 2024

This is how to find API parameters using the console.

  1. To identify the parameters for the APIs, open the Chrome console and navigate to the Network tab. Perform an action from the iCafeCloud panel, and you will find the parameters in the Network tab. For example: you can purchase an offer as a member. In the console, you will be able to locate the parameters being used for this action. (Figure 1)

API limitations

Last Updated: 2024-04-26

Api load ate limitation is 200 request per minute

Max limit for some operations:

  • const MAX_STAFF = 100;
  • const MAX_MEMBERGROUP = 100;
  • const MAX_MEMBER = 50000;
  • const MAX_NEWS = 100;
  • const MAX_PRICE = 100;
  • const MAX_PRODUCTGROUP = 100;
  • const MAX_PRODUCT = 500;
  • const MAX_OFFER = 1000;
  • const MAX_PCGROUP = 100;
  • const MAX_PC = 500;
  • const MAX_ROOM = 100;
  • const MAX_PAUSE = 100;
  • const MAX_BOOTPC = 500;
  • const MAX_HARDWARE = 100;
  • const MAX_GAMECLASS = 100;
  • const MAX_GAME = 1000;
  • const MAX_POOL = 100;
  • const MAX_POOLLICENSE = 100;
  • const MAX_EVENT = 100;
  • const MAX_IDCCONFIG = 100;
  • const MAX_IDCCLASS = 100;
  • const MAX_ORDER = 5000;

Get member id by member account via API

Last Updated: Oct 11, 2024

Retrieve a member ID using a member account via the API

  1. To retrieve the member ID using member accounts via the API, refer to the API in the link below.(Figure 1)
    https://dev.icafecloud.com/docs/#members-apis-POSTapi-v2-cafe--cafeId--members-action-memberInfo

Get CCBoot Client status via API

Last Updated: Oct 11, 2024

How to get ccboot client status by api

  1. Get CCBoot client status by wss command front he link below
    https://dev.icafecloud.com/docs/#pc-sessions-apis-POSTapi-v2-cafe--cafeId--pcSessions-sendWssCommand
  2. For command use “pc_status”
    {"action":"pcs_status","target":"boot","type":"request","from":"web","version":2,"data":[]}

Remote reboot CCBoot Client via API

Last Updated: Oct 11, 2024

How to reboot ccboot client by api

  1. To send a reboot command to a client PC via the API, find the appropriate API in the link below.
    https://dev.icafecloud.com/docs/#pc-sessions-apis-POSTapi-v2-cafe--cafeId--pcSessions-sendWssCommand
  2. For command use “power” (Figure 1)
  3. We support 3 different commands as "reboot", "shutdown", "poweron"
    {"action":"power", "target":"boot","data":{"power_type":"reboot","ids":[24]}}

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Settings -> API settings -> Create, Generate API token (We only support one API token).

Config APIs

Center settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/centerSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/centerSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"timezone\": null
}"

Client settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/clientSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/clientSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \

Game settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/gameSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/gameSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \

Payment settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/paymentSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/paymentSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Layalty settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/loyaltySettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/loyaltySettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Member settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/memberSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/memberSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Protection setting

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/protectionSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/protectionSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Shop settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/shopSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/shopSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Generate API key

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/generateApiKey
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

api_key_ips
string
required

IPs.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//configs/action/generateApiKey" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"api_key_ips\": \"culpa\"
}"

Set games button status

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/gamesButtonStatusSet
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//configs/action/gamesButtonStatusSet" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"show_enable_games\": 12,
    \"show_disabled_games\": 12,
    \"show_games_icon_view\": 12
}"

Games settings

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/gamesSettingsSet
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//configs/action/gamesSettingsSet" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \

SMS provider settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/smsProviderSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/smsProviderSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \

Get config lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}
GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/centerLogo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/centerLogo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:

Get games button status

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/gamesButtonStatusGet
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/gamesButtonStatusGet" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get games settings

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/gamesSettingsGet
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/gamesSettingsGet" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Tax info

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/taxInfo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/taxInfo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Vnc server code

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/vncServerCode
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/vncServerCode" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get center config image

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/memberNewsConfigImage/{key}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

key
string
required

Cinfig key.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//memberNewsConfigImage/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

PCs APIs

Get rooms

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/member_rooms
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcs/action/member_rooms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "area_icafe_id": 7777,
            "area_name": "VIP",
            "area_index": 0,
            "area_frame_x": 20,
            "area_frame_y": 50,
            "area_frame_width": 560,
            "area_frame_height": 440,
            "area_allow_booking": 1
        }
    ]
}

Update PCs

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null,
    \"edit_pc_name\": null,
    \"edit_pc_group_id\": 1,
    \"edit_pc_console_type\": 1
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "pcs": [
            {
                "pc_icafe_id": 7777,
                "pc_ip": "192.168.1.140",
                "pc_name": "compuspler",
                "pc_mac": "5A-9A-9B-26-DD-C4",
                "pc_comment": "",
                "pc_console_type": 0,
                "pc_group_id": 0,
                "pc_area_name": "VIP",
                "pc_box_position": "absolute",
                "pc_box_top": 300,
                "pc_box_left": 240,
                "pc_enabled": 1,
                "pc_mining_enabled": 0,
                "pc_mining_tool": "",
                "pc_mining_options": "",
                "recent_booking": null,
                "pc_group_name": null,
                "status_connect_time_local": "2025-03-10 00:26:40",
                "status_disconnect_time_local": "2025-03-10 02:26:40",
                "status_connect_time_duration": "187:10:01",
                "status_connect_time_left": "-185:10:01",
                "status_pay_by_member_id": 0,
                "member_id": 57843940664,
                "member_icafe_id": 7777,
                "member_account": "K93B83",
                "member_balance": "2.00",
                "member_balance_bonus": "0.00",
                "member_group_id": -2,
                "member_group_name": null,
                "member_group_desc": null,
                "member_group_discount_rate": null,
                "offer_in_using": null,
                "price_name": "Default",
                "status_total_time": "-185:10:01"
            }
        ]
    }
}

Delete PCs

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

For multi-PC editing

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/multiPcInfo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcs/action/multiPcInfo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Set out of order

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/setOutOfOrder
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcs/action/setOutOfOrder" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Get PC lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/getPcsList
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

pc_name
string
required

PC name.

pc_console_type
integer
required

Console type(1-Other,2-Xbox,3-PS3,4-PS4,5-PS5,6-Will).

Body Parameters

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcs/action/getPcsList?pc_name=&pc_console_type=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": \"culpa\",
    \"pc_console_type\": 12
}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Save PC layout

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/savePcLayout
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcs/action/savePcLayout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"room_list\": \"[{\\\"area_frame_x\\\":20,\\\"area_frame_y\\\":50,\\\"area_frame_width\\\":560,\\\"area_frame_height\\\":440,\\\"area_name\\\":\\\"VIP\\\",\\\"area_allow_booking\\\":1}]\",
    \"pc_list\": \"[{\\\"pc_name\\\":\\\"C01-1\\\",\\\"pc_area_name\\\":\\\"VIP\\\",\\\"pc_box_position\\\":\\\"absolute\\\",\\\"pc_box_top\\\":300,\\\"pc_box_left\\\":96}]\"
}"

Get rooms

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/rooms
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcs/action/rooms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "area_icafe_id": 7777,
            "area_name": "VIP",
            "area_index": 0,
            "area_frame_x": 20,
            "area_frame_y": 50,
            "area_frame_width": 560,
            "area_frame_height": 440,
            "area_allow_booking": 1
        }
    ]
}

Console details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/consoleDetail
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

pc_name
string
required

PC name.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcs/action/consoleDetail?pc_name=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

PCs lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/member_pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcs/action/member_pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "pc_icafe_id": 7777,
            "pc_ip": "",
            "pc_name": "C01-1",
            "pc_mac": "",
            "pc_comment": "A",
            "pc_console_type": 6,
            "pc_group_id": 0,
            "pc_area_name": "VIP",
            "pc_box_position": "absolute",
            "pc_box_top": 300,
            "pc_box_left": 144,
            "pc_enabled": 1,
            "pc_mining_enabled": 0,
            "pc_mining_tool": "",
            "pc_mining_options": "",
            "pc_in_using": 0
        }
    ]
}

PCs lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "pc_icafe_id": 7777,
            "pc_ip": "",
            "pc_name": "C01-1",
            "pc_mac": "",
            "pc_comment": "A",
            "pc_console_type": 6,
            "pc_group_id": 0,
            "pc_area_name": "VIP",
            "pc_box_position": "absolute",
            "pc_box_top": 300,
            "pc_box_left": 144,
            "pc_enabled": 1,
            "pc_mining_enabled": 0,
            "pc_mining_tool": "",
            "pc_mining_options": "",
            "pc_in_using": 0
        }
    ]
}

Add PC

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"pc_console_type\": 1,
    \"pc_group_id\": 1
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "pcs": [
            {
                "pc_icafe_id": 7777,
                "pc_ip": "192.168.1.140",
                "pc_name": "compuspler",
                "pc_mac": "5A-9A-9B-26-DD-C4",
                "pc_comment": "",
                "pc_console_type": 0,
                "pc_group_id": 0,
                "pc_area_name": "VIP",
                "pc_box_position": "absolute",
                "pc_box_top": 300,
                "pc_box_left": 240,
                "pc_enabled": 1,
                "pc_mining_enabled": 0,
                "pc_mining_tool": "",
                "pc_mining_options": "",
                "recent_booking": null,
                "pc_group_name": null,
                "status_connect_time_local": "2025-03-10 00:26:40",
                "status_disconnect_time_local": "2025-03-10 02:26:40",
                "status_connect_time_duration": "187:10:01",
                "status_connect_time_left": "-185:10:01",
                "status_pay_by_member_id": 0,
                "member_id": 57843940664,
                "member_icafe_id": 7777,
                "member_account": "K93B83",
                "member_balance": "2.00",
                "member_balance_bonus": "0.00",
                "member_group_id": -2,
                "member_group_name": null,
                "member_group_desc": null,
                "member_group_discount_rate": null,
                "offer_in_using": null,
                "price_name": "Default",
                "status_total_time": "-185:10:01"
            }
        ]
    }
}

Boot hardware APIs

Boot hardware lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootHardwareProfiles
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootHardwareProfiles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add boot hardware

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootHardwareProfiles
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

hardware_id
integer
required

Hardware ID.

hardware_desc
string
required

Description.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//bootHardwareProfiles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"hardware_id\": \"culpa\",
    \"hardware_desc\": \"culpa\"
}"

Delete boot hardware

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootHardwareProfiles/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//bootHardwareProfiles/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Products APIs

Get product lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

product_group_id
string

Product group ID.

search_text
string

Search text.

sort_name
string

Sort by name.

sort
string

Sort(options:desc,asc).

Example:
desc
page
integer

Page number.

Example:
1
Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//products?sort=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get product details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//products/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add product

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_name\": null,
    \"product_group_id\": null,
    \"product_show_weekday\": \"7|1|2|3|4|5|6|\",
    \"product_show_time\": \"00:00-24:00\"
}"

Update products

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//products/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_name\": null,
    \"product_group_id\": null,
    \"product_show_weekday\": \"7|1|2|3|4|5|6|\",
    \"product_show_time\": \"00:00-24:00\"
}"

Delete product

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//products/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Restock

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}/restock
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

restock_count
integer
required

Restock count.

Query Parameters

restock_count
string
required
Example:
culpa
Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//products//restock?restock_count=culpa" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Import product

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/action/importProducts
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//products/action/importProducts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"license_name\": null,
    \"license_password\": null
}"

Delete product combo item

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}/productComboItem
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Body Parameters

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//products//productComboItem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_source\": null,
    \"product_id\": null
}"

News APIs

Get news lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/news
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//news" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add news

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/news
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//news" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"news_name\": null,
    \"news_order\": null,
    \"news_url\": null,
    \"news_type\": null
}"

Update news

PUT
PATCH
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/news/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//news/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"news_name\": null,
    \"news_order\": null,
    \"news_url\": null,
    \"news_type\": null
}"

Delete news

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/news/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//news/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Get news lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/memberNews
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//memberNews" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Boot disks APIs

Boot game fix lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootGamefixes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootGamefixes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add boot game fix

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootGamefixes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//bootGamefixes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"gamefix_name\": null,
    \"gamefix_path\": null
}"

Delete boot game fix

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootGamefixes
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//bootGamefixes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": null
}"

Add boot disk

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootDisks
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//bootDisks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"disk_drive\": null,
    \"disk_type\": \"unused\",
    \"disk_cache_ram_size_m\": 15,
    \"disk_cache_ssd_size_m\": 0
}"

Update boot disk

PUT
PATCH
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootDisks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//bootDisks/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"disk_drive\": null,
    \"disk_type\": \"unused\",
    \"disk_cache_ram_size_m\": 15,
    \"disk_cache_ssd_size_m\": 0
}"

Delete boot disk

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootDisks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//bootDisks/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Boot disk lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootDisks
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootDisks" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "disk_id": 8,
            "disk_icafe_id": 7777,
            "disk_drive": "U:",
            "disk_type": "unused",
            "disk_cache_ram_size_m": 0,
            "disk_cache_ssd_size_m": 0,
            "disk_drive_client": "",
            "disk_user_group": -2
        }
    ]
}

Boot disk details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootDisks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootDisks/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "info": {
            "disk_id": 1,
            "disk_icafe_id": 7777,
            "disk_drive": "D:",
            "disk_type": "game",
            "disk_cache_ram_size_m": 15,
            "disk_cache_ssd_size_m": 0,
            "disk_drive_client": "",
            "disk_user_group": 1731927
        },
        "group_list": [
            {
                "pc_group_icafe_id": 7777,
                "pc_group_id": 1730280,
                "pc_group_name": "Col1",
                "pc_group_desc": "Col1"
            }
        ]
    }
}

Promo APIs

Get promo lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/promo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//promo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add promo

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/promo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//promo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"promo_name\": null,
    \"promo_qty\": null,
    \"promo_bonus_type\": null,
    \"promo_bonus_amount\": null,
    \"promo_bonus_for\": null
}"

Update promo

PUT
PATCH
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/promo/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Promo ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//promo/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"promo_name\": null,
    \"promo_qty\": null,
    \"promo_bonus_type\": null,
    \"promo_bonus_amount\": null,
    \"promo_bonus_for\": null
}"

Delete promo

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/promo/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Promo ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//promo/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

PC sessions APIs

Get payment info

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/paymentInfo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/paymentInfo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Init add time money

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/initAddTimeMoney
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/initAddTimeMoney" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null,
    \"pc_add_value\": null,
    \"pc_add_time_type\": null
}"

Init offer

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/initOffer
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/initOffer" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Topup balance and start/update session

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/addTimeMoney
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/addTimeMoney" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"pc_cost\": null,
    \"payment_method\": null
}"

Member session

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/memberSession
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/memberSession" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"member_account\": null
}"

Postpaid session

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/postpaidSession
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/postpaidSession" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Add offer

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/addOffer
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/addOffer" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null,
    \"offer_id\": null,
    \"offer_payment_method\": null
}"

Free session

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/freeSession
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/freeSession" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Checkout

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/checkout
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/checkout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"pc_group_id\": null,
    \"member_id\": null,
    \"member_account\": null,
    \"member_group_id\": null,
    \"pc_cost\": null,
    \"pc_data_time\": null,
    \"pc_data_sign\": null,
    \"payment_method\": null,
    \"auto\": null
}"

Move

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/move
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/move" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"move_to\": null
}"

Add admin message

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/adminMessage
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/adminMessage" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"member_account\": null,
    \"message\": null
}"

Cashier expense

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/cashierExpense
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/cashierExpense" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"balance\": null
}"

Push client status

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/pushClientStatus
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/pushClientStatus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \

Send wss command

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/sendWssCommand
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcSessions/sendWssCommand" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"command\": null
}"

Boot PCs APIs

Get boot PC lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootPcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "bpc_id": 2,
            "bpc_icafe_id": 7777,
            "bpc_name": "PC131",
            "bpc_enable": 1,
            "bpc_name_auth": 0,
            "bpc_ip": "192.168.17.131",
            "bpc_ip_auth": 1,
            "bpc_mac": "00:0C:29:1D:74:79",
            "bpc_mac_auth": 1,
            "bpc_password": "",
            "bpc_password_auth": 0,
            "bpc_groupid": 0,
            "bpc_image1_id": 1101,
            "bpc_image2_id": 0,
            "bpc_write_back_keep": 0,
            "bpc_diskless_boot_pxe": "ipxe.pxe",
            "bpc_diskless_boot_gw": "",
            "bpc_diskless_boot_dns1": "",
            "bpc_diskless_boot_dns2": "",
            "bpc_diskless_boot_hw": "",
            "bpc_diskless_boot_server": "192.168.17.131",
            "bpc_diskless_boot_display_enable": 0,
            "bpc_diskless_boot_display": "",
            "bpc_diskless_boot_client_cache_enable": 0,
            "bpc_diskless_boot_client_cache": "0",
            "bpc_diskless_boot_upload": 0,
            "bpc_diskless_boot_client_cache_to_local": 0,
            "bpc_personal_disk_enable": 0,
            "bpc_personal_disk_path": "",
            "bpc_personal_disk_size": "",
            "bpc_newip": 0,
            "bpc_device_in_super": 0,
            "bpc_enable_failover": 0,
            "bpc_last_time": "2022-12-10 05:36:53",
            "bpc_ven_dev": "",
            "bpc_child_image_name": "Default",
            "bpc_comment": "",
            "bpc_color": "#FFFFFF",
            "bpc_cpu": null,
            "bpc_mb": null,
            "bpc_vga": null,
            "bpc_ram": null,
            "bpc_nic_description": null,
            "bpc_mining_enabled": 0,
            "bpc_mining_tool": "",
            "bpc_mining_options": "",
            "image1_name": "WIN7",
            "image2_name": null,
            "hw_hardware_id": "",
            "pc_group_name": null,
            "boot_image": "WIN7",
            "hardware_profile": "Default",
            "client_cache": "N/A",
            "status": "Offline"
        }
    ]
}

Get boot PC details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootPcs/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add boot PC

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//bootPcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"bpc_name\": null
}"

Update boot PC

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/{bpcId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

bpcId
string
required
Example:
culpa
bcpId
integer
required

BCP ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//bootPcs/culpa" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"bpc_name\": null
}"

Delete boot PC

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/{bpcId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

bpcId
string
required
Example:
culpa
bcpId
integer
required

BCP ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//bootPcs/culpa" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Enable super client init

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/{bpcId}/enableSuperClientInit
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

bpcId
string
required
Example:
culpa
bcpId
integer
required

BCP ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootPcs/culpa/enableSuperClientInit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Disable super client init

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/{bpcId}/disableSuperClientInit
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

bpcId
string
required
Example:
culpa
bcpId
integer
required

BCP ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootPcs/culpa/disableSuperClientInit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Keep write back

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/{bpcId}/keepWriteBack
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

bpcId
string
required
Example:
culpa
bcpId
integer
required

BCP ID.

Body Parameters

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootPcs/culpa/keepWriteBack" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"enable\": null
}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get Empty PC

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/action/emptyPc
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//bootPcs/action/emptyPc" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Update multiple boot PCs

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/bootPcs/action/updateMulti
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//bootPcs/action/updateMulti" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"ids\": null
}"

Game classes APIs

Get game classes lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/gameClasses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//gameClasses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add game classes

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/gameClasses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//gameClasses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"class_name\": null
}"

Update game classes

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/gameClasses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//gameClasses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"class_name\": null,
    \"class_order\": null,
    \"class_name_old\": null
}"

Delete game classes

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/gameClasses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//gameClasses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"class_name\": \"culpa\"
}"

Product groups APIs

Get product group lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/productGroups
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//productGroups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "items": [
            {
                "product_group_icafe_id": 7777,
                "product_group_id": -1,
                "product_parent_group_id": 97664172,
                "product_group_name": "Offers",
                "product_group_desc": "",
                "product_group_icon": null,
                "product_group_update": "2022-11-30 17:03:37",
                "product_group_payment_method": "{\"guest\": [\"cash\", \"credit_card\", \"balance\"], \"member\": [\"cash\", \"credit_card\", \"balance\"]}",
                "has_icon": 0
            }
        ]
    }
}

Add product group

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/productGroups
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//productGroups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_group_name\": null
}"

Update product group

PUT
PATCH
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/productGroups/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Product group ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//productGroups/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_group_name\": null
}"

Delete product group

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/productGroups/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Product group ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//productGroups/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Pools APIs

Get pool lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pools" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get pool details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Pool ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pools/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add pool

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pools" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pool_name\": null,
    \"game_ids\": \"1,2,3\",
    \"pc_group_ids\": \"1,2,3\",
    \"member_group_ids\": \"1,2,3\"
}"

Update pool

PUT
PATCH
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Pool ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//pools/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pool_name\": null,
    \"game_ids\": \"1,2,3\",
    \"pc_group_ids\": \"1,2,3\",
    \"member_group_ids\": \"1,2,3\"
}"

Delete pool

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{id}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

id
integer
required

Pool ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//pools/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Offers APIs

Get offers details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/offers/{productId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//offers/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add offers

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/offers
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//offers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_name\": null
}"

Update offers

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/offers/{productId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//offers/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"product_name\": null
}"

Delete offers

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/offers/{productId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//offers/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Check offers

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/offers/{productId}/check
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

productId
integer
required

Product ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//offers//check" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Members APIs

Get member details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/{memberId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

memberId
integer
required

Member ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "member": {
            "member_id": 57843940635,
            "member_icafe_id": 7777,
            "member_account": "test13",
            "member_balance": "138.00",
            "member_first_name": "asd",
            "member_last_name": "as",
            "member_birthday": "1990-10-10",
            "member_expire_time_local": "2028-01-01",
            "member_is_active": 1,
            "member_photo": "",
            "member_email": "",
            "member_telegram_username": "",
            "member_telegram_username_valid": 0,
            "member_phone": "",
            "member_id_card": "",
            "member_points": "137.00",
            "member_create": "2023-01-12T08:57:48.000000Z",
            "member_update": "2025-03-09T09:59:48.000000Z",
            "member_group_id": 143598,
            "member_balance_bonus": "94.00",
            "member_coin_balance": "-1.00",
            "member_sex": 0,
            "member_comments": "abcabc",
            "member_address": "",
            "member_company_id": 0,
            "member_loan": "0.00",
            "member_recent_played": null,
            "member_id_icafe_id": 578439406357777,
            "member_oauth_user_id": "0",
            "member_oauth_platform": "account",
            "member_balance_with_loan": "138.00",
            "member_group_name": "ab4"
        },
        "member_groups": [
            {
                "member_group_id": 143567,
                "member_group_name": "VIP7776"
            }
        ],
        "orders": [],
        "total_amount": 0,
        "currency": "$"
    }
}

Add member

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_account\": null,
    \"member_password\": null,
    \"payment_method_credit_card\": \"on\",
    \"member_balance\": 0,
    \"member_group_id\": 0,
    \"member_is_active\": 1,
    \"member_oauth_platform\": \"account\"
}"

Update member

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/{memberId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

memberId
string
required
Example:
culpa

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//members/culpa" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_group_id\": 0,
    \"member_is_active\": 1,
    \"member_oauth_platform\": \"account\"
}"

Verify member info

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/memberInfo
requires authentication

verify password, get member id from member name

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/memberInfo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_account\": null
}"

Add guest account

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/addGuest
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/addGuest" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_expire_time_local\": null,
    \"member_balance\": 100.5,
    \"payment_method_credit_card\": \"on\"
}"

Topup

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/topup
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/topup" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"topup_ids\": null,
    \"topup_value\": null
}"

Add loan

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/loan
requires authentication

add loan to member

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/loan" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"loan_id\": null,
    \"loan_value\": null
}"

Get topup bonus

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/fetchBonus
requires authentication

get bonus from topup

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/fetchBonus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \

Multiple update members

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/multiUpdate
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/multiUpdate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_ids\": null,
    \"member_is_active\": 1
}"

Reset member password

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/resetPassword
requires authentication

set password to 123456

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/resetPassword" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_ids\": null
}"

Reset member game coins

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/resetGameCoin
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/resetGameCoin" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Reset member game coins

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/resetPoint
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/resetPoint" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Multiple delete members

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/multiDelete
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/multiDelete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"member_ids\": null
}"

Get member settings

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/memberSettings
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/action/memberSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Export member to csv

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/export
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/action/export" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get center player rank url

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/rankingUrl
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/action/rankingUrl" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Search member

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/suggestMembers
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

search_text
string
required

search text.

has_detail
integer

the result includes details or not.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/action/suggestMembers?search_text=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get member offer list

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/{memberId}/offers
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

memberId
integer
required

Member ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members//offers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Export csv template

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/exportTemplate
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/action/exportTemplate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Import member from csv

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/import
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/import" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"

Import member by license name

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/importMembers
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//members/action/importMembers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"license_name\": \"culpa\",
    \"license_password\": \"culpa\"
}"

Get member lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

search_text
string

Search text.

search_field
string

Search field.

sort_name
string

Sort field(member_account,member_balance,member_balance_bonus,member_group_name,member_group_id,member_first_name,member_last_name,member_expire_time_local,member_is_active,member_coin_balance,member_points,member_phone,member_loan,member_comments,member_center_name,member_icafe_id,member_create,member_update,member_oauth_platform).

sort
string

Sort direction ('desc' or 'asc').

page
integer

Page number (1 - n).

guest
integer

Search guest or not (0, 1).

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "license_using_billing": 1,
        "point_enable": 1,
        "members": [
            {
                "member_id": 57843940663,
                "member_icafe_id": 7777,
                "member_account": "eva-aa1",
                "member_balance": "0.00",
                "member_first_name": "eva",
                "member_last_name": "aal",
                "member_birthday": "2021-01-25",
                "member_expire_time_local": "2028-01-01",
                "member_is_active": 1,
                "member_photo": "",
                "member_email": "",
                "member_telegram_username": "",
                "member_telegram_username_valid": 0,
                "member_phone": "",
                "member_id_card": "",
                "member_points": "0.00",
                "member_create": "2024-11-25 06:56:57",
                "member_update": "2024-11-25 07:07:00",
                "member_group_id": 143578,
                "member_balance_bonus": "0.00",
                "member_coin_balance": "0.00",
                "member_sex": 0,
                "member_comments": "bgko111",
                "member_address": "",
                "member_company_id": 0,
                "member_loan": "0.00",
                "member_recent_played": null,
                "member_id_icafe_id": "578439406637777",
                "member_oauth_user_id": "0",
                "member_oauth_platform": "account",
                "member_create_local": "2024-11-25 20:56:57",
                "member_update_local": "2024-11-25 21:07:00",
                "member_is_expired": 0,
                "member_is_logined": 0,
                "offers": 0,
                "member_group_discount_rate": 0,
                "member_group_discount_pc_time": 0,
                "member_group_discount_offer": 0,
                "member_group_name": "VIP2",
                "left_time": "0h 0m",
                "is_owner": true,
                "member_center_name": "Local"
            }
        ],
        "paging_info": {
            "total_records": 3080,
            "pages": 62,
            "page": "1",
            "page_prev": 1,
            "page_next": 2,
            "page_start": 1,
            "page_end": 6,
            "start_from": "0",
            "end_from": "50"
        },
        "member_remind_count": 0
    }
}

Get member init data

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/members/action/memberInitData
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members/action/memberInitData" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Customer feedback

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/customerFeedback
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//customerFeedback" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {}
}

Get real time balance

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/getRealTimeBalance
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
string
required
Example:
culpa
Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe/culpa/getRealTimeBalance" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
  "code": 200,
  "message": "success",
  "data": {
     "pc_cost": "1.00",
     "member_balance": "138.00",
     "member_balance_bonus": "94.00",
     "member_coin_balance": "-1.00",
  }
}

Manual pay confirm api

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/manual/pay
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
string
required
Example:
culpa

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe/culpa/manual/pay" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"order_no\": \"culpa\"
}"

Reports APIs

Report data

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/reports/reportData
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

date_start
string
required

Start date.

date_end
string
required

End date.

time_start
string
required

Start time.

time_end
string
required

End time.

log_staff_name
string

Staff name.

member_group_id
integer

Member group ID.

pc_group_id
integer

PC group ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//reports/reportData?date_start=&date_end=&time_start=&time_end=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Report chart

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/reports/reportChart
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

date_start
string
required

Start date.

date_end
string
required

End date.

log_staff_name
string

Staff name.

Example:
all
member_group_id
integer

Member group ID.

pc_group_id
integer

PC group ID.

chart_type
string

Chart type(income,totup,sale,product).

Example:
income
Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//reports/reportChart?date_start=&date_end=&log_staff_name=all&chart_type=income" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "series": [
            {
                "name": "Drink",
                "data": [
                    0,
                    0,
                    29
                ]
            }
        ],
        "categories": [
            "2025-03-01",
            "2025-03-02",
            "2025-03-03"
        ],
        "report": {
            "staff": "All",
            "report_start": "2025-03-01 00:00:00",
            "report_end": "2025-03-26 23:59:00"
        }
    }
}

Shift list

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/reports/shiftList
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

date_start
string
required

Start date.

date_end
string
required

End date.

time_start
string
required

Start time.

time_end
string
required

End time.

shift_staff_name
string
required

Staff name.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//reports/shiftList?date_start=&date_end=&time_start=&time_end=&shift_staff_name=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Shift detail

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/reports/shiftDetail/{shiftId}
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

shiftId
string
required
Example:
culpa
Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//reports/shiftDetail/culpa" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Mining APIs

Get mining centers

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/centers
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
string
required
Example:
culpa
Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe/culpa/mining/centers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get withdrawal details

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/withdrawalDetail
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
string
required
Example:
culpa

Query Parameters

page
integer

Page.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe/culpa/mining/withdrawalDetail" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get PC lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//mining/pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Update PC

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/pcs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//mining/pcs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": null
}"

Get current mining overall status

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/status
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//mining/status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Get current mining balance

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/balance
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//mining/balance" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Wallet logs

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/mining/walletLogs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

page
integer

Page.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//mining/walletLogs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Billiard APIs

Add/edit billiard table

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/saveAreaLayout
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcs/action/saveAreaLayout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"area_name\": null
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": true
}

Delete billiard table

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/removeAreaLayout
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//pcs/action/removeAreaLayout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"area_name\": null
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": true
}

Pool licenses APIs

Get pool license lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{poolId}/licenses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

poolId
integer
required

Pool ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pools//licenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Add pool license

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{poolId}/licenses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

poolId
integer
required

Pool ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pools//licenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"license_account\": null,
    \"license_password\": null
}"

Update pool license

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{poolId}/licenses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

poolId
integer
required

Pool ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//pools//licenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"license_account\": null,
    \"license_password\": null
}"

Delete pool license

DELETE
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{poolId}/licenses
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

poolId
integer
required

Pool ID.

Body Parameters

Example request:
curl --request DELETE \
    "https://api.icafecloud.com/api/v2/cafe//pools//licenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"license_account\": null
}"

Get pool license info

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{poolId}/licenses/action/licenseInfo
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

poolId
integer
required

Pool ID.

Query Parameters

account
string
required

Account.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pools//licenses/action/licenseInfo?account=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Unlock

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pools/{poolId}/licenses/action/unlock
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

poolId
integer
required

Pool ID.

Query Parameters

license_account
string
required

Account.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pools//licenses/action/unlock?license_account=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

license APIs

Get license info

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/license/info
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//license/info" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Update license info

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/license/info
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//license/info" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"license_email\": null,
    \"license_contact\": null,
    \"license_address\": null,
    \"license_latlng\": null,
    \"license_country\": null
}"

Activate serial number

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/license/active
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//license/active" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "code": 507,
    "message": "Too Many Attempts: 127.0.0.1"
}

Staffs APIs

Get staff lists

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/staffs
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//staffs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response: