Braintree troubleshooting
Recover Braintree credential, polling, webhook, and Level 2/3 preparation failures without repeating a Braintree transaction.
On this page
Identify the failed stage
- Confirm the merchant, Carden environment, Braintree environment, and Carden key.
- Save the x-carden-request-id, preparation.id, attemptId, eventId, and Braintree transaction ID.
- Separate preparation, your Braintree sale or capture, your Carden report, Carden's scheduled transaction poll, and Braintree webhook delivery.
- Retry only the operation that failed. A Carden failure never justifies another Braintree sale.
Connect and verify keys
| Symptom | Recovery |
|---|---|
| Authentication failed | The keys belong to the other Braintree environment, or a value was copied incompletely. Use sandbox keys in a sandbox workspace and production keys in a production workspace. |
| Authorization failed | The API user's role cannot view transactions. Grant transaction view access to its custom role, then select Verify and connect again. |
| Merchant already connected | This Braintree merchant is connected to another Carden workspace. Disconnect it there, or connect the intended workspace. |
| Line item count shows — | The API user's role cannot read line items. Grant that view permission; Carden reads line items after a sale settles because webhooks omit them. |
Carden never shows the private key after saving. To change keys, generate a new key in Braintree and select Rotate API keys.
Fix transaction polling
| Symptom | Recovery |
|---|---|
| Stays Backfill pending | The first run has not completed yet. Backfill reads 90 days of transactions in weekly windows and completes within a few scheduler cycles. If it stays pending for more than a day, check that the connection shows API keys verified. |
| Needs attention: Braintree rejected these API keys | The keys were revoked or regenerated in Braintree. Select Rotate API keys and paste the current pair. Polling resumes from the last completed window. |
| Needs attention: lack a permission | The API user's role lost transaction search or view access. Restore it in Braintree; no re-connection is needed. |
| Needs attention: more than 5000 transactions for one search window | A single lifecycle window exceeded Carden's bound. Contact Carden support to narrow the backfill window for this merchant; incremental runs are unaffected. |
| A card sale is missing | Polling reads transactions whose lifecycle dates fall inside the window. A sale older than 90 days at connection time is not imported. A recent sale appears after the next scheduled run; the Setup page shows the last successful read time. |
| A refund shows as pending | A credit that has not settled or failed at Braintree stays pending and marks the invoice evidence as not final. Settled and failed credits are picked up on the next run. |
Fix webhook delivery
| Symptom | Recovery |
|---|---|
| Stays Awaiting first notification | The destination URL must be public HTTPS. Select Check URL next to the webhook in Braintree, then Refresh webhook status in Carden. For local development, expose your server through an HTTPS tunnel. |
| 400 invalid_signature | The keys were rotated or disconnected after the webhook was created. Save the current keys in Carden for the same Braintree merchant. |
| 400 invalid_event | The delivery is missing bt_signature or bt_payload, or the notification is incomplete. |
| 404 endpoint_not_found | The URL in Braintree does not match the destination URL in Carden. Copy it again. |
| 409 credentials_required / connection_unavailable | Connect Braintree keys in Carden, or reconnect a disconnected integration. |
| 410 endpoint_disabled | The integration was disconnected. Remove the old webhook in Braintree. |
| Recent notifications show ignored | Transaction Disbursed and Disbursement notifications are recorded but not used; deselect them in Braintree. Other ignored kinds are ones Carden does not process. |
| A dispute notification shows received | The dispute names a transaction Carden has not read yet. It is linked when the next poll reads the disputed transaction. |
Resolve Level 2/3 preparation issues
| Symptom | Recovery |
|---|---|
| missing_purchase_order_number | Add the buyer's PO to the invoice in QuickBooks. If your buyers use the invoice number as their reference, turn on "Use the invoice number when there is no PO" under Settings → Network data rules for linked invoices, or pass purchaseOrderNumberSource: "invoice_number" on inline requests. |
| purchase_order_number_too_long / identifier_too_long | Braintree limits PO numbers to 17 characters and codes and units to 12. Carden does not truncate identifiers; correct the source or take an ordinary payment. |
| missing_product_code / missing_unit_of_measure | Add the SKU or unit to the item in QuickBooks, or approve an evidence-backed item mapping. |
| unsupported_currency | Level 2/3 fields are prepared for USD only. Take the payment without Level 2/3 fields. |
| arithmetic_mismatch / payment_amount_mismatch | Correct the invoice amounts, and charge the full invoice total. |
- Carden never invents PO numbers, SKUs, units, quantities, or tax.
- For checkout readiness, a PO, SKU, or unit gap downgrades to an ordinary payment instead of blocking it.
- A Level 3 ineligible transaction can still settle normally; it just carries no Level 2/3 data.
Do not infer savings from polled or webhook evidence
Braintree transaction reads and webhooks do not include per-transaction fees or the interchange category. A commercial card classification and a retained PO, tax amount, or line items show eligibility and transmission, not qualification. Verified savings need settlement cost evidence, pass-through pricing, and a documented baseline.