BillOSDocs
Console
Payments
GET/businesses/{bid}/standing-orders/{id}

Requires the documents scope.

Path parameters

bidstringrequired
Business id, from POST /businesses.
idstringrequired
Standing order id.

Response

200: { "ok": true, … }

okbooleanrequired
standingOrderStandingOrderrequired
A standing order on a card (הוראת קבע בכרטיס אשראי): the customer is charged amount every month on dayOfMonth, on the business's own terminal. Opening one charges nothing: the customer opens url, types his own card and agrees to the terms himself, and the consent is recorded as he gave it. Every charge is a payment request (GET .../standing-orders/{id}/charges) that issues its receipt like a paid link. The card is kept as the card company's token, sealed, and is shown by its last four digits only.

Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).

curl -X GET "$BASE/businesses/$BID/standing-orders/$DOC_ID" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/businesses/${BID}/standing-orders/${DOC_ID}`, {
  method: 'GET',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.get(
    f"{BASE}/businesses/{BID}/standing-orders/{DOC_ID}",
    headers={"X-Api-Key": KEY},
)
data = res.json()
$ch = curl_init("$BASE/businesses/$BID/standing-orders/$DOC_ID");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["X-Api-Key: $KEY"],
]);
$data = json_decode(curl_exec($ch), true);
using System.Text.Json;

using var http = new HttpClient();
using var req = new HttpRequestMessage(HttpMethod.Get, $"{BASE}/businesses/{BID}/standing-orders/{DOC_ID}");
req.Headers.Add("X-Api-Key", KEY);
using var res = await http.SendAsync(req);
var data = JsonDocument.Parse(await res.Content.ReadAsStringAsync()).RootElement;
$BASE https://api.billos.co.il/v1$KEY a bk_test_… or bk_live_… key