Langsung ke konten utama

Errors

Biteship menggunakan kode response HTTP standar untuk menunjukkan berhasil atau gagalnya sebuah request API. Kode dalam rentang 2xx menandakan request berhasil, kode dalam rentang 4xx menandakan error yang disebabkan oleh informasi yang dikirimkan (misalnya field wajib tidak diisi, format salah, dan sebagainya), dan kode dalam rentang 5xx menandakan error pada server Biteship.

Status​

Error List Summary
200 - Works fine.

400 - Bad request. Missing required parameters or other else.

401 - Request is not authorized

402 - Payment required. Quota exhausted and wallet balance cannot cover overage.

403 - Key doesn't have access to request API calls

404 - The request is not exist

422 - Unprocessable. Subscription quota reached, or the feature is not on your plan.

429 - Too many requests in a short window (throttling). Wait and retry.

500 - Something's wrong with Biteship's internal server

Berikut format response Biteship untuk request yang mengalami error:

Error List Summary
{
"success": false,
"error": "Required parameter is missing"
}

Error langganan​

Error berikut berlaku untuk API key production (live). Kuota dihitung per bulan; lihat Paket & batasan.

HTTPKodePesanKapan terjadi
42242200000You have reached your monthly {Rates|Tracking|Maps|Orders|Returns} API limit.Kuota bulanan habis. Untuk Rates/Tracking/Maps, sistem kemudian mencoba menagihkan overage; untuk Orders dan Returns, request berhenti di sini.
40240200000You have reached your monthly {Rates|Tracking|Maps} API limit and do not have sufficient balance for the overage charge. Please top up your balance.Overage seharusnya berlaku, tetapi saldo Bitepoints tidak mencukupi. Response dapat menyertakan amount.
42242200002This feature is not available on your current subscription plan. Please upgrade to continue.Fitur dibatasi berdasarkan paket (misalnya shipping label API). Menyertakan feature_key dan required_tier.
42242200001You have reached the maximum of {n} couriers for your plan. Upgrade to install more couriers.Batas jumlah kurir yang dapat dipasang.
42242200003Custom rates limit reached for your plan.Batas jumlah custom rates yang aktif.
Quota reached
{
"success": false,
"code": 42200000,
"error": "You have reached your monthly Rates API limit."
}
Overage, insufficient balance
{
"success": false,
"code": 40200000,
"error": "You have reached your monthly Rates API limit and do not have sufficient balance for the overage charge (Rp5). Please top up your balance.",
"amount": 10
}
Feature not on plan
{
"success": false,
"code": 42200002,
"error": "This feature is not available on your current subscription plan. Please upgrade to continue.",
"feature_key": "order.features.is_eligible_for_shipping_label_api",
"required_tier": "grow"
}

Tabel error pada masing-masing endpoint (Rates, Orders, Tracking, dan lainnya) tetap berlaku untuk error validasi dan error kurir.