v1

latestOpenAPI 3.1.02026-07-2414085.2 KB

Update a payment plan

A Payment Plan's status can only be updated to Cancelled, Suspended or Active. For a suspended plan it is possible to set a date the plan is suspended until.

When a plan is suspended, any pending payments will be removed. If the plan is resumed, the pending payments will be re-created to meet the plan's constraints.

Note: Payment plan must be active for any other attributes to be updated.

put/payment_plans/{id_or_reference}

Path parameters

id_or_referencestring required

ID or merchant's reference of the payment plan to update.

Request body

card_tokenstring

The card token to link this payment plan to

new_statusstring

Status to update to. Valid values are "Suspended", "Active", "Cancelled",

reasonstring

Reason for updating payment plan status

until_datestring date

Optionally used when suspending or activating a plan. This date will be saved on the payment plan for record-keeping purposes. The plan will need to be manually actioned on this date.

amountinteger

Recurring payment amount in the smallest unit of the currency.

setup_feeinteger

Setup fee to be charged upon creation of the payment plan.

frequencystring

Frequency of the payments. Acceptable values are: Daily, Weekly, Fortnightly, Monthly, 4 Weekly, Quarterly, Half Yearly, Annually.

payment_methodstring

Payment method for the plan - this can be Credit Card or Direct Debit. Note that if the customer is not setup with the defined payment method an error will be returned.

anniversarystring

Anniversary of the recurring payments. For Weekly and Fortnightly payments this will be the day of the week (1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday) For Monthly this will be the day of the month. If the day of the month is greater then 28, and the month is shorter then the anniversary this date will be moved forward to the nearest possible date (i.e. a payment for the 31st will fall on the 30th for monthly like September etc).

start_datestring date

Date that the payment plan should start. This must be in the future.

end_datestring date

Date that the payment plan should end on. This must be in the future and greater than the start_date.

referencestring

Reference for the payment plan.

descriptionstring

Description for the payment plan (e.g. Model 200R Blender Lay-by).

currencystring

ISO 4217 currency code for the plan.

total_countinteger

Total number of payments to process for this plan.

total_amountinteger

Total amount of all payments to be processed for this plan.

failed_payment_feeinteger

Fee that applies to the retried payment in the event of any declined payment. Note: This amount will compound for the total number of retries (3) performed.

retry_intervalinteger

Number of days between payment retries for any declined payments.

Response

200

OR

Example response

{
  "successful": true,
  "response": {
    "id": "071-PP-8389G3DA",
    "customer": "071-C-JE34F66V",
    "amount": 100,
    "frequency": "Weekly",
    "anniversary": 5,
    "start_date": "2025-07-16",
    "total_count": 2,
    "payment_method": "Credit Card",
    "reference": "071-PP-8389G3DA",
    "status": "Suspended",
    "status_reason": "Other",
    "created_at": "2018-07-11T16:23:39+10:00",
    "retry_interval": 3,
    "card_token": "ABC12345"
  },
  "test": true
}