Lewati ke konten
Masuk

Dokumentasi API

API reseller KipInbox dan pintu kompatibel SMS-Activate.

URL dasarhttps://kipinbox.com/v1

OpenAPI JSON
Daftar isi

Mulai dalam tiga langkah

  1. Buat kunci API di akun reseller.

    Buka kunci API
  2. Kirim kunci di header Authorization.

    cURL
    curl https://kipinbox.com/v1/wallet \
      -H "Authorization: Bearer sk_…"
  3. 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
  • orders.write
    • POST /v1/orders
    • POST /v1/orders/{public_id}/cancel
    • POST /v1/orders/{public_id}/claims
  • orders.read
    • GET /v1/orders
    • GET /v1/orders/{public_id}
    • GET /v1/orders/{public_id}/claim
  • wallet.read
    • GET /v1/wallet
    • GET /v1/wallet/entries
  • 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
  • Izin apa saja
    • GET /v1/context
    • GET /v1/me
    • GET /v1/currencies
  • Tanpa kunci
    • GET /v1/reseller/terms
    • GET /v1/openapi.json

Endpoint

Dibangkitkan dari OpenAPI publik. Field baru bisa bertambah; abaikan yang tidak kamu kenal.

Izin: catalog.read

GET/v1/catalog/servicesDaftar layanan

Parameter

  • include_unavailablequeryOpsionalboolean
  • sortqueryOpsionalstring, default | recommended, default default
  • limitqueryOpsionalinteger, 1–100, default 20
  • cursorqueryOpsionalstring
  • codequeryOpsionalstring
