Scheduled Payments

Create Scheduled Payment

Create a new scheduled transaction to be processed on a particular time depending on the frequency.

post/scheduled-payment

Request

  • Base URL
    https://earthnode-dev.vopay.com/api/v2
  • URL
    https://earthnode-dev.vopay.com/api/v2/scheduled-payment
  • Auth
    none declared

Request body application/x-www-form-urlencoded

AccountIDstring required

Your account ID

Keystring required

API key for the account

Signaturestring required

Hashed signature for the request

Amountnumber required

The transaction amount

Currencystring required

The currency code (e.g., USD, CAD)

PaymentTypestring required

The type of payment (e.g., debit, credit)

PaymentRailstring required

The payment rail to use for the transaction

StartDateTimestring date-time required

The start date and time for the scheduled payment

Tokenstring required

The payment token for the transaction

Repeats'daily' | 'weekly' | 'bi-weekly' | 'monthly' | 'semi-monthly' | 'quarterly' | 'semi-annually' | 'annually' | 'weekdays'

The recurrence frequency. Omit for a one-time payment. Accepted values: daily, weekly, bi-weekly, monthly, semi-monthly (15th and last day of month), quarterly, semi-annually, annually, weekdays (Mon–Fri).

Intervalinteger

How many units to advance per period. For example, Repeats=weekly with Interval=2 fires every other week. Must be a whole number from 1 to 365. Only applies to daily, weekly, monthly, and annually — for bi-weekly, semi-monthly, quarterly, semi-annually, and weekdays the interval is fixed and this value is ignored. Interval never affects the first payment date. Defaults to 1 when omitted.

ByDaystring

Pins payments to specific weekdays. Only applies to Repeats weekly or monthly. For weekly, provide one weekday abbreviation or a comma-separated list of them — MO, TU, WE, TH, FR, SA, SU (e.g. FR, or MO,WE,FR); each weekday may appear at most once. For monthly, provide exactly one value with a mandatory ordinal prefix, 1–4 or -1 for last (e.g. 1MO, 3FR, -1FR); comma-separated lists are not accepted for monthly. Input is case-insensitive; for weekly, whitespace around each entry is ignored, but a monthly value must have no surrounding whitespace. The stored and echoed value is canonicalized — uppercased and, for weekly, re-ordered into calendar order starting Monday — so ByDay=FR,MO is returned as MO,FR. A weekday repeated within one value is rejected rather than de-duplicated. Weeks run Monday to Sunday: the first payment is the earliest selected weekday on or after StartDateTime, so a schedule starting on a Thursday with ByDay=MO,WE,FR fires only on the Friday of its first week.

NumberOfPaymentsinteger

The number of payments to process. Required if Repeats is specified and EndDate is omitted. When both NumberOfPayments and EndDate are provided, NumberOfPayments takes precedence and the end date is derived from it.

EndDatestring date

The last date of the schedule in YYYY-MM-DD format (inclusive: a payment landing on this date still runs). Alternative to NumberOfPayments for recurring schedules — the number of payments is derived from StartDateTime, Repeats and EndDate. Ignored for one-time payments and when NumberOfPayments is provided.

ClientReferenceNumberstring

Client reference number for the transaction

Notesstring

Additional notes for the scheduled payment

GLCodestring

General ledger code for accounting purposes

ClientAccountIDstring

The client account ID for the transaction

Response

Scheduled payment created successfully

Successboolean required

Indicates whether the request was successful

ErrorMessagestring required

Error message if the request failed

Amountnumber required

The transaction amount

ScheduledPaymentsIDinteger required

The ID of the created scheduled payment

Repeatsstring required

The recurrence frequency

Intervalinteger required

The interval in effect (1 if not specified). Only meaningful for daily, weekly, monthly, and annually; ignored for the fixed frequencies.

ByDaystring required

The weekday pin in effect, in canonical form — uppercased and, for weekly, re-ordered into calendar order starting Monday (so a request of FR,MO is echoed as MO,FR). Empty string if not specified.

Notesstring required

Notes for the scheduled payment

ClientReferenceNumberstring required

Client reference number

GLCodestring required

General ledger code

StartDateTimestring date-time required

The start date and time

EndDatestring date required

The date of the final payment in YYYY-MM-DD format. Always set: derived from NumberOfPayments when EndDate was not provided, and equal to the payment date for one-time payments.

NumberOfPaymentsstring required

The total number of payments in the schedule. Always set: derived from EndDate when NumberOfPayments was not provided, and 1 for one-time payments.

Example response

{
  "Success": true,
  "ByDay": "MO,FR"
}

Changes

No recorded changes to this operation across all 1 revision of this API.