Merchant API

Server-to-server endpoints for POS integration. Available on the Enterprise tier (included) and Professional tier (add-on). Use these to push charges from your POS, look up customer CLV in real time, programmatically hold spots in your line, and book reservations from external systems.

Authentication

Every request must include your API key in the X-Momensa-Merchant-Key header. Keys are generated per-merchant in your dashboard under Settings → API keys. Keys are scoped to your merchant ID; they cannot access other merchants' data.

curl https://agents.cloudfran.com/api/momensa/customers/c-123 \
     -H "X-Momensa-Merchant-Key: mk_live_xxxxxxxxxxxx"

Rate limits

1,000 requests per minute per key. 429 returned with Retry-After header if exceeded. Raise via support for high-volume POS integrations.

Endpoints

POST/api/momensa/charges

Create a Momensa Pay charge from your POS. Returns the charge ID, CloudFran fee breakdown, merchant net, and points awarded to the customer.

FieldTypeNotes
customer_idstringMomensa customer ID (required)
amountnumberDollar amount (required, > 0)
descriptionstringFree-text description (optional)
vertical_codestringOverride merchant default vertical (optional)
{
  "customer_id": "c-88d2fa",
  "amount": 47.50,
  "description": "Table 12 · dinner"
}
GET/api/momensa/customers/{id}

Customer CLV + tier lookup at POS — lets the terminal flash "PLATINUM" or "Premier" before the staff rings up, so they can deliver the right treatment.

{
  "id": "c-88d2fa",
  "tier": "platinum",
  "clv_cents": 284700,
  "visits_last_90d": 14
}
POST/api/momensa/line/hold

Programmatic line hold from a host-stand app. Returns ticket ID + estimated wait.

POST/api/momensa/reservations

Book a reservation from an external booking system (OpenTable, Resy, custom site). Creates a Momensa reservation tied to your merchant + location.

POST/api/momensa/spend

Record a transaction from a POS that isn't using Momensa Pay — feeds into CLV tier classification without charging processing fees. Useful if you want tier data without swapping your payments processor.

Webhooks Coming soon

Subscribe to these event types for real-time updates to your POS/CRM:

SDKs

Official SDKs in Node.js, Python, Ruby, Go, and C#. All wrap the REST API with ergonomic method signatures and auto-retry on 429. Request SDK access from api@cloudfran.com.

Errors

CodeMeaning
400Bad request — required field missing or malformed
401Invalid or missing X-Momensa-Merchant-Key
403API key valid but scoped to a different merchant
404Resource not found
429Rate limit exceeded
5xxServer error — retry with exponential backoff

Need API access on Starter/Growth? api@cloudfran.com · Base URL: https://agents.cloudfran.com