Contoh jawaban 200
{
  "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

  • servicequeryOpsionalstring
  • include_unavailablequeryOpsionalboolean
  • sortqueryOpsionalstring, default | recommended, default default
  • limitqueryOpsionalinteger, 1–100, default 20
  • cursorqueryOpsionalstring
Contoh jawaban 200
{
  "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

  • servicequeryOpsionalstring
  • countryqueryOpsionalstring
  • product_typequeryOpsionalstring, activation, default activation
  • include_unavailablequeryOpsionalboolean
  • sortqueryOpsionalstring, default | recommended | popular, default default
  • limitqueryOpsionalinteger, 1–100, default 20
  • cursorqueryOpsionalstring
Contoh jawaban 200
{
  "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_idpathWajibstring
Contoh jawaban 200
{
  "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_idpathWajibstring
  • funding_modequeryOpsionalstring, wallet | pay_per_code
  • payment_methodqueryOpsionalstring
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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_idqueryOpsionalstring
  • servicequeryOpsionalstring
  • countryqueryOpsionalstring
  • weeksqueryOpsionalinteger, 1–8, default 8
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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

Badan permintaan
{
  "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"
}
Contoh jawaban 201
{
  "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_idpathWajibstring
Contoh jawaban 200
{
  "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_idpathWajibstring
Badan permintaan
{
  "email_code": "string",
  "note": "string",
  "reason_code": "code_rejected"
}
Contoh jawaban 201
{
  "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 20
  • cursorqueryOpsionalstring
  • is_terminalqueryOpsionalboolean
  • viewqueryOpsionalstring, full | summary, default full
Contoh jawaban 200
{
  "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_idpathWajibstring
Contoh jawaban 200
{
  "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_idpathWajibstring
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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

  • currencyqueryOpsionalstring
  • kindqueryOpsionalstring
  • limitqueryOpsionalinteger, 1–100, default 20
  • cursorqueryOpsionalstring
Contoh jawaban 200
{
  "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 20
  • cursorqueryOpsionalstring
Contoh jawaban 200
{
  "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

Badan permintaan
{
  "format": "kipinbox",
  "topics": [
    "string"
  ],
  "url": "https://contoh.com/kipinbox-webhook"
}
Contoh jawaban 201
{
  "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_idpathWajibstring
Contoh jawaban 200
{
  "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_idpathWajibstring
Badan permintaan
{
  "format": "kipinbox",
  "topics": [
    "string"
  ]
}
Contoh jawaban 200
{
  "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_idpathWajibstring

Contoh jawaban 204

POST/v1/webhook-endpoints/{public_id}/enableAktifkan ulang endpoint webhook

Butuh Idempotency-Key webhook_endpoints.enable

Parameter

  • public_idpathWajibstring
Contoh jawaban 200
{
  "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_idpathWajibstring
Contoh jawaban 200
{
  "data": {
    "secret": "whsec_…",
    "secret_version": 1
  }
}
POST/v1/webhook-endpoints/{public_id}/testKirim webhook uji

Butuh Idempotency-Key webhook_endpoints.test

Parameter

  • public_idpathWajibstring
Contoh jawaban 202
{
  "data": {
    "event_id": "evt_0h7m2k9q4c1x8v5n3b6t0r2w"
  }
}
GET/v1/webhook-endpoints/{public_id}/deliveriesLog kiriman endpoint webhook

Parameter

  • public_idpathWajibstring
  • limitqueryOpsionalinteger, 1–100, default 20
  • cursorqueryOpsionalstring
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{
  "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
Contoh jawaban 200
{}

Webhook

Kiriman bertanda tangan. Verifikasi dulu sebelum dipercaya.

Header tanda tangan
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
Verifikasi tanda tangan
<?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.

Contoh galat
{
  "error": {
    "code": "insufficient_balance",
    "params": {},
    "request_id": "7c1e2a4b-5d6f-4a8b-9c0d-1e2f3a4b5c6d"
  }
}
Kode galat
KodeStatus HTTPBoleh diulang
api_key_invalid401Tidak
api_key_management_requires_session403Tidak
api_key_not_allowed403Tidak
cancel_limit_reached429Ya
cancel_not_allowed409Tidak
channel_not_available403Tidak
claim_exists409Tidak
claim_not_allowed409Tidak
claim_window_closed409Tidak
cursor_invalid400Tidak
idempotency_key_invalid400Tidak
idempotency_key_required400Tidak
idempotency_key_reused422Tidak
insufficient_balance402Ya
insufficient_scope403Tidak
internal_error500Ya
malformed_request400Tidak
method_not_allowed405Tidak
not_found404Tidak
open_order_limit_reached429Ya
payload_too_large413Tidak
payment_method_unavailable422Tidak
price_changed409Tidak
product_unavailable409Tidak
rate_limited429Ya
request_in_progress409Ya
service_recovering503Ya
service_unavailable503Ya
unauthenticated401Tidak
unsupported_media_type415Tidak
user_blocked403Tidak
validation_failed422Tidak
webhook_destination_blocked422Tidak
webhook_endpoint_disabled409Tidak
webhook_endpoint_limit_reached409Tidak
webhook_endpoint_not_enableable409Tidak
webhook_host_unresolvable422Ya
webhook_port_not_allowed422Tidak
webhook_topic_unknown422Tidak
webhook_url_invalid422Tidak
webhooks_not_allowed403Tidak

Kompatibel SMS-Activate

Untuk panel dan bot yang sudah memakai protokol handler_api.php.

Alamathttps://kipinbox.com/stubs/handler_api.php

  • 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=getBalance
    Contoh jawaban
    ACCESS_BALANCE:125000
  • getNumberPesan 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=3500
    Contoh jawaban
    ACCESS_NUMBER:K7Q2M9XH4PTA:6281200000000
  • getNumberV2Sama 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=6
    Contoh 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=K7Q2M9XH4PTA
    Contoh jawaban
    STATUS_OK:123456
  • setStatus1 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=8
    Contoh jawaban
    ACCESS_CANCEL
  • getPricesHarga 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=6
    Contoh 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=getCountries
    Contoh 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=6
    Contoh jawaban
    {
      "services": [{ "code": "wa", "name": "WhatsApp" }],
      "status": "success"
    }

Peta jawaban

Peta jawaban
KeadaanJawaban
Kunci kosong, salah, diblokir, atau tanpa izinBAD_KEY
Aksi kosong atau tidak dikenalBAD_ACTION
Terlalu sering (HTTP 429); tunggu sesuai header jawabannyaTOO_MANY_REQUESTS
Sedang pemeliharaan (HTTP 503)ERROR_SQL
Galat lain (HTTP 500)ERROR_SQL
Kode aplikasi tanpa pemetaanBAD_SERVICE
Negara tanpa pemetaan, stok habis, atau nomor tidak datang tepat waktuNO_NUMBERS
Saldo kurangNO_BALANCE
maxPrice salah bentuk atau di bawah hargaWRONG_MAX_PRICE:<total>
Batas pesanan berjalan tercapaiCHANNELS_LIMIT
id tidak ditemukan atau bukan milikmuNO_ACTIVATION
status di luar 1, 3, 6, 8 atau tidak bisa diterapkanBAD_STATUS
Batas batal harian tercapaiEARLY_CANCEL_DENIED

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