Use this playbook to validate your integration from discovery payments through post payment data retrieval. All examples build on the concepts in the Coinbase X402 welcome guide.
Tools
cURL for basic smoke tests.
Postman or Hoppscotch for manual exploration.
Automated scripts using the official X402 SDKs (@coinbase/x402, coinbase_x402).
Run the script on a schedule to confirm that credentials, wallets, and facilitator connections remain valid.
Postman collection tips
Set NEURA_BASE_URL, CDP_API_KEY_ID, and CDP_API_KEY_SECRET as collection variables.
Create a pre-request script that checks for a cached payment proof; if none exists, trigger the discovery request programmatically, settle the invoice via the Coinbase API, and add the proof headers automatically.
Store the invoice payload and expiration timestamp in the Postman environment to avoid redundant payments during rapid iteration.
Monitoring and alerts
Track error rates (success: false) and specific status codes (402, 429, 500).
Alert if payment settlement fails repeatedly; this often indicates depleted wallet balances or expired facilitator credentials.
Monitor response latency. Sudden increases may correlate with network congestion or rate limiting.
Troubleshooting checklist
Issue
Steps
Invoice paid but request returns 402
Confirm you replayed the exact HTTP method, URL, and body. Regenerate proof headers using the Coinbase SDK.