The Billing APIs allows merchants to store and manage their customers, bills & accounts in the Moment ecosystem.

Key Features

  • High Availability & Low Latency – 99.99% uptime with optimized API performance.
  • Seamless Payments – Accept payments from Moment’s Channel Partners.
  • Flexible Customer & Billing Management – Supports multi-level structure: Customers → Accounts → Bills.

Benefits

  • Scalability – Expand globally with multi-currency support and diverse payment methods.
  • Simplicity – Manage customers, accounts, and bills effortlessly via a single API.
  • Efficiency – Reduce API calls with composite operations for faster workflows.
  • Reliability – 99.99% uptime ensures seamless transactions with low latency.

Entities

1. Customers

Customers are the top-level entities representing individual users or businesses.
  • A Customer can have a balance associated with it.
    • Negative balance → The customer has credit.
    • Positive balance → The customer owes that amount.
  • A Customer may have multiple Accounts (sub-customer entities).
  • A Customer can also have Bills directly associated with them.

2. Accounts

Accounts represent sub-customer entities within a Customer.
  • An Account can have a balance associated with it.
    • Negative balance → The customer has credit.
    • Positive balance → The customer owes that amount.
  • An Account can have multiple Bills associated with it.

3. Bills

Bills represent one-off payments that need to be collected.
  • A Bill must belong to either a Customer or an Account.
  • A Bill must have an amount_due and can optionally have a due_date.
  • Each Bill has a status field, which can be:
    • UNPAID → The bill has not been fully paid.
    • PAID → The bill has been fully paid.

4. Relationships Between Entities

  • Customer → Accounts: A Customer can have multiple Accounts.
  • Customer → Bills: A Customer can have multiple Bills.
  • Account → Bills: An Account can have multiple Bills.

Use Cases