Update a recurring payment schedule.
const url = 'https://api.ridleypay.com/v1/recurring-payments/WOO-SUB-456';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount":39.99,"frequency":"daily","interval_count":1,"next_billing_date":"2026-05-01","end_date":"2027-04-06","customer_email":"new@example.com","customer_name":"Jane Smith","metadata":{"plan":"premium"},"apply_tax":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.ridleypay.com/v1/recurring-payments/WOO-SUB-456 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 39.99, "frequency": "daily", "interval_count": 1, "next_billing_date": "2026-05-01", "end_date": "2027-04-06", "customer_email": "new@example.com", "customer_name": "Jane Smith", "metadata": { "plan": "premium" }, "apply_tax": true }'Updates the amount, frequency, billing dates, or customer info of a recurring payment.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The recurring payment reference.
Example
WOO-SUB-456Request Body
Section titled “Request Body”object
Updated charge amount. Must be at least 0.01.
Example
39.99Updated billing frequency: daily, weekly, monthly, or yearly.
Example
monthlyUpdated interval between charges. Must be at least 1. Must not be greater than 365.
Example
1Override the next billing date. Must be a valid date. Must be a date after or equal to today.
Example
2026-05-01Updated end date. Null to remove. Must be a valid date. Must be a date after today.
Example
2027-04-06Updated customer email. Must be a valid email address. Must not be greater than 255 characters.
Example
new@example.comUpdated customer name. Must not be greater than 255 characters.
Example
Jane SmithUpdated metadata. Replaces existing metadata entirely.
object
Example
{ "plan": "premium"}Apply your team tax settings to future charges.
Example
trueResponses
Section titled “ Responses ”Updated
object
object
object
object
object
Example
{ "data": { "id": "1", "type": "recurring-payments", "attributes": { "reference": "WOO-SUB-456", "amount": "39.99", "frequency": "monthly", "status": "active", "next_billing_date": "2026-05-01" }, "links": { "self": "https://pay.example.com/api/v1/recurring-payments/WOO-SUB-456" } }, "meta": { "message": "Recurring payment updated." }}Not found
object
object
Example
{ "errors": [ { "status": "404", "title": "Not Found", "detail": "Recurring payment not found." } ]}Cannot update
object
object
Example
{ "errors": [ { "status": "422", "title": "Unprocessable Entity", "detail": "Cannot update a cancelled or completed recurring payment." } ]}