Official API reference and integration assets for XPayr Merchant API v1.
This repository is documentation-only and excludes production backend code, merchant panel internals, and any secret material.
- Production:
https://xpayr.com/api/v1
docs/endpoint references, auth, errors, webhook and plugin integration notespostman/official Postman collection and environmentexamples/language-specific integration snippetsweb/doc-api/index.phplive/doc-apisource snapshot
- Import Postman files:
postman/xpayr_gateway_v1.postman_collection.jsonpostman/xpayr_gateway_v1.postman_environment.json
- Set environment variable
bearer_token(sk_test_...orsk_live_...). - Call
GET /healththenPOST /payments. - Configure webhook endpoint with
POST /webhooks.
- Health:
GET /health - Payments:
POST /payments,GET /payments,GET /payments/{id},POST /payments/{id}/complete - Merchant:
GET /me,GET /me/balance,POST /me/keys/regenerate,GET /me/networks - Agent Commerce:
POST /agents,PUT /agents/{agent_public_id}/policy,POST /agent-intents, approval routes - Webhooks:
POST /webhooks,GET /webhooks,POST /webhooks/test,DELETE /webhooks
docs/authentication.mddocs/endpoints-index.mddocs/payments.mddocs/webhooks.mddocs/plugins-integration.mddocs/agent-commerce-mode.md
Before publishing updates, run:
./scripts/scan-sensitive.shAll rights reserved unless a separate license file is added.