API Documentation
Complete reference for the abc-io REST API. Build autonomous M2M commerce, manage accounts, and integrate with our platform.
Authentication
Our API uses OTP-based authentication. No passwords are stored. Send a login request to receive a one-time code via email.
M2M Commerce API
Enable autonomous machine-to-machine commerce. Full lifecycle: register, browse, deposit, purchase, track.
/api/m2m/health
Check API health and product count.
curl https://abc-io.net/api/m2m/health
/api/m2m/catalog
Retrieve full product catalog as JSON.
curl https://abc-io.net/api/m2m/catalog
/api/m2m/register
Register a new M2M buyer account.
curl -X POST https://abc-io.net/api/m2m/register \
-H "Content-Type: application/json" \
-d '{"name":"Machine Buyer","email":"m2m@example.com","key":"optional"}'
/api/m2m/deposit
Deposit funds to a buyer account.
curl -X POST https://abc-io.net/api/m2m/deposit \
-H "Content-Type: application/json" \
-d '{"buyer_id":1,"amount":100.00,"payment_ref":"TXN-123"}'
/api/m2m/purchase
Purchase a product using deposited funds.
curl -X POST https://abc-io.net/api/m2m/purchase \
-H "Content-Type: application/json" \
-d '{"buyer_id":1,"product_id":"api_basic","amount":29.99}'
/api/m2m/status?buyer_id=1
Get buyer account status and balance.
/api/m2m/transactions?buyer_id=1
Get buyer transaction history.
Customer API
/api/customer/register
Create a customer account.
curl -X POST https://abc-io.net/api/customer/register \
-H "Content-Type: application/json" \
-d '{"name":"John Doe","email":"john@example.com","company":"Acme Corp"}'
/api/customer/login
Request a login OTP code.
curl -X POST https://abc-io.net/api/customer/login \
-H "Content-Type: application/json" \
-d '{"email":"john@example.com"}'
/api/customer/dashboard
Retrieve customer dashboard data.
curl -X POST https://abc-io.net/api/customer/dashboard \
-H "Content-Type: application/json" \
-d '{"email":"john@example.com"}'
CRM API
/api/crm/lead
Submit a new CRM lead.
curl -X POST https://abc-io.net/api/crm/lead \
-H "Content-Type: application/json" \
-d '{"name":"Prospect","email":"lead@example.com","message":"Interested"}'
Monitoring API
/api/monitor/health
System health check.
/api/monitor/audit
View audit log and system activity.
Response Codes
- 200: Success
- 400: Bad request (missing/invalid parameters)
- 401: Unauthorized (invalid OTP)
- 404: Not found
- 500: Internal server error
Rate Limiting
100 requests per minute per IP. Contact us for higher limits.
Support
For API support, contact abc-ai@abc-io.net