Skip to documentation content

Square troubleshooting

Recover Square Order, Payment, source, identity, and reporting failures without repeating provider operations.

On this page

Identify the failed Square stage

  1. Confirm merchant, Carden environment, Square integration, Carden key, and provider environment.
  2. Save request ID, preparation.id, attemptId, eventId, and known orderId, paymentId, and locationId values.
  3. Separate source lookup, Carden preparation, CreateOrder, CreatePayment, Square webhook verification, any optional Carden observation, and payout reconciliation.
  4. Inspect the authoritative system for that stage and retry only its safe operation.

Carden confirms Square payments from signed webhook events. Square report APIs remain available for optional merchant observations and do not affect webhook confirmation.

Webhook symptomResolution
invalid_signature (400)The Square subscription URL must match Carden's notification URL exactly, and the saved signature key must belong to that subscription. Replace the key if it was rotated in Square.
merchant_mismatch (400)The endpoint is bound to the first Square seller that delivered an event. Use a separate Carden integration per seller, or replace the signature key before any captured payment is confirmed to rebind.
Event status receivedA refund or dispute arrived before its Payment snapshot. It is retained and resolves when the Payment event arrives.
Payment unmatchedSet CreatePayment reference_id to the Carden preparation.id, or report the payment with its enrichmentRequestId.
endpoint_disabled (410)Create a replacement endpoint in Carden and update or remove the old Square subscription.
integration_paused (503)Ingestion is paused in Advanced integration preferences. Resume it; Square retries refused deliveries for a limited time, so re-send older events from the Square webhook logs if the pause outlasted the retry window.
Event status ignored, refund_unlinkedThe refund was created with unlinked=true and names no Square payment. The signed event is retained; nothing can be reconciled against a Carden payment.
Issue processor_dispute_lost or disputed amount setA LOST or ACCEPTED dispute withdrew funds. The remaining amount on the invoice evidence already excludes it; review the dispute record before any new allocation.

Resolve Order preparation and arithmetic

SymptomRecovery
Wrong provider scopeUse a Square-integration Carden key; Stripe and QuickBooks keys are rejected.
Missing location or idempotencyAdd the merchant's actual provider-owned values after Carden preparation.
400 shape or field limitCorrect the strict request and factual references.
422 quantity or arithmeticCorrect source quantities, tax, discount, shipping, and totals; never infer missing provider units.
409 source or revisionFinish QuickBooks refresh and review the current immutable source revision.
Order total differsDo not create the Payment until Square-computed Order total and intended amount are reconciled.

Carden uses fixed discount and service-charge amounts (invoice tax and shipping are both fixed service charges) to preserve source facts. It rejects overlong references, quantities beyond five decimal places, fractional quantities whose unit-price product is not a whole minor unit, and currencies Square does not settle in, instead of silently rounding, truncating, or guessing.

Reconcile ambiguous Payments

  • Persist Square Order and Payment idempotency keys and returned IDs before relying on network delivery.
  • Retrieve Payment state after a timeout; PENDING remains unknown until provider evidence establishes another state.
  • Verify Square webhook signatures using the exact notification URL, signature key, and raw body.
  • Use cumulative captured and refunded amounts and tolerate duplicate or out-of-order events.
  • Keep separate attempt IDs for multiple Payments attached to one Order.

Handle an optional observation failure

Use this guidance only if you chose to submit Square observations. Keep the provider result and application payment state independent of the observation request.

ResponseAction
2xx, including duplicateThe observation was accepted; duplicate acknowledges the same event.
408, 429, 5xx, timeout, connectionRetry the same eventId and body with bounded backoff if needed.
401 / 403Repair the active Square-integration key and scope before another observation request.
400 / 422Correct factual normalized fields; create a new event for a correction.
409Reconcile event identity, payment aliases, cumulative amounts, currency, and occurrence order.

Do not infer savings from bundled fees

Square processing_fee and payout entries can support reconciliation but do not by themselves establish network-level interchange qualification. Standard bundled pricing often prevents an underlying interchange reduction from changing merchant cost.

Escalate with safe Carden and Square IDs, response classes, actual timestamps, and payment impact. Keep access tokens, webhook keys, source tokens, raw card data, and unrestricted provider objects out of logs.