Update a branch
Updates an existing branch. Re-send brand_ids whenever you
change brand assignment and set brand_list_changed: true.
Authorizations
Authorization: Basic base64(partner_key:secret_key).
Credentials are issued by a klikit operator. The plaintext
secret_key is shown once at issuance and cannot be retrieved
later — store it securely. If lost, ask your operator to rotate
the secret to receive a new one. The old secret stops working
immediately on rotation; there is no overlap window.
Path Parameters
Body
Mirrors core's BranchCreateUpdateReq. business_id is
overwritten by the forwarder. phone must be E.164
(+<country><digits>). available_times follows the same
weekday-keyed shape as section availability.
1 - 2555 - 255E.164
Numeric country id used inside BranchCreateRequest.country_id
and a few other resolver calls. Only ids with configured = 1
are listed — anything outside this list is rejected upstream.
| id | iso | country |
|---|---|---|
| 1 | AUS | Australia |
| 2 | PHL | Philippines |
| 3 | SGP | Singapore |
| 4 | IDN | Indonesia |
| 5 | TWN | Taiwan |
| 6 | MYS | Malaysia |
| 7 | GBR | United Kingdom |
| 8 | HKG | Hong Kong |
| 9 | THA | Thailand |
| 10 | JPN | Japan |
| 11 | VNM | Vietnam |
| 12 | KHM | Cambodia |
| 23 | ARG | Argentina |
| 30 | BGD | Bangladesh |
| 38 | BOL | Bolivia |
| 43 | BRA | Brazil |
| 59 | COL | Colombia |
| 64 | CRI | Costa Rica |
| 75 | ECU | Ecuador |
| 101 | GTM | Guatemala |
| 151 | MEX | Mexico |
| 167 | NZL | New Zealand |
| 168 | NIC | Nicaragua |
| 182 | PER | Peru |
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 23, 30, 38, 43, 59, 64, 75, 101, 151, 167, 168, 182 Numeric currency id used inside BranchCreateRequest.currency_id.
Each id is paired with the matching ISO 4217 code partners
already use inside PriceMap (the string key under each
provider entry).
| id | code |
|---|---|
| 1 | AUD |
| 2 | PHP |
| 3 | SGD |
| 4 | IDR |
| 5 | TWD |
| 6 | MYR |
| 7 | GBP |
| 8 | HKD |
| 9 | THB |
| 10 | JPY |
| 11 | VND |
| 12 | KHR |
| 13 | BDT |
| 14 | ARS |
| 15 | BOB |
| 16 | BRL |
| 17 | COP |
| 18 | CRC |
| 19 | USD |
| 20 | GTQ |
| 21 | MXN |
| 22 | NZD |
| 23 | NIO |
| 24 | PEN |
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 1 - 7 elements0 <= x <= 6Weekly schedule keyed by weekday number as a string:
"0" = Sunday … "6" = Saturday. Every day must have at least
one slot. To make a section dark for a day, set
disabled: true and pass any placeholder slot (the disabled
flag wins).
{
"0": {
"disabled": false,
"slots": [{ "startTime": 900, "endTime": 2200 }]
},
"1": {
"disabled": false,
"slots": [{ "startTime": 900, "endTime": 2200 }]
},
"2": {
"disabled": false,
"slots": [{ "startTime": 900, "endTime": 2200 }]
},
"3": {
"disabled": false,
"slots": [{ "startTime": 900, "endTime": 2200 }]
},
"4": {
"disabled": false,
"slots": [{ "startTime": 900, "endTime": 2200 }]
},
"5": {
"disabled": false,
"slots": [{ "startTime": 1000, "endTime": 2300 }]
},
"6": {
"disabled": false,
"slots": [{ "startTime": 1000, "endTime": 2300 }]
}
}Cleanup window in minutes.
Response
Branch updated.
Canonical response wrapper. Every response — success or error —
carries the request_id so you can quote one id to klikit
support to correlate a request end-to-end.
"req_4d1b7e3f-..."
Endpoint-specific payload on success.
Machine-readable error code + human message. The code is stable
across releases — switch on code in your client code rather
than parsing the message text.
Common codes you will encounter as a partner:
| Code | HTTP | Meaning |
|---|---|---|
auth_missing | 401 | Authorization header absent / malformed |
auth_invalid_credential | 401 | partner_key or secret_key did not verify |
auth_revoked | 403 | Credential is revoked |
auth_forbidden | 403 | Credential not authorized for the requested scope |
request_invalid | 400 | Body / query parameters failed validation |
request_missing_idempotency_key | 400 | Write endpoint called without Idempotency-Key |
request_invalid_range | 400 | Date range > 90 days |
resource_not_found | 404 | Order / store / mapping does not exist |
resource_unmapped | 404 | Stock / availability call referenced an unknown SKU |
state_invalid_transition | 409 | Order PATCH not allowed by current state |
state_idempotency_conflict | 409 | Same Idempotency-Key reused with a different body |
rate_limit_exceeded | 429 | Per-credential rate cap hit |
downstream_unavailable | 502 | An internal klikit dependency is unreachable |