Dokumentasi API
API reseller KipInbox dan pintu kompatibel SMS-Activate.
URL dasarhttps://
Daftar isi
Mulai dalam tiga langkah
Buat kunci API di akun reseller.
Buka kunci APIKirim kunci di header Authorization.
cURL curl https://kipinbox.com/v1/wallet \ -H "Authorization: Bearer sk_…"Pesan nomor dengan Idempotency-Key unik per niat beli, lalu baca pesanannya.
cURL curl -X POST https://kipinbox.com/v1/orders \ -H "Authorization: Bearer sk_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6f1c0d2e-0d6b-4d6a-9a39-2b8d2f3e9a10" \ -d '{"product_id":"prd_0h7m2k9q4c1x8v5n3b6t0r2w","funding_mode":"wallet","max_total":{"amount_minor":3500,"currency":"IDR","exponent":0}}'PHP <?php // Satu Idempotency-Key per niat beli; kirim ulang dengan kunci yang sama bila jaringan putus. $niat = bin2hex(random_bytes(16)); $ch = curl_init('https://kipinbox.com/v1/orders'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer ' . getenv('KIPINBOX_KEY'), 'Content-Type: application/json', 'Idempotency-Key: ' . $niat, ], CURLOPT_POSTFIELDS => json_encode([ 'product_id' => 'prd_0h7m2k9q4c1x8v5n3b6t0r2w', 'funding_mode' => 'wallet', ]), ]); $pesanan = json_decode(curl_exec($ch), true)['data']; echo $pesanan['id'];
Kunci dan izin
- Setiap permintaan ke /v1 membawa Authorization: Bearer sk_…
- Setiap perubahan membawa Content-Type: application/json dan Idempotency-Key. Bila jaringan putus, kirim ulang dengan kunci dan badan yang sama.
- Kunci dibuat dan dicabut lewat akun di browser, tidak lewat API.
catalog.read- GET /v1/
catalog/ services - GET /v1/
catalog/ countries - GET /v1/
catalog/ products - GET /v1/
catalog/ products/ {product_ id} - GET /v1/
catalog/ products/ {product_ id}/ price - GET /v1/
stats/ today - GET /v1/
stats/ weekly - GET /v1/
stats/ methodology
- GET /v1/
orders.write- POST /v1/
orders - POST /v1/
orders/ {public_ id}/ cancel - POST /v1/
orders/ {public_ id}/ claims
- POST /v1/
orders.read- GET /v1/
orders - GET /v1/
orders/ {public_ id} - GET /v1/
orders/ {public_ id}/ claim
- GET /v1/
wallet.read- GET /v1/
wallet - GET /v1/
wallet/ entries
- GET /v1/
webhooks.manage- GET /v1/
webhook-endpoints - POST /v1/
webhook-endpoints - GET /v1/
webhook-endpoints/ {public_ id} - PATCH /v1/
webhook-endpoints/ {public_ id} - DELETE /v1/
webhook-endpoints/ {public_ id} - POST /v1/
webhook-endpoints/ {public_ id}/ enable - POST /v1/
webhook-endpoints/ {public_ id}/ rotate-secret - POST /v1/
webhook-endpoints/ {public_ id}/ test - GET /v1/
webhook-endpoints/ {public_ id}/ deliveries
- GET /v1/
- Izin apa saja
- GET /v1/
context - GET /v1/
me - GET /v1/
currencies
- GET /v1/
- Tanpa kunci
- GET /v1/
reseller/ terms - GET /v1/
openapi. json
- GET /v1/
Endpoint
Dibangkitkan dari OpenAPI publik. Field baru bisa bertambah; abaikan yang tidak kamu kenal.
Izin: catalog.read
GET/v1/ catalog/ servicesDaftar layanan
Parameter
include_queryOpsionalunavailable booleansortqueryOpsionalstring, default | recommended, default defaultlimitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstringcodequeryOpsionalstring
{
"data": [
{
"code": "123456",
"display_rank": 1,
"logo_url": "https://toko.contoh.com/v1/catalog/services/whatsapp/logo/9f2c.png",
"name": "WhatsApp",
"product_count": 1,
"search_terms": [
"string"
],
"short_name": "WA"
}
],
"meta": {
"next_cursor": "string"
}
}GET/v1/ catalog/ countriesDaftar negara
Parameter
servicequeryOpsionalstringinclude_queryOpsionalunavailable booleansortqueryOpsionalstring, default | recommended, default defaultlimitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstring
{
"data": [
{
"code": "123456",
"dial_code": "62",
"lowest_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
}
],
"meta": {
"next_cursor": "string"
}
}GET/v1/ catalog/ productsDaftar produk
Parameter
servicequeryOpsionalstringcountryqueryOpsionalstringproduct_queryOpsionaltype string, activation, default activationinclude_queryOpsionalunavailable booleansortqueryOpsionalstring, default | recommended | popular, default defaultlimitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstring
{
"data": [
{
"activation": {
"guarantee": {
"acquire_timeout_seconds": 300,
"buyer_cancel_daily_limit": 1,
"buyer_cancel_enabled": false,
"claim_review_seconds": 300,
"claim_window_seconds": 300,
"decision_max_seconds": 300,
"max_replacements": 1,
"wait_seconds": 300
}
},
"availability": "available",
"country": {
"code": "123456",
"dial_code": "62"
},
"id": "K7Q2M9XH4PTA",
"prices": [
{
"charges": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"discount": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"funding_mode": "wallet",
"list_price": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"net_price": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"requires_account": false,
"surcharge": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"tax": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"total": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"total_display": null
}
],
"product_type": "activation",
"seo": {
"changed_at": "2026-11-26T03:00:00Z",
"indexable": false
},
"service": {
"code": "123456",
"display_rank": 1,
"logo_url": "https://toko.contoh.com/v1/catalog/services/whatsapp/logo/9f2c.png",
"name": "WhatsApp",
"short_name": "WA"
},
"stats": {
"computed_at": "2026-11-26T03:00:00Z",
"delivered_orders": 1,
"delivery_rate_bps": 500,
"median_code_seconds": 300,
"sample": "sufficient",
"scope": "market",
"shown_orders": 1,
"window_days": 1
},
"stock_level": "available",
"unavailable_reason": "not_sold",
"variant": "string"
}
],
"meta": {
"next_cursor": "string"
}
}GET/v1/ catalog/ products/ {product_ id}Detail produk
Parameter
product_pathWajibid string
{
"data": {
"activation": {
"guarantee": {
"acquire_timeout_seconds": 300,
"buyer_cancel_daily_limit": 1,
"buyer_cancel_enabled": false,
"claim_review_seconds": 300,
"claim_window_seconds": 300,
"decision_max_seconds": 300,
"max_replacements": 1,
"wait_seconds": 300
}
},
"availability": "available",
"country": {
"code": "123456",
"dial_code": "62"
},
"id": "K7Q2M9XH4PTA",
"prices": [
{
"charges": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"discount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"funding_mode": "wallet",
"list_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"net_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"requires_account": false,
"surcharge": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"tax": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total_display": {
"amount_minor": null,
"approximate": null,
"currency": null,
"exponent": null
}
}
],
"product_type": "activation",
"seo": {
"changed_at": "2026-11-26T03:00:00Z",
"indexable": false
},
"service": {
"code": "123456",
"display_rank": 1,
"logo_url": "https://toko.contoh.com/v1/catalog/services/whatsapp/logo/9f2c.png",
"name": "WhatsApp",
"short_name": "WA"
},
"stats": {
"computed_at": "2026-11-26T03:00:00Z",
"delivered_orders": 1,
"delivery_rate_bps": 500,
"median_code_seconds": 300,
"sample": "sufficient",
"scope": "market",
"shown_orders": 1,
"window_days": 1
},
"stock_level": "available",
"unavailable_reason": "not_sold",
"variant": "string"
}
}GET/v1/ catalog/ products/ {product_ id}/ priceHarga produk
Parameter
product_pathWajibid stringfunding_queryOpsionalmode string, wallet | pay_per_ code payment_queryOpsionalmethod string
{
"data": {
"charges": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"discount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"fee": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"funding_mode": "wallet",
"list_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"net_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"payment_method": "qris",
"price_date": "2026-11-26",
"product_id": "prd_0h7m2k9q4c1x8v5n3b6t0r2w",
"rules": [
{
"amount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"code": "123456",
"kind": "surcharge_flat"
}
],
"surcharge": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"tax": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"timezone": "Asia/Jakarta",
"total": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total_display": {
"amount_minor": 3500,
"approximate": false,
"currency": "IDR",
"exponent": 0
},
"valid_from": "2026-11-26T03:00:00Z",
"valid_until": "2026-11-26T03:00:00Z",
"wallet_available": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"wallet_shortfall": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
}
}GET/v1/ stats/ todayAngka hari ini
{
"data": {
"auto_refunded_orders": 1,
"computed_at": "2026-11-26T03:00:00Z",
"date": "2026-11-26",
"timezone": "Asia/Jakarta",
"window_auto_refunded_orders": 1,
"window_days": 1,
"window_delivered_orders": 1,
"window_sample": "sufficient",
"window_shown_orders": 1
}
}GET/v1/ stats/ weeklyAngka mingguan
Parameter
product_queryOpsionalid stringservicequeryOpsionalstringcountryqueryOpsionalstringweeksqueryOpsionalinteger, 1–8, default 8
{
"data": [
{
"claims_count": 1,
"computed_at": "2026-11-26T03:00:00Z",
"country_code": "ID",
"delivered_orders": 1,
"delivery_rate_bps": 500,
"median_code_seconds": 300,
"product_id": "prd_0h7m2k9q4c1x8v5n3b6t0r2w",
"sample": "sufficient",
"service_code": "whatsapp",
"shown_orders": 1,
"week_start": "2026-11-26"
}
]
}GET/v1/ stats/ methodologyMetodologi angka
{
"data": {
"cancelled_counts_as_failure": false,
"claimed_codes_count_as_arrived": false,
"max_orders_per_identity": 1,
"max_orders_per_identity_per_window": 1,
"max_orders_per_ip": 1,
"min_sample": 1,
"refresh_interval_seconds": 300,
"source": "storefront_orders",
"stock_low_threshold": 1,
"window_days": 1
}
}Izin: orders.write
POST/v1/ ordersBuat pesanan
Butuh Idempotency-Key orders.create
{
"attribution": {
"landing_path": "/id",
"referrer_host": "string"
},
"expected_total": {
"amount_minor": 3500,
"currency": "IDR"
},
"funding_mode": "wallet",
"max_total": {
"amount_minor": 3500,
"currency": "IDR"
},
"payment_method": "qris",
"product_id": "prd_0h7m2k9q4c1x8v5n3b6t0r2w"
}{
"data": {
"invoice": {
"amount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"bonus": {
"estimate": null,
"granted": null,
"outcome": null
},
"can_cancel": false,
"can_create_payment": false,
"cancel_requested_at": "2026-11-26T03:00:00Z",
"created_at": "2026-11-26T03:00:00Z",
"expires_at": "2026-11-26T03:00:00Z",
"fee": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"order_public_id": "K7Q2M9XH4PTA",
"payment": {
"checked_at": null,
"expires_at": null,
"instructions": null,
"method_code": null,
"payee_name": null,
"public_id": null,
"status": null
},
"public_id": "inv_0h7m2k9q4c1x8v5n3b6t0r2w",
"purpose": "order",
"status": "open",
"total": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"wallet_credit": {
"amount_minor": null,
"currency": null,
"exponent": null
}
},
"order": {
"actions": {
"can_cancel": false,
"can_change_contact_email": false,
"can_claim": false,
"can_verify_claim_email": false,
"can_verify_contact_email": false,
"replace_number": {
"allowed": null,
"available_at": null,
"remaining": null
}
},
"activation": {
"acquire_deadline_at": "2026-11-26T03:00:00Z",
"acquisition_no": 1,
"claim_deadline_at": "2026-11-26T03:00:00Z",
"guarantee": {
"acquire_timeout_seconds": null,
"buyer_cancel_daily_limit": null,
"buyer_cancel_enabled": null,
"claim_review_seconds": null,
"claim_window_seconds": null,
"decision_max_seconds": null,
"max_replacements": null,
"wait_seconds": null
},
"max_numbers": 1,
"numbers": [
null
],
"numbers_shown": 1,
"phone_number": "+6281200000000",
"phone_number_masked": "+62812****0000",
"pii_purged_at": "2026-11-26T03:00:00Z",
"replace_at": "2026-11-26T03:00:00Z",
"replace_at_action": "replace",
"winning_acquisition_no": 1
},
"channel": "web",
"claim": {
"created_at": "2026-11-26T03:00:00Z",
"decided_at": "2026-11-26T03:00:00Z",
"public_id": "clm_0h7m2k9q4c1x8v5n3b6t0r2w",
"rejection_reason": "email_not_verified",
"review_deadline_at": "2026-11-26T03:00:00Z",
"status": "pending_verification",
"verify_deadline_at": "2026-11-26T03:00:00Z"
},
"close_reason": "no_code",
"contact": {
"email_masked": "p***@contoh.com",
"email_verified": false
},
"created_at": "2026-11-26T03:00:00Z",
"funded_at": "2026-11-26T03:00:00Z",
"funding_mode": "wallet",
"id": "K7Q2M9XH4PTA",
"invoice": {
"cancel_requested_at": "2026-11-26T03:00:00Z",
"expires_at": "2026-11-26T03:00:00Z",
"paid_at": "2026-11-26T03:00:00Z",
"paid_issuer_code": "string",
"paid_method_code": "string",
"payment_status": "string",
"public_id": "K7Q2M9XH4PTA",
"status": "open"
},
"is_terminal": false,
"messages": [
{
"acquisition_no": 1,
"code": "123456",
"id": "K7Q2M9XH4PTA",
"kind": "sms",
"received_at": "2026-11-26T03:00:00Z",
"sender": "WhatsApp",
"text": "Kode WhatsApp kamu 123-456"
}
],
"money": {
"charged": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"paid": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"returned_to_source": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"returned_to_wallet": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"returning_to_source": {
"amount_minor": null,
"currency": null,
"exponent": null
}
},
"poll_after_seconds": 300,
"price": {
"charges": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"discount": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"fee": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"list_price": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"net_price": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"surcharge": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"tax": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"total": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"total_display": null
},
"product": {
"country": "ID",
"country_dial_code": "62",
"id": "K7Q2M9XH4PTA",
"service": "whatsapp",
"service_name": "WhatsApp",
"service_short_name": "WA",
"variant": "string"
},
"product_type": "activation",
"refunds": [
{
"amount": null,
"can_choose_wallet": false,
"completed_at": "2026-11-26T03:00:00Z",
"created_at": "2026-11-26T03:00:00Z",
"destination": "source",
"fallback_at": "2026-11-26T03:00:00Z",
"invoice_public_id": "inv_0h7m2k9q4c1x8v5n3b6t0r2w",
"issuer_code": "string",
"method_code": "qris",
"order_public_id": "K7Q2M9XH4PTA",
"public_id": "rfd_0h7m2k9q4c1x8v5n3b6t0r2w",
"reason": "string",
"reference": "string",
"stage": "queued",
"status": "pending"
}
],
"status": "waiting_payment",
"version": 1,
"viewer": {
"access": "full",
"account_link": "own"
}
}
}
}POST/v1/ orders/ {public_ id}/ cancelBatalkan pesanan
Butuh Idempotency-Key orders.cancel
Parameter
public_pathWajibid string
{
"data": {
"actions": {
"can_cancel": false,
"can_change_contact_email": false,
"can_claim": false,
"can_verify_claim_email": false,
"can_verify_contact_email": false,
"replace_number": {
"allowed": true,
"available_at": "2026-11-26T03:00:00Z",
"remaining": 1
}
},
"activation": {
"acquire_deadline_at": "2026-11-26T03:00:00Z",
"acquisition_no": 1,
"claim_deadline_at": "2026-11-26T03:00:00Z",
"guarantee": {
"acquire_timeout_seconds": 300,
"buyer_cancel_daily_limit": 1,
"buyer_cancel_enabled": false,
"claim_review_seconds": 300,
"claim_window_seconds": 300,
"decision_max_seconds": 300,
"max_replacements": 1,
"wait_seconds": 300
},
"max_numbers": 1,
"numbers": [
{
"acquisition_no": 1,
"ended_at": "2026-11-26T03:00:00Z",
"outcome": "waiting",
"phone_number": "+6281200000000",
"shown_at": "2026-11-26T03:00:00Z"
}
],
"numbers_shown": 1,
"phone_number": "+6281200000000",
"phone_number_masked": "+62812****0000",
"pii_purged_at": "2026-11-26T03:00:00Z",
"replace_at": "2026-11-26T03:00:00Z",
"replace_at_action": "replace",
"winning_acquisition_no": 1
},
"channel": "web",
"claim": {
"created_at": "2026-11-26T03:00:00Z",
"decided_at": "2026-11-26T03:00:00Z",
"public_id": "clm_0h7m2k9q4c1x8v5n3b6t0r2w",
"rejection_reason": "email_not_verified",
"review_deadline_at": "2026-11-26T03:00:00Z",
"status": "pending_verification",
"verify_deadline_at": "2026-11-26T03:00:00Z"
},
"close_reason": "no_code",
"contact": {
"email_masked": "p***@contoh.com",
"email_verified": false
},
"created_at": "2026-11-26T03:00:00Z",
"funded_at": "2026-11-26T03:00:00Z",
"funding_mode": "wallet",
"id": "K7Q2M9XH4PTA",
"invoice": {
"cancel_requested_at": "2026-11-26T03:00:00Z",
"expires_at": "2026-11-26T03:00:00Z",
"paid_at": "2026-11-26T03:00:00Z",
"paid_issuer_code": "string",
"paid_method_code": "string",
"payment_status": "string",
"public_id": "K7Q2M9XH4PTA",
"status": "open"
},
"is_terminal": false,
"messages": [
{
"acquisition_no": 1,
"code": "123456",
"id": "K7Q2M9XH4PTA",
"kind": "sms",
"received_at": "2026-11-26T03:00:00Z",
"sender": "WhatsApp",
"text": "Kode WhatsApp kamu 123-456"
}
],
"money": {
"charged": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"paid": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returned_to_source": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returned_to_wallet": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returning_to_source": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
},
"poll_after_seconds": 300,
"price": {
"charges": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"discount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"fee": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"list_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"net_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"surcharge": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"tax": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total_display": {
"amount_minor": 3500,
"approximate": false,
"currency": "IDR",
"exponent": 0
}
},
"product": {
"country": "ID",
"country_dial_code": "62",
"id": "K7Q2M9XH4PTA",
"service": "whatsapp",
"service_name": "WhatsApp",
"service_short_name": "WA",
"variant": "string"
},
"product_type": "activation",
"refunds": [
{
"amount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"can_choose_wallet": false,
"completed_at": "2026-11-26T03:00:00Z",
"created_at": "2026-11-26T03:00:00Z",
"destination": "source",
"fallback_at": "2026-11-26T03:00:00Z",
"invoice_public_id": "inv_0h7m2k9q4c1x8v5n3b6t0r2w",
"issuer_code": "string",
"method_code": "qris",
"order_public_id": "K7Q2M9XH4PTA",
"public_id": "rfd_0h7m2k9q4c1x8v5n3b6t0r2w",
"reason": "string",
"reference": "string",
"stage": "queued",
"status": "pending"
}
],
"status": "waiting_payment",
"version": 1,
"viewer": {
"access": "full",
"account_link": "own"
}
}
}POST/v1/ orders/ {public_ id}/ claimsBuat klaim
Butuh Idempotency-Key orders.claims.create
Parameter
public_pathWajibid string
{
"email_code": "string",
"note": "string",
"reason_code": "code_rejected"
}{
"data": {
"created_at": "2026-11-26T03:00:00Z",
"decided_at": "2026-11-26T03:00:00Z",
"public_id": "clm_0h7m2k9q4c1x8v5n3b6t0r2w",
"rejection_reason": "email_not_verified",
"review_deadline_at": "2026-11-26T03:00:00Z",
"status": "pending_verification",
"verify_deadline_at": "2026-11-26T03:00:00Z"
}
}Izin: orders.read
GET/v1/ ordersDaftar pesanan
Parameter
limitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstringis_queryOpsionalterminal booleanviewqueryOpsionalstring, full | summary, default full
{
"data": [
{
"actions": {
"can_cancel": false,
"can_change_contact_email": false,
"can_claim": false,
"can_verify_claim_email": false,
"can_verify_contact_email": false,
"replace_number": {
"allowed": true,
"available_at": "2026-11-26T03:00:00Z",
"remaining": 1
}
},
"activation": {
"acquire_deadline_at": "2026-11-26T03:00:00Z",
"acquisition_no": 1,
"claim_deadline_at": "2026-11-26T03:00:00Z",
"guarantee": {
"acquire_timeout_seconds": 300,
"buyer_cancel_daily_limit": 1,
"buyer_cancel_enabled": false,
"claim_review_seconds": 300,
"claim_window_seconds": 300,
"decision_max_seconds": 300,
"max_replacements": 1,
"wait_seconds": 300
},
"max_numbers": 1,
"numbers": [
{
"acquisition_no": null,
"ended_at": null,
"outcome": null,
"phone_number": null,
"shown_at": null
}
],
"numbers_shown": 1,
"phone_number": "+6281200000000",
"phone_number_masked": "+62812****0000",
"pii_purged_at": "2026-11-26T03:00:00Z",
"replace_at": "2026-11-26T03:00:00Z",
"replace_at_action": "replace",
"winning_acquisition_no": 1
},
"channel": "web",
"claim": {
"created_at": "2026-11-26T03:00:00Z",
"decided_at": "2026-11-26T03:00:00Z",
"public_id": "clm_0h7m2k9q4c1x8v5n3b6t0r2w",
"rejection_reason": "email_not_verified",
"review_deadline_at": "2026-11-26T03:00:00Z",
"status": "pending_verification",
"verify_deadline_at": "2026-11-26T03:00:00Z"
},
"close_reason": "no_code",
"contact": {
"email_masked": "p***@contoh.com",
"email_verified": false
},
"created_at": "2026-11-26T03:00:00Z",
"funded_at": "2026-11-26T03:00:00Z",
"funding_mode": "wallet",
"id": "K7Q2M9XH4PTA",
"invoice": {
"cancel_requested_at": "2026-11-26T03:00:00Z",
"expires_at": "2026-11-26T03:00:00Z",
"paid_at": "2026-11-26T03:00:00Z",
"paid_issuer_code": "string",
"paid_method_code": "string",
"payment_status": "string",
"public_id": "K7Q2M9XH4PTA",
"status": "open"
},
"is_terminal": false,
"messages": [
{
"acquisition_no": 1,
"code": "123456",
"id": "K7Q2M9XH4PTA",
"kind": "sms",
"received_at": "2026-11-26T03:00:00Z",
"sender": "WhatsApp",
"text": "Kode WhatsApp kamu 123-456"
}
],
"money": {
"charged": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"paid": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returned_to_source": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returned_to_wallet": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returning_to_source": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
},
"poll_after_seconds": 300,
"price": {
"charges": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"discount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"fee": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"list_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"net_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"surcharge": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"tax": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total_display": {
"amount_minor": null,
"approximate": null,
"currency": null,
"exponent": null
}
},
"product": {
"country": "ID",
"country_dial_code": "62",
"id": "K7Q2M9XH4PTA",
"service": "whatsapp",
"service_name": "WhatsApp",
"service_short_name": "WA",
"variant": "string"
},
"product_type": "activation",
"refunds": [
{
"amount": {
"amount_minor": null,
"currency": null,
"exponent": null
},
"can_choose_wallet": false,
"completed_at": "2026-11-26T03:00:00Z",
"created_at": "2026-11-26T03:00:00Z",
"destination": "source",
"fallback_at": "2026-11-26T03:00:00Z",
"invoice_public_id": "inv_0h7m2k9q4c1x8v5n3b6t0r2w",
"issuer_code": "string",
"method_code": "qris",
"order_public_id": "K7Q2M9XH4PTA",
"public_id": "rfd_0h7m2k9q4c1x8v5n3b6t0r2w",
"reason": "string",
"reference": "string",
"stage": "queued",
"status": "pending"
}
],
"status": "waiting_payment",
"version": 1,
"viewer": {
"access": "full",
"account_link": "own"
}
}
],
"meta": {
"next_cursor": "string"
}
}GET/v1/ orders/ {public_ id}Detail pesanan
Parameter
public_pathWajibid string
{
"data": {
"actions": {
"can_cancel": false,
"can_change_contact_email": false,
"can_claim": false,
"can_verify_claim_email": false,
"can_verify_contact_email": false,
"replace_number": {
"allowed": true,
"available_at": "2026-11-26T03:00:00Z",
"remaining": 1
}
},
"activation": {
"acquire_deadline_at": "2026-11-26T03:00:00Z",
"acquisition_no": 1,
"claim_deadline_at": "2026-11-26T03:00:00Z",
"guarantee": {
"acquire_timeout_seconds": 300,
"buyer_cancel_daily_limit": 1,
"buyer_cancel_enabled": false,
"claim_review_seconds": 300,
"claim_window_seconds": 300,
"decision_max_seconds": 300,
"max_replacements": 1,
"wait_seconds": 300
},
"max_numbers": 1,
"numbers": [
{
"acquisition_no": 1,
"ended_at": "2026-11-26T03:00:00Z",
"outcome": "waiting",
"phone_number": "+6281200000000",
"shown_at": "2026-11-26T03:00:00Z"
}
],
"numbers_shown": 1,
"phone_number": "+6281200000000",
"phone_number_masked": "+62812****0000",
"pii_purged_at": "2026-11-26T03:00:00Z",
"replace_at": "2026-11-26T03:00:00Z",
"replace_at_action": "replace",
"winning_acquisition_no": 1
},
"channel": "web",
"claim": {
"created_at": "2026-11-26T03:00:00Z",
"decided_at": "2026-11-26T03:00:00Z",
"public_id": "clm_0h7m2k9q4c1x8v5n3b6t0r2w",
"rejection_reason": "email_not_verified",
"review_deadline_at": "2026-11-26T03:00:00Z",
"status": "pending_verification",
"verify_deadline_at": "2026-11-26T03:00:00Z"
},
"close_reason": "no_code",
"contact": {
"email_masked": "p***@contoh.com",
"email_verified": false
},
"created_at": "2026-11-26T03:00:00Z",
"funded_at": "2026-11-26T03:00:00Z",
"funding_mode": "wallet",
"id": "K7Q2M9XH4PTA",
"invoice": {
"cancel_requested_at": "2026-11-26T03:00:00Z",
"expires_at": "2026-11-26T03:00:00Z",
"paid_at": "2026-11-26T03:00:00Z",
"paid_issuer_code": "string",
"paid_method_code": "string",
"payment_status": "string",
"public_id": "K7Q2M9XH4PTA",
"status": "open"
},
"is_terminal": false,
"messages": [
{
"acquisition_no": 1,
"code": "123456",
"id": "K7Q2M9XH4PTA",
"kind": "sms",
"received_at": "2026-11-26T03:00:00Z",
"sender": "WhatsApp",
"text": "Kode WhatsApp kamu 123-456"
}
],
"money": {
"charged": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"paid": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returned_to_source": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returned_to_wallet": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"returning_to_source": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
},
"poll_after_seconds": 300,
"price": {
"charges": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"discount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"fee": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"list_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"net_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"surcharge": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"tax": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"total_display": {
"amount_minor": 3500,
"approximate": false,
"currency": "IDR",
"exponent": 0
}
},
"product": {
"country": "ID",
"country_dial_code": "62",
"id": "K7Q2M9XH4PTA",
"service": "whatsapp",
"service_name": "WhatsApp",
"service_short_name": "WA",
"variant": "string"
},
"product_type": "activation",
"refunds": [
{
"amount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"can_choose_wallet": false,
"completed_at": "2026-11-26T03:00:00Z",
"created_at": "2026-11-26T03:00:00Z",
"destination": "source",
"fallback_at": "2026-11-26T03:00:00Z",
"invoice_public_id": "inv_0h7m2k9q4c1x8v5n3b6t0r2w",
"issuer_code": "string",
"method_code": "qris",
"order_public_id": "K7Q2M9XH4PTA",
"public_id": "rfd_0h7m2k9q4c1x8v5n3b6t0r2w",
"reason": "string",
"reference": "string",
"stage": "queued",
"status": "pending"
}
],
"status": "waiting_payment",
"version": 1,
"viewer": {
"access": "full",
"account_link": "own"
}
}
}GET/v1/ orders/ {public_ id}/ claimKlaim pesanan
Parameter
public_pathWajibid string
{
"data": {
"created_at": "2026-11-26T03:00:00Z",
"decided_at": "2026-11-26T03:00:00Z",
"public_id": "clm_0h7m2k9q4c1x8v5n3b6t0r2w",
"rejection_reason": "email_not_verified",
"review_deadline_at": "2026-11-26T03:00:00Z",
"status": "pending_verification",
"verify_deadline_at": "2026-11-26T03:00:00Z"
}
}Izin: wallet.read
GET/v1/ walletDompet
{
"data": {
"balances": [
{
"balance": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"bucket": "main",
"currency": "IDR",
"held": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
}
]
}
}GET/v1/ wallet/ entriesButir dompet
Parameter
currencyqueryOpsionalstringkindqueryOpsionalstringlimitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstring
{
"data": [
{
"amount": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"at": "2026-11-26T03:00:00Z",
"balance_after": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"invoice_public_id": "inv_0h7m2k9q4c1x8v5n3b6t0r2w",
"kind": "topup",
"order_public_id": "K7Q2M9XH4PTA",
"refund_public_id": "rfd_0h7m2k9q4c1x8v5n3b6t0r2w"
}
],
"meta": {
"next_cursor": "string"
}
}Izin: webhooks.manage
GET/v1/ webhook-endpointsDaftar endpoint webhook
Parameter
limitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstring
{
"data": [
{
"consecutive_failures": 1,
"disabled_reason": "too_many_failures",
"format": "kipinbox",
"last_failure_at": "2026-11-26T03:00:00Z",
"last_result_class": "delivered",
"last_success_at": "2026-11-26T03:00:00Z",
"public_id": "whe_0h7m2k9q4c1x8v5n3b6t0r2w",
"secret_rotation_overlap_until": "string",
"secret_version": 1,
"status": "active",
"topics": [
"order.awaiting_payment"
],
"url": "https://contoh.com/kipinbox-webhook"
}
],
"meta": {
"next_cursor": "string"
}
}POST/v1/ webhook-endpointsBuat endpoint webhook
Butuh Idempotency-Key webhook_endpoints.create
{
"format": "kipinbox",
"topics": [
"string"
],
"url": "https://contoh.com/kipinbox-webhook"
}{
"data": {
"created_at": "2026-11-26T03:00:00Z",
"format": "kipinbox",
"public_id": "whe_0h7m2k9q4c1x8v5n3b6t0r2w",
"secret": "whsec_…",
"secret_version": 1,
"status": "active",
"topics": [
"order.awaiting_payment"
],
"url": "https://contoh.com/kipinbox-webhook"
}
}GET/v1/ webhook-endpoints/ {public_ id}Endpoint webhook
Parameter
public_pathWajibid string
{
"data": {
"consecutive_failures": 1,
"disabled_reason": "too_many_failures",
"format": "kipinbox",
"last_failure_at": "2026-11-26T03:00:00Z",
"last_result_class": "delivered",
"last_success_at": "2026-11-26T03:00:00Z",
"public_id": "whe_0h7m2k9q4c1x8v5n3b6t0r2w",
"secret_rotation_overlap_until": "string",
"secret_version": 1,
"status": "active",
"topics": [
"order.awaiting_payment"
],
"url": "https://contoh.com/kipinbox-webhook"
}
}PATCH/v1/ webhook-endpoints/ {public_ id}Ubah topik endpoint webhook
Butuh Idempotency-Key webhook_endpoints.update
Parameter
public_pathWajibid string
{
"format": "kipinbox",
"topics": [
"string"
]
}{
"data": {
"consecutive_failures": 1,
"disabled_reason": "too_many_failures",
"format": "kipinbox",
"last_failure_at": "2026-11-26T03:00:00Z",
"last_result_class": "delivered",
"last_success_at": "2026-11-26T03:00:00Z",
"public_id": "whe_0h7m2k9q4c1x8v5n3b6t0r2w",
"secret_rotation_overlap_until": "string",
"secret_version": 1,
"status": "active",
"topics": [
"order.awaiting_payment"
],
"url": "https://contoh.com/kipinbox-webhook"
}
}DELETE/v1/ webhook-endpoints/ {public_ id}Matikan endpoint webhook
Butuh Idempotency-Key webhook_endpoints.delete
Parameter
public_pathWajibid string
Contoh jawaban 204
POST/v1/ webhook-endpoints/ {public_ id}/ enableAktifkan ulang endpoint webhook
Butuh Idempotency-Key webhook_endpoints.enable
Parameter
public_pathWajibid string
{
"data": {
"consecutive_failures": 1,
"disabled_reason": "too_many_failures",
"format": "kipinbox",
"last_failure_at": "2026-11-26T03:00:00Z",
"last_result_class": "delivered",
"last_success_at": "2026-11-26T03:00:00Z",
"public_id": "whe_0h7m2k9q4c1x8v5n3b6t0r2w",
"secret_rotation_overlap_until": "string",
"secret_version": 1,
"status": "active",
"topics": [
"order.awaiting_payment"
],
"url": "https://contoh.com/kipinbox-webhook"
}
}POST/v1/ webhook-endpoints/ {public_ id}/ rotate-secretPutar rahasia endpoint webhook
Butuh Idempotency-Key webhook_endpoints.rotate_secret
Parameter
public_pathWajibid string
{
"data": {
"secret": "whsec_…",
"secret_version": 1
}
}POST/v1/ webhook-endpoints/ {public_ id}/ testKirim webhook uji
Butuh Idempotency-Key webhook_endpoints.test
Parameter
public_pathWajibid string
{
"data": {
"event_id": "evt_0h7m2k9q4c1x8v5n3b6t0r2w"
}
}GET/v1/ webhook-endpoints/ {public_ id}/ deliveriesLog kiriman endpoint webhook
Parameter
public_pathWajibid stringlimitqueryOpsionalinteger, 1–100, default 20cursorqueryOpsionalstring
{
"data": [
{
"attempts": 1,
"created_at": "2026-11-26T03:00:00Z",
"event_id": "evt_0h7m2k9q4c1x8v5n3b6t0r2w",
"last_result_class": "delivered",
"status": "pending",
"topic": "order.code_delivered",
"updated_at": "2026-11-26T03:00:00Z"
}
],
"meta": {
"next_cursor": "string"
}
}Izin apa saja
GET/v1/ contextKonteks permintaan
{
"data": {
"channel": "web",
"client_metrics": {
"sample_bps": 500
},
"guarantees": {
"activation": {
"acquire_timeout_seconds": 300,
"buyer_cancel_daily_limit": 1,
"buyer_cancel_enabled": false,
"claim_review_seconds": 300,
"claim_window_seconds": 300,
"decision_max_seconds": 300,
"max_replacements": 1,
"wait_seconds": 300
}
},
"locale": "id",
"market": {
"code": "123456",
"default_country_code": "ID",
"default_currency": "IDR",
"display_currency": "IDR",
"locales": [
"string"
],
"timezone": "Asia/Jakarta"
},
"market_reassigned": false,
"markets": [
{
"code": "123456",
"default_country_code": "ID",
"default_currency": "IDR",
"display_currency": "IDR",
"locales": [
"string"
],
"timezone": "Asia/Jakarta"
}
],
"order_poll_seconds": 300,
"principal": {
"kind": "anonymous",
"user": {
"api_access": null,
"created_at": "2026-11-26T03:00:00Z",
"customer_group": "reseller",
"email": "[email protected]",
"email_verified": false,
"has_password": false,
"id": "usr_0h7m2k9q4c1x8v5n3b6t0r2w",
"identities": [
null
],
"kind": "registered",
"locale": "id",
"market": "id",
"preferred_currency": "IDR",
"timezone": "Asia/Jakarta"
}
},
"storefront": {
"code": "123456",
"complaint_address": "string",
"legal_name": "string",
"name": "WhatsApp",
"registrations": [
{
"kind": "nib",
"number": "+6281200000000"
}
],
"review_platform": {
"name": "WhatsApp",
"url": "https://contoh.com/kipinbox-webhook"
},
"support": {
"channels": [
null
],
"current_closes_at": "2026-11-26T03:00:00Z",
"hours": [
null
],
"next_open_at": "2026-11-26T03:00:00Z",
"open_now": false,
"reply_target_minutes": 1,
"resolution_business_days": 1,
"timezone": "Asia/Jakarta"
}
},
"suggested_market_code": "string"
}
}GET/v1/ meProfil
{
"data": {
"api_access": {
"allowed": true,
"missing": [
"email_verified"
]
},
"created_at": "2026-11-26T03:00:00Z",
"customer_group": "reseller",
"email": "[email protected]",
"email_verified": false,
"has_password": false,
"id": "usr_0h7m2k9q4c1x8v5n3b6t0r2w",
"identities": [
{
"created_at": "2026-11-26T03:00:00Z",
"kind": "email",
"removable": false
}
],
"kind": "registered",
"locale": "id",
"market": "id",
"preferred_currency": "IDR",
"timezone": "Asia/Jakarta"
}
}GET/v1/ currenciesDaftar mata uang
{
"data": [
{
"code": "123456",
"display_fraction_digits": 1,
"exponent": 0,
"kind": "credit",
"topup_minimum": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
}
]
}Tanpa kunci
GET/v1/ reseller/ termsSyarat reseller
{
"data": {
"discount_bps": 500,
"example": {
"country_code": "ID",
"reseller_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
},
"service_code": "whatsapp",
"wallet_price": {
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
},
"max_open_orders": {
"reseller": 1,
"retail": 1
},
"topup_threshold": [
{
"amount_minor": 3500,
"currency": "IDR",
"exponent": 0
}
]
}
}GET/v1/ openapi. jsonDokumen OpenAPI publik
{}Webhook
Kiriman bertanda tangan. Verifikasi dulu sebelum dipercaya.
Kipinbox-Signature: t=1795412645,k=2.1,v1=5f2b…,k=1.1,v1=9ac0…- Kipinbox-Signature berisi t (detik Unix), lalu pasangan k (versi rahasia) dan v1 (tanda tangan atas t, titik, dan badan).
- Kipinbox-Event-Id unik per kejadian. Buang kiriman ganda.
- Urutan kiriman tidak dijamin. Baca keadaan lengkap lewat endpoint pesanan.
- Jawab 2xx secepatnya. Kiriman gagal dicoba lagi, lalu alamat dimatikan bila gagal berulang.
- Selama rahasia diganti, kiriman membawa dua pasangan k dan v1. Terima bila salah satunya cocok.
Format
- kipinbox
- Amplop JSON untuk semua kejadian, tanpa kode dan nomor.
- sms_activate
- Gaya SMS-Activate berisi kode, hanya untuk kode masuk dan SMS baru.
Kejadian yang bisa dilanggan
- order.
awaiting_ payment - order.
acquiring - order.
waiting_ code - order.
closing - order.
code_ delivered - order.
claim_ review - order.
completed - order.
refunded - order.
expired - order.
capture_ reversed - order.
message_ received - invoice.
paid - refund.
pending - refund.
succeeded - refund.
fallback_ credited - refund.
closed_ manual - claim.
approved - claim.
rejected
<?php
$rahasia = getenv('KIPINBOX_WEBHOOK_SECRET'); // whsec_…
$kunci = base64_decode(strtr(substr($rahasia, 6), '-_', '+/'));
$badan = file_get_contents('php://input');
$t = null;
$tanda = [];
foreach (explode(',', $_SERVER['HTTP_KIPINBOX_SIGNATURE'] ?? '') as $pasang) {
[$nama, $nilai] = array_pad(explode('=', $pasang, 2), 2, '');
if ($nama === 't') $t = $nilai;
if ($nama === 'v1') $tanda[] = $nilai;
}
$harap = hash_hmac('sha256', $t . '.' . $badan, $kunci);
$sah = $t !== null && abs(time() - (int) $t) <= 300
&& count(array_filter($tanda, fn ($v) => hash_equals($harap, $v))) > 0;
http_response_code($sah ? 200 : 400);Kode galat
Kode yang belum kamu kenal: baca dari status HTTP-nya.
{
"error": {
"code": "insufficient_balance",
"params": {},
"request_id": "7c1e2a4b-5d6f-4a8b-9c0d-1e2f3a4b5c6d"
}
}| Kode | Status HTTP | Boleh diulang |
|---|---|---|
| api_ | 401 | Tidak |
| api_ | 403 | Tidak |
| api_ | 403 | Tidak |
| cancel_ | 429 | Ya |
| cancel_ | 409 | Tidak |
| channel_ | 403 | Tidak |
| claim_ | 409 | Tidak |
| claim_ | 409 | Tidak |
| claim_ | 409 | Tidak |
| cursor_ | 400 | Tidak |
| idempotency_ | 400 | Tidak |
| idempotency_ | 400 | Tidak |
| idempotency_ | 422 | Tidak |
| insufficient_ | 402 | Ya |
| insufficient_ | 403 | Tidak |
| internal_ | 500 | Ya |
| malformed_ | 400 | Tidak |
| method_ | 405 | Tidak |
| not_ | 404 | Tidak |
| open_ | 429 | Ya |
| payload_ | 413 | Tidak |
| payment_ | 422 | Tidak |
| price_ | 409 | Tidak |
| product_ | 409 | Tidak |
| rate_ | 429 | Ya |
| request_ | 409 | Ya |
| service_ | 503 | Ya |
| service_ | 503 | Ya |
| unauthenticated | 401 | Tidak |
| unsupported_ | 415 | Tidak |
| user_ | 403 | Tidak |
| validation_ | 422 | Tidak |
| webhook_ | 422 | Tidak |
| webhook_ | 409 | Tidak |
| webhook_ | 409 | Tidak |
| webhook_ | 409 | Tidak |
| webhook_ | 422 | Ya |
| webhook_ | 422 | Tidak |
| webhook_ | 422 | Tidak |
| webhook_ | 422 | Tidak |
| webhooks_ | 403 | Tidak |
Kompatibel SMS-Activate
Untuk panel dan bot yang sudah memakai protokol handler_api.php.
Alamathttps://
- Kunci API yang sama, di parameter api_key. Kirim lewat badan form supaya kunci tidak tertulis di URL.
- Id aktivasi adalah nomor pesanan 12 karakter, bukan angka.
- Jumlah uang dalam mata uang saldomu, bukan rubel.
- Kode negara dan aplikasi protokol: panggil getCountries dan getServicesList.
- count di getPrices adalah tingkat stok: 0 habis, 1 sedikit, 100 tersedia.
- Klien baru sebaiknya memakai /v1: aman diulang dan punya webhook.
getBalanceSaldo utama, dalam satuan utama mata uang saldomu.- Parameter
- Tanpa parameter
- Jawaban
- ACCESS_
BALANCE: <saldo> - Izin
- wallet.
read
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getBalanceContoh jawaban ACCESS_BALANCE:125000getNumberPesan nomor. Jawaban menunggu nomor sampai batas waktu.- Parameter
- service, country?, maxPrice?
- Jawaban
- ACCESS_
NUMBER: <id>: <nomor> - Izin
- catalog.
read, orders. write
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getNumber \ -d service=wa \ -d country=6 \ -d maxPrice=3500Contoh jawaban ACCESS_NUMBER:K7Q2M9XH4PTA:6281200000000getNumberV2Sama dengan getNumber, jawabannya JSON.- Parameter
- service, country?, maxPrice?
- Jawaban
- JSON
- Izin
- catalog.
read, orders. write
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getNumberV2 \ -d service=wa \ -d country=6Contoh jawaban { "activationCost": 3325, "activationId": "K7Q2M9XH4PTA", "activationOperator": "any", "activationTime": "2026-11-26 10:00:00", "canGetAnotherSms": true, "countryCode": "6", "currency": "IDR", "phoneNumber": "6281200000000" }getStatusBaca kode terbaru pesanan.- Parameter
- id
- Jawaban
- STATUS_
WAIT_ CODE | STATUS_ OK: <kode> | STATUS_ CANCEL - Izin
- orders.
read
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getStatus \ -d id=K7Q2M9XH4PTAContoh jawaban STATUS_OK:123456setStatus1 siap, 3 minta SMS lagi, 6 selesai, 8 batalkan.- Parameter
- id, status
- Jawaban
- ACCESS_
READY | ACCESS_ RETRY_ GET | ACCESS_ ACTIVATION | ACCESS_ CANCEL - Izin
- orders.
write
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=setStatus \ -d id=K7Q2M9XH4PTA \ -d status=8Contoh jawaban ACCESS_CANCELgetPricesHarga reseller dan tingkat stok per negara dan aplikasi.- Parameter
- service?, country?
- Jawaban
- JSON
- Izin
- catalog.
read
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getPrices \ -d service=wa \ -d country=6Contoh jawaban { "6": { "wa": { "cost": 3325, "count": 100 } } }getCountriesNegara yang punya kode protokol.- Parameter
- Tanpa parameter
- Jawaban
- JSON
- Izin
- catalog.
read
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getCountriesContoh jawaban { "6": { "chn": "ID", "eng": "ID", "id": 6, "multiService": 0, "rent": 0, "retry": 1, "rus": "ID", "visible": 1 } }getServicesListAplikasi yang punya kode protokol.- Parameter
- country?
- Jawaban
- JSON
- Izin
- catalog.
read
Contoh permintaan curl -X POST https://kipinbox.com/stubs/handler_api.php \ -d api_key=sk_… \ -d action=getServicesList \ -d country=6Contoh jawaban { "services": [{ "code": "wa", "name": "WhatsApp" }], "status": "success" }
Peta jawaban
| Keadaan | Jawaban |
|---|---|
| Kunci kosong, salah, diblokir, atau tanpa izin | BAD_ |
| Aksi kosong atau tidak dikenal | BAD_ |
| Terlalu sering (HTTP 429); tunggu sesuai header jawabannya | TOO_ |
| Sedang pemeliharaan (HTTP 503) | ERROR_ |
| Galat lain (HTTP 500) | ERROR_ |
| Kode aplikasi tanpa pemetaan | BAD_ |
| Negara tanpa pemetaan, stok habis, atau nomor tidak datang tepat waktu | NO_ |
| Saldo kurang | NO_ |
| maxPrice salah bentuk atau di bawah harga | WRONG_ |
| Batas pesanan berjalan tercapai | CHANNELS_ |
| id tidak ditemukan atau bukan milikmu | NO_ |
| status di luar 1, 3, 6, 8 atau tidak bisa diterapkan | BAD_ |
| Batas batal harian tercapai | EARLY_ |
Nilai yang dikenal
Daftar ini bisa bertambah. Abaikan nilai yang tidak dikenal; pesanan dengan status baru dibaca lewat is_terminal dan money.
- Order.
status - waiting_
payment, checking_ payment, finding_ number, replacing_ number, waiting_ code, cancelling, code_ received, claim_ pending, refunded_ to_ wallet, completed, refund_ in_ progress, refunded_ manually, refunded_ to_ source, expired - Order.
close_ reason - no_
code, no_ number, buyer_ cancelled, admin_ refund, sale_ blocked, claim_ approved, payment_ expired, payment_ cancelled, recovery_ completed - Order.
funding_ mode - wallet, pay_
per_ code - Order.
channel - web, reseller_
api - CatalogProduct.
stock_ level - available, low, none
- ApiKey.
scopes - catalog.
read, orders. read, orders. write, wallet. read, webhooks. manage - WebhookEndpoint.
format - kipinbox, sms_
activate - WebhookEndpoint.
topics - order.
awaiting_ payment, order. acquiring, order. waiting_ code, order. closing, order. code_ delivered, order. claim_ review, order. completed, order. refunded, order. expired, order. capture_ reversed, order. message_ received, invoice. paid, refund. pending, refund. succeeded, refund. fallback_ credited, refund. closed_ manual, claim. approved, claim. rejected - WebhookDelivery.
status - pending, sending, delivered, dead
- WebhookDelivery.
last_ result_ class - delivered, timeout, connect_
error, tls_ error, blocked_ destination