Merchants API
Manage merchant accounts, settings, billing, and integrations
17 endpoints
Base URL:
https://api.nexapay.com/v1| Method | Path | Description |
|---|---|---|
| GET | /merchants/me | Get current merchant details |
| PUT | /merchants/me | Update merchant information |
| GET | /merchants/me/settings | Get merchant settings |
| PUT | /merchants/me/settings | Update merchant settings |
| GET | /merchants/me/business | Get business information |
| PUT | /merchants/me/business | Update business information |
| POST | /merchants/me/business/verify | Submit business verification |
| GET | /merchants/me/billing | Get billing information |
| PUT | /merchants/me/billing | Update billing information |
| GET | /merchants/me/invoices | List all invoices |
| GET | /merchants/me/invoices/{invoice_id} | Get invoice details |
| POST | /merchants/me/subscription | Create or update subscription |
| DELETE | /merchants/me/subscription | Cancel subscription |
| GET | /merchants/me/integrations | List integrations |
| POST | /merchants/me/integrations | Add integration |
| PUT | /merchants/me/integrations/{integration_id} | Update integration |
| DELETE | /merchants/me/integrations/{integration_id} | Remove integration |
Detailed Examples
GET
/merchants/meGet detailed information about the authenticated merchant.
Response
{
"success": true,
"data": {
"id": "mer_abc123",
"name": "My Coffee Shop",
"email": "owner@mycoffeeshop.com",
"phone": "+1-555-123-4567",
"logo_url": "https://cdn.nexapay.com/logos/abc123.png",
"business_type": "restaurant",
"plan": {
"id": "plan_pro",
"name": "Professional",
"price": 49.99,
"billing_cycle": "monthly",
"features": {
"max_stores": 5,
"max_users": 20,
"api_calls": 50000
}
},
"address": {
"street": "123 Main St",
"city": "Las Vegas",
"state": "NV",
"zip": "89101",
"country": "US"
},
"timezone": "America/Los_Angeles",
"currency": "USD",
"locale": "en-US",
"status": "active",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2024-01-15T14:20:00Z"
}
}PUT
/merchants/me/settingsUpdate merchant settings and preferences.
Request Body
{
"receipt": {
"show_logo": true,
"show_tax": true,
"footer_message": "Thank you for your business!",
"include_qr_code": true
},
"notifications": {
"email_orders": true,
"email_reports": true,
"sms_alerts": false,
"low_stock_alert": true,
"low_stock_threshold": 10
},
"tax": {
"enabled": true,
"type": "inclusive",
"default_rate": 8.25
},
"payment": {
"accepted_methods": ["cash", "card", "mobile"],
"default_payment": "card",
"auto_print_receipt": true
}
}Response
{
"success": true,
"data": {
"receipt": { ... },
"notifications": { ... },
"tax": { ... },
"payment": { ... },
"updated_at": "2024-01-15T15:30:00Z"
}
}