Skip to main content

Create Recurring Customer

Creates a recurring payment customer. The customer binds their card on the RM-hosted page, after which RM automatically charges them on your defined schedule (weekly or monthly).

When to Use

Use this endpoint when:

  • Building a subscription with automated recurring billing
  • You want RM to handle the schedule (no need to call charge yourself)

How to Use

Endpoint
POST/v3/recurring-payment

Step 1: Define the Schedule

Choose recurringInterval (WEEKLY / MONTHLY), recurringTarget (day), and recurringRepetition (total charges).

Step 2: Create the Customer

POST customer + product + schedule. RM returns a paymentUrl for card binding.

Step 3: Send the Customer to Bind

Redirect to paymentUrl. After binding, RM auto-charges on the configured schedule.


Request Parameters

storeIdSTRINGrequired

Revenue Monster Store ID

emailSTRINGrequired

Customer email address

nameSTRINGrequired

Customer name

countryCodeSTRINGrequired

Customer country code

Example: "60"

phoneNumberSTRINGrequired

Customer phone number

productNameSTRINGrequired

Recurring product name

productDescriptionSTRINGrequired

Recurring product description

currencySTRINGrequired

Recurring payment currency

Example: "MYR"

amountINTEGERrequired

Recurring payment amount in smallest currency unit

redirectUrlSTRINGrequired

URL to redirect the customer to after card binding

notifyUrlSTRINGrequired

Server URL to receive payment notifications

recurringIntervalSTRINGrequired

Recurring interval (WEEKLY, MONTHLY)

recurringTargetSTRINGrequired

Day of the week or month to charge. See recurring target rules below.

recurringRepetitionINTEGERrequired

Number of times to charge the customer

Recurring Target Rules

IntervalTargetPayment Behaviour
WEEKLY0Every Sunday
WEEKLY1Every Monday
WEEKLY2Every Tuesday
WEEKLY3Every Wednesday
WEEKLY4Every Thursday
WEEKLY5Every Friday
WEEKLY6Every Saturday
MONTHLY-1End of every month
MONTHLY0Start of every month
MONTHLY1–28Day of the month

Response Parameters

itemOBJECT

Response item

idSTRING

Recurring payment ID

merchantIdSTRING

Merchant ID

storeIdSTRING

Store ID

labelSTRING

Customer card: front six and last four digits

emailSTRING

Customer email

countryCodeSTRING

Customer country code

phoneNumberSTRING

Customer phone number

productNameSTRING

Recurring product name

productDescriptionSTRING

Recurring product description

isActiveBOOLEAN

Whether the recurring payment is active. Becomes true after card is bound successfully.

createdAtSTRING

Recurring created date time

updatedAtSTRING

Recurring last updated date time

clientKeySTRING

Internal usage only

redirectUrlSTRING

URL for customer to redirect after card binding

notifyUrlSTRING

URL for payment notifications

paymentUrlSTRING

URL for customer to bind their card

recurringPaymentOBJECT

recurringPayment details

amountINTEGER

Recurring payment amount

currencySTRING

Recurring payment currency

recurringIntervalSTRING

Recurring interval

recurringTargetSTRING

Recurring target rules

recurringRepetitionINTEGER

Number of repetitions

codeSTRING

"SUCCESS" if the request succeeded, otherwise an error code.

errorOBJECT

Error details

codeSTRING

Error code if the request failed.

messageSTRING

Error message if the request failed.

debugSTRING

Debug message (sandbox only).