Merchants API

Manage merchant accounts, settings, billing, and integrations

17 endpoints

Base URL:https://api.nexapay.com/v1
MethodPathDescription
GET/merchants/meGet current merchant details
PUT/merchants/meUpdate merchant information
GET/merchants/me/settingsGet merchant settings
PUT/merchants/me/settingsUpdate merchant settings
GET/merchants/me/businessGet business information
PUT/merchants/me/businessUpdate business information
POST/merchants/me/business/verifySubmit business verification
GET/merchants/me/billingGet billing information
PUT/merchants/me/billingUpdate billing information
GET/merchants/me/invoicesList all invoices
GET/merchants/me/invoices/{invoice_id}Get invoice details
POST/merchants/me/subscriptionCreate or update subscription
DELETE/merchants/me/subscriptionCancel subscription
GET/merchants/me/integrationsList integrations
POST/merchants/me/integrationsAdd integration
PUT/merchants/me/integrations/{integration_id}Update integration
DELETE/merchants/me/integrations/{integration_id}Remove integration

Detailed Examples

GET/merchants/me

Get 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/settings

Update 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"
  }
}