Switch the merchant operational presence to online mode, indicating active readiness to execute orders across peer-to-peer (C2C) listings.
/sapi/v1/c2c/merchant/getOnlineThis endpoint transitions a merchant's presence status to online on the Binance C2C (P2P) market. Activating online presence displays an active indicator next to the merchant profile, reassuring counterparties that trades will receive immediate attention and rapid processing.
Automated trading software, bot scripts, and merchant terminals trigger this endpoint during startup routines, shift commencements, or when recovering from temporary disconnections.
01
Header parameters accepted by the endpoint.
| Header | Type | Required | Description |
|---|---|---|---|
clientType | STRING | Required | Client Device Type initiating the request (e.g., WEB, APP, WEB_MOBILE). |
x-gray-env | STRING | Optional | Environment flag identifier used for internal gray/stage testing. |
x-trace-id | STRING | Optional | Custom client trace ID for request lifecycle tracking and debugging. |
x-user-id | STRING | Optional | Target user identifier for merchant permission checks. |
HTTP POST with Empty Body
No JSON payload body is required. Simply pass the mandatory clientType header inside the HTTP Request Headers.
02
Example POST request using cURL to set merchant presence online.
curl -X POST \
'https://api.binance.com/sapi/v1/c2c/merchant/getOnline' \
-H 'clientType: WEB'03
Example response returned on successful execution.
{
"code": "000000",
"message": "success",
"data": null,
"success": true
}| Field | Type | Description |
|---|---|---|
code | STRING | Standard Binance status code ("000000" indicates success). |
message | STRING | Response execution feedback or status description. |
data | NULL / VOID | Void return payload on successful execution. |
success | BOOLEAN | Indicates overall request execution result. |
04
Workflow for setting merchant presence online.
code: "000000".Bot Startup Initialization
Ensure trading bots automatically flag the merchant account online upon launch and successful balance checks.
Shift Commencement
Quickly signal operator readiness at the start of operating shifts.
Reconnection Recovery
Re-establish active online status automatically after handling network reconnects or server maintenance.