Skip to main content
GET
/
billing
/
accounts
/
{account}
Retrieve Account
curl --request GET \
  --url https://api.momentpay.net/billing/accounts/{account} \
  --header 'Authorization: Bearer <token>'
{
  "id": "bacc_H4jp6KnU5cPw263v1jyz4",
  "external_reference": "UAR1234567890",
  "customer_id": "bcus_H4jp6KnU5cPw263v1jyz4",
  "name": "Subscription Account",
  "currency": "ZAR",
  "balance": 2000,
  "payment_rules": {
    "min_amount": 100,
    "max_amount": 500000,
    "underpayment_allowed": true,
    "overpayment_allowed": false
  },
  "metadata": {
    "account_type": "subscription",
    "billing_cycle": "monthly"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.momentco.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authentication using Bearer tokens. Include your API key in the Authorization header.

Key Types:

  • Test Keys: sk_test_* for development and testing
  • Live Keys: sk_* for production environments
  • Public Keys: pk_test_* or pk_* for client-side operations

📩 Need access? Contact Support to request your API keys.

Usage:

Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc

Path Parameters

account
required

Account identifier - either the unique ID provided by Moment or the external reference provided by the merchant.

Unique identifier for an account

Pattern: ^bacc_[a-zA-Z0-9]+$
Example:

"bacc_H4jp6KnU5cPw263v1jyz4"

Response

Account retrieved successfully

An account represents a sub-organization within a customer for separate balance tracking and payment management.

id
string
required

Unique identifier for an account

Pattern: ^bacc_[a-zA-Z0-9]+$
Example:

"bacc_H4jp6KnU5cPw263v1jyz4"

external_reference
string
required

External reference for reconciliation or tracking purposes. Must be unique within your merchant account.

Maximum string length: 255
Pattern: ^[a-zA-Z0-9_-]+$
Example:

"INV-2024-001"

customer_id
string
required

Unique identifier for a customer

Pattern: ^bcus_[a-zA-Z0-9]+$
Example:

"bcus_H4jp6KnU5cPw263v1jyz4"

name
string

Name for the account

Maximum string length: 255
Example:

"Subscription Account"

currency
string

The ISO 4217 currency code for the payment.

Example:

"ZAR"

balance
integer

Current balance of the entity. If balance is negative, the entity has credit; if positive, the entity owes this amount. If not specified, no balance tracking.

The value is in the smallest currency unit (e.g., cents for ZAR).

Note: If balance is specified, the currency field must also be provided.

Example:

2000

payment_rules
object

Payment rules associated with the entity. If not specified, the entity cannot be paid against.

metadata
object

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. NEW Limitations:

  • Maximum 20 keys
  • Key names must be strings (max 40 characters)
  • Values must be strings (max 500 characters)
Example:
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}