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.
  1. 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
  2. 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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Client settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/clientSettings
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/clientSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"cafe_info_kiosk_bg\": \"ixkolowyuffszfr\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}" \
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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.

Body Parameters

Example request:
curl --request PUT \
    "https://api.icafecloud.com/api/v2/cafe//configs/loyaltySettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Games settings

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/gamesSettingsSet
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/gamesSettingsSet" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"game_auto_launch_delay\": [
        {
            \"delay\": 52
        }
    ]
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}" \
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}
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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Report settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/reportSettings
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/reportSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Time settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/timeSettings
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/timeSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Download steam update script

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/downloadSteamScript
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 GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/downloadSteamScript" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"steam_update_account\": null,
    \"steam_update_password\": null,
    \"steam_update_email_imap_ssl_server\": null,
    \"steam_update_email_account\": null,
    \"steam_update_email_password\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

POS settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/posSettings
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/posSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Store settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/storeSettings
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/storeSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Client print settings

PUT
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/clientPrintSettings
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/clientPrintSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Get center config image

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/image/{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//configs/action/image/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Get sub licenses list

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/configs/action/subLicenses
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/subLicenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Get client background image

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

Headers

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

URL Parameters

cafeId
integer
required

Cafe ID.

Query Parameters

name
string
required

Image name.

Example:
iCafeBackground1.jpg

Body Parameters

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//configs/action/clientBgImage?name=iCafeBackground1.jpg" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"culpa\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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,
                "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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Set out of order

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

Toggle the enabled/disabled (out of order) status for one or more PCs.

Headers

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

URL Parameters

cafeId
integer
required

The ID of the cafe.

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\": [
        {
            \"pc_name\": null,
            \"pc_enabled\": null
        }
    ]
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}]\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

PCs lists

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

Returns PCs for the cafe and all sub-cafes in the same company group, each with live session status. Times are in each cafe's local timezone.

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_in_using": 1,
            "status_member_id": 1234,
            "status_member_account": "ABCD",
            "status_member_offer_id": 0,
            "status_pay_by_member_id": 0,
            "status_connect_time_local": "2024-01-01 10:00:00",
            "status_disconnect_time_local": "2024-01-01 12:00:00",
            "status_connect_time_duration": "02:00:00",
            "status_connect_time_left": "-00:30:00"
        }
    ]
}

PCs lists

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

Returns PCs for the cafe and all sub-cafes in the same company group, each with live session status. Times are in each cafe's local timezone.

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_in_using": 1,
            "status_member_id": 1234,
            "status_member_account": "ABCD",
            "status_member_offer_id": 0,
            "status_pay_by_member_id": 0,
            "status_connect_time_local": "2024-01-01 10:00:00",
            "status_disconnect_time_local": "2024-01-01 12:00:00",
            "status_connect_time_duration": "02:00:00",
            "status_connect_time_left": "-00:30:00"
        }
    ]
}

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,
                "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"
            }
        ]
    }
}

PC list detailed

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcList
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//pcList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

list of online PCs name

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/onlinePcList
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//onlinePcList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Set login lock

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

Lock or unlock login access for one or more PCs (pc_enabled = 2 = locked, 1 = normal). Maintenance (pc_enabled = 0) takes precedence and is not affected by this endpoint.

Headers

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

URL Parameters

cafeId
integer
required

The ID of the cafe.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//pcs/action/setLoginLock" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pcs\": [
        {
            \"pc_name\": null,
            \"locked\": null
        }
    ]
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Build power-on QR code URLs for the given PCs

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

Returns one fixed, signed scan-to-power-on URL per PC. The signature is deterministic (same PC always yields the same URL), so the printed QR stays valid for the machine's lifetime. The host is the central domain app.icafecloud.com — the app resolves the cafe's current server from cafe_id, so a server migration does not require reprinting.

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/poweronQr" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_names\": null
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "items": [
            {
                "pc_name": "PC01",
                "url": "https://app.icafecloud.com/scan.htm?action=poweron&cafe_id=7777&pc=PC01&sign=..."
            }
        ]
    }
}

