Business lines enabled for this merchant (including automatic low-balance suspension)
enabled and halted are separate fields; do not merge them. halted is an automatic low-balance suspension, cleared automatically after you replenish prepayment. enabled = false means the line has not been enabled for you and requires contacting your account manager. An SDK that treats them as equivalent would interpret a suspension recoverable by topping up as a permanently disabled business line.
Order-entry availability should use the stricter combination: enabled && !halted.
Always returns all eight lines, including those not enabled for you. Filter according to your custody model. A missing row looks the same as an unavailable line to clients, so we do not filter them out.
Does not include wholesale prices or upstream costs. Those are commercial terms; see the merchant portal's pricing page.
Parameters
This endpoint takes no parameters: no path parameters, query parameters or request body.
For the authentication header (x-auth-token) and on-behalf-of header
(x-on-behalf-of), see
Authentication and Signing.
Response
{
"data": [
{
"line": "qrpay",
"enabled": true,
"halted": false,
"self_pricing": false
},
{
"line": "remit",
"enabled": true,
"halted": true,
"self_pricing": false
},
{
"line": "card",
"enabled": false,
"halted": false,
"self_pricing": false
}
],
"next_cursor": null,
"has_more": false
}insufficient_scope: missing merchant:read.curl -X GET 'https://api.zinfra.vip/v1/merchant/lines' \
-H 'x-auth-token: Bearer $TOKEN'const res = await fetch("https://api.zinfra.vip/v1/merchant/lines", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
},
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();import requests
res = requests.get(
"https://api.zinfra.vip/v1/merchant/lines",
headers={
"x-auth-token": "Bearer $TOKEN",
},
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()req, _ := http.NewRequest("GET", "https://api.zinfra.vip/v1/merchant/lines",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
res, err := http.DefaultClient.Do(req)
// Decode amount fields as string, not float64.HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zinfra.vip/v1/merchant/lines"))
.header("x-auth-token", "Bearer $TOKEN")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// Use String / BigDecimal for amounts, not double.$ch = curl_init('https://api.zinfra.vip/v1/merchant/lines');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
],
]);
$res = curl_exec($ch);
// Use bcmath / strings for amounts, not floatval.
{
"data": [
{
"line": "qrpay",
"enabled": true,
"halted": false,
"self_pricing": false
},
{
"line": "remit",
"enabled": true,
"halted": true,
"self_pricing": false
},
{
"line": "card",
"enabled": false,
"halted": false,
"self_pricing": false
}
],
"next_cursor": null,
"has_more": false
}