API logs
See what your integration sent, what came back, and what the bank said.
When a call fails, find it in Dashboard → Developers → API logs. Each entry shows the request, the response, the error, and a timeline of every other call in the same trace.
Find a request
Every response carries a trace_id (header X-Trace-ID, and in every error body). Search for it, or for a payment or invoice id, or for the start of a path such as /v1/invoices.
curl -i https://cambill.cubis.tech/v1/payment-intents \
-H "X-API-Key: $CAMBILL_API_KEY" -H "Content-Type: application/json" \
-d '{"amount": -1, "currency": "USD"}'
# HTTP/2 400
# x-trace-id: 4bf92f3577b34da6a3ce929d0e0e4736Send your own 32-character hex X-Trace-ID to line CamBill's logs up with yours.
Without a date filter the list covers the last 7 days. Searching an id looks through everything still kept.
Who made each call
Open a call to see who made it.
| Caller | What you see |
|---|---|
| Your server | The API key's short fingerprint, with its IP address and user agent. |
| Someone in your dashboard | Their account and sign-in session, with IP address and browser. |
| A payer | A code such as payer_9f2c41d07a6be315, and no address or browser. |
| CamBill itself | system and the job's name, such as reconciler or webhook-worker. |
CamBill's call to a bank shows whoever caused it. A key that was refused shows its fingerprint too, so you can tell which key is failing.
One payment, one trace
A payment's later calls are filed under the trace of the request that created it: your reads of it, the payer's checkout steps, the bank's callback, CamBill's checks with the bank, and each webhook delivery. The timeline shows which call led to which.
| Field | What it is |
|---|---|
trace_id | The trace the calls share: the one of the request that created the payment. |
request_id | The X-Trace-ID of the request involved. This is the id in its response and error body. |
span_id | This call. |
parent_span_id | The call that led to it. |
Searching a trace_id or a request_id finds the record. An invoice's payment stays in the invoice's trace. A subscription starts a new trace for each billing period. Records made before this release have only their own trace_id.
Where the fault is
| You see | Look at |
|---|---|
A 4xx | The request. The error title and detail say what was rejected. |
A 5xx | CamBill. Send support the trace_id: they can see the internal cause. |
| A bank or provider call that failed or got no answer | The bank, or your connector's credentials. |
| Nothing at all | The request never reached CamBill, used an unknown API key, or its kind is not recorded. |
What is recorded
By default: the payment-intent, invoice and subscription APIs, a payer's checkout actions, bank pushbacks, calls to banks and providers, webhook delivery attempts, and any server error. The customer and catalogue APIs, status polling and dashboard changes are recorded only if the platform operator turns them on. Logs are kept for 30 days by default and never more than 90.
Logging is a debugging aid. It never slows or fails your request, and under heavy load an entry can be missing. Use webhooks and the API itself, not the logs, as your record of what happened.
What is removed
Values are cleaned before they are stored, so neither you nor CamBill can read them back.
- Secrets (API keys, client secrets, tokens, signatures) show as
[REDACTED fp:1a2b3c4d]. The same value always has the same fingerprint, so you can tell whether two requests used the same key. Passwords and card data have no fingerprint. - Personal data is masked:
s***@example.com,***5678,S*** C***. A payer's IP address and browser are never recorded. Instead a payer's calls carry a code such aspayer_9f2c41d07a6be315: the same visitor to your business gets the same code, so you can follow their steps, and no other business sees that code. - Anything that is not JSON or a form, or is very large, is not stored. You see a note saying so.
Free text, such as a description or your own metadata, is cleaned only where it matches something recognised. Never put secrets or sensitive personal data in it.