Generate 4 digits PIN for TV

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/generateTVPin
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/pcs/action/generateTVPin" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"tv_pc_name\": null
}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "pin": "1234"
    }
}

Get PC layout init data for kiosk

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/layoutScreen
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/layoutScreen" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": {
        "rooms": {},
        "pc_list": "",
        "credentials": {}
    }
}

PC list detailed

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcs/action/pcList
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/pcList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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\",
    \"product_adult_only\": 0,
    \"product_kitchen_staff_id\": 12
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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\",
    \"product_adult_only\": 0,
    \"product_kitchen_staff_id\": 12
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Restock

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}/restock
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.

Query Parameters

restock_count
string
required
Example:
culpa
restock_comment
string
restock_cost
string

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//products//restock?restock_count=culpa" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"restock_count\": null,
    \"restock_cost\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Write off

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}/writeOff
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 POST \
    "https://api.icafecloud.com/api/v2/cafe//products//writeOff" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"count\": null,
    \"comment\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Shift stock logs

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

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

shiftId
integer
required

Cafe ID.

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//products/action/shiftStockLogs/" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Stock realtime

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/action/stockRealtime
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//products/action/stockRealtime" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Restore product

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}/restore
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 POST \
    "https://api.icafecloud.com/api/v2/cafe//products//restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Archive product

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/{productId}/archive
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 POST \
    "https://api.icafecloud.com/api/v2/cafe//products//archive" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Export csv template

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/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//products/action/exportTemplate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Import product from csv

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/products/action/importProductsByCsv
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//products/action/importProductsByCsv" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Get member shop data

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/memberShop
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//memberShop" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Init all refer code

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/promo/init_all_refer_code
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/init_all_refer_code" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Promo info

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/promoInfo
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 GET \
    --get "https://api.icafecloud.com/api/v2/cafe//promoInfo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"promo_code\": \"culpa\",
    \"promo_bonus_for\": \"culpa\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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,
    \"member_offer_id\": 12
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}" \
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Transfer session: snapshot source PC's bill and attach it to target member; end source session.

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/transferPayment
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/transferPayment" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"source_pc_name\": null,
    \"target_pc_name\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

List unreturned devices for current PC session

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/devices
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.

Body Parameters

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcSessions/devices?pc_name=" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": \"culpa\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Add a device to current session

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/addDevices
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/addDevices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"item_name\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Return a device

POST
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/returnDevice
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/returnDevice" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null,
    \"uid\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Usage history

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/usageHistory
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 GET \
    --get "https://api.icafecloud.com/api/v2/cafe//pcSessions/usageHistory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --data "{
    \"pc_name\": null
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Member session history

GET
https://api.icafecloud.com
/api/v2/cafe/{cafeId}/pcSessions/{memberId}/memberSessionHistory
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//pcSessions//memberSessionHistory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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,
            "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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

Import third-party diskless database

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

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
multipart/form-data

URL Parameters

cafeId
integer
required

Cafe ID.

Body Parameters

Example request:
curl --request POST \
    "https://api.icafecloud.com/api/v2/cafe//bootPcs/action/import" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --form "file_type="\
    --form "db_file=@/tmp/phpDGleSE" 
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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,
    \"product_icon\": \"kymwkiinfowtzmi\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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,
    \"product_icon\": \"kymwkiinfowtzmi\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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
access-control-allow-origin: *
{
    "code": 404,
    "message": "Url not match"
}

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": "$"
    }
}

Balance history

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

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

memberId
integer
required

Member ID.

Query Parameters

page
integer

Page number (1 - n).

Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members//balanceHistory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response:
{
    "code": 200,
    "message": "success",
    "data": []
}

Get member orders

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

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}

URL Parameters

cafeId
integer
required

Cafe ID.

memberId
integer
required

Member ID.

Query Parameters

search_text
string
page
string
sort_name
string
sort
string
Example request:
curl --request GET \
    --get "https://api.icafecloud.com/api/v2/cafe//members//orders" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
Example response: