---
updatedAt: 2025-06-04T21:36:30.000Z
agentTools:
  projectIndex: https://documentation.paysimple.com/llms.txt
---

# New Recurring Payment

Collect payments on scheduled dates for the specified `AccountId`.

## Receipt Options

Receipt options allow setting payment receipt email settings. By default, no messages will be sent.

```json
...
"SuccessReceiptOptions": {
	"SendToCustomer": true,
  "SendToOtherAddresses": [ "joe@paysimple.com","bob@paysimple.com"]
}
...
```

**`SuccessReceiptOptions`**\
`SendToCustomer`  boolean.\
If `true`, send receipt to email of Customer when payment request succeeds.

`SendToOtherAddresses`\
Array of email addresses to send receipt to when payment request succeeds.

```json
...
"FailureReceiptOptions": {
	"SendToCustomer": true,
  "SendToOtherAddresses": [ "joe@paysimple.com","bob@paysimple.com"]
}
```

**`FailureReceiptOptions`**\
`SendToCustomer`  boolean.\
If `true`, send receipt to email of Customer when payment request fails.

`SendToOtherAddresses`\
Array of email addresses to send receipt to when payment request fails.

## Payment Schedule Response

All fields in the request are returned in the response, with the addition of the following properties:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        Id
      </td>

      <td>
        int32
      </td>

      <td>
        Uniquely identifies schedule in all API requests and responses (elsewhere `ScheduleId`)
      </td>
    </tr>

    <tr>
      <td>
        ScheduleStatus
      </td>

      <td>
        string
      </td>

      <td>
        The current state of the schedule.  Values: `Active`, `Expired`, `Suspended`.
      </td>
    </tr>

    <tr>
      <td>
        NextScheduleDate
      </td>

      <td>
        date
      </td>

      <td>
        The next date on which the schedule will generate a payment, based on the schedule frequency. Date format YYYY-MM-DD.
      </td>
    </tr>
  </tbody>
</Table>

> 📘 If you configured the schedule to start on the current day the `StartDate` will be the current date and the `NextScheduleDate` will be a future date. If the schedule was configured to start on a future date, `StartDate` and `NextSchduleDate` will be the same future date

## One time future payments

To create a schedule that will make only one payment on a given date in the future, follow the following steps:

1. Set the `ExecutionFrequencyType` to `Annually`
2. Set the `StartDate` to the day you wish to make the payment
3. Set the `EndDate` to the day *after* the `StartDate`.

> 🚧 PaySimple receipt and failed payment notifications will not be sent to the customer when a recurring payment is generated via the API.  If you require these notifications, it is recommended you build your own payment scheduler process.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "paysimple-api-40-do-not-delete",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.paysimple.com/v4"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/recurringpayment": {
      "post": {
        "summary": "New Recurring Payment",
        "description": "Collect payments on scheduled dates for the specified `AccountId`.",
        "operationId": "recurringpayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "AccountId",
                  "PaymentAmount",
                  "StartDate",
                  "ExecutionFrequencyType"
                ],
                "properties": {
                  "AccountId": {
                    "type": "integer",
                    "description": "The system identifier for the credit card Account or ACH account used for the payment. This is the Id attribute from the credit card object or ACH account object created previously.",
                    "format": "int32"
                  },
                  "PaymentAmount": {
                    "type": "number",
                    "description": "Amount of the payment to be charged on specified schedule.",
                    "format": "double"
                  },
                  "StartDate": {
                    "type": "string",
                    "description": "Date to start the schedule. Must not be in the past.  If the schedule is not scheduled to run on this date, will bill on the first scheduled day.",
                    "format": "date"
                  },
                  "ExecutionFrequencyType": {
                    "type": "string",
                    "description": "Frequency to run the schedule. Valid values: `Daily`, `Weekly`, `BiWeekly`, `FirstofMonth`, `SpecificDayofMonth`, `LastofMonth`, `Quarterly`, `SemiAnnually`, `Annually`"
                  },
                  "ExecutionFrequencyParameter": {
                    "type": "integer",
                    "description": "Required if `ExecutionFrequencyType` is `Weekly` or `SpecificDayofMonth`.  If `Weekly` specifies day of week (1=Sunday; 2=Monday; 3=Tuesday; 4=Wednesday; 5=Thursday).  If `SpecificDayofMonth`, refers to day of month.  If day of the month does not exist for a given month (e.g. 30 in February), the schedule will fire on the last day of the month.  However, `LastofMonth` is suggested for this use case to avoid confusion.",
                    "format": "int32"
                  },
                  "EndDate": {
                    "type": "string",
                    "description": "The date the schedule is to stop generating payments. If not included, the schedule will default to running until manually disabled.",
                    "format": "date"
                  },
                  "PaymentSubType": {
                    "type": "string",
                    "description": "This field defaults to `Moto` for credit card payments and Web for ACH payments if not included or left null. CC Valid Values: `Moto`. ACH Valid Values: `Web`, `Tel`, `Ppd`, `Ccd`."
                  },
                  "InvoiceNumber": {
                    "type": "string",
                    "description": "The invoice number attached to the payment. If the number provided is a invoice number of an existing PaySimple invoice, the associated `InvoiceId` will be attached to the payment and the payment will be applied to the invoice.  Max 50 characters. NOTE: Invoice creation and management is not currently available via the API."
                  },
                  "FirstPaymentAmount": {
                    "type": "number",
                    "description": "Custom payment amount that is executed prior to the start of the schedule. Enter a number only, do not include the $. You can enter an integer or a decimal. If you use more than 2 decimal places, the system will round to the nearest penny-- i.e. entering 23.129 will result in a FirstPaymentAmount of 23.13.",
                    "format": "double"
                  },
                  "FirstPaymentDate": {
                    "type": "string",
                    "description": "The date the custom first payment is to be processed. This can be the current date, or any future date, but must be prior to the schedule StartDate. If a future date is used, it can be edited prior to the custom first payment being generated. After the custom first payment is actually generated the field becomes read-only. Date format: YYYY-MM-DD.",
                    "format": "date"
                  },
                  "Description": {
                    "type": "string",
                    "description": "2048 characters max."
                  },
                  "SuccessReceiptOptions": {
                    "type": "object",
                    "description": "Optional.  See Receipt Options below.",
                    "properties": {}
                  },
                  "FailureReceiptOptions": {
                    "type": "object",
                    "description": "Optional.  See Receipt Options below.",
                    "properties": {}
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "PaymentAmount": 12,
                    "AccountId": 7592056,
                    "StartDate": "2018-08-01",
                    "ExecutionFrequencyType": "FirstofMonth"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n        \"CustomerId\": 8317963,\n        \"CustomerFirstName\": \"John\",\n        \"CustomerLastName\": \"Doe\",\n        \"CustomerCompany\": \"Great Plumbing\",\n        \"NextScheduleDate\": \"2018-08-01T06:00:00Z\",\n        \"PauseUntilDate\": null,\n        \"FirstPaymentDone\": false,\n        \"DateOfLastPaymentMade\": null,\n        \"TotalAmountPaid\": 0,\n        \"NumberOfPaymentsMade\": 0,\n        \"EndDate\": null,\n        \"PaymentAmount\": 12,\n        \"PaymentSubType\": \"Moto\",\n        \"AccountId\": 7592056,\n        \"InvoiceNumber\": null,\n        \"OrderId\": null,\n        \"FirstPaymentAmount\": 0,\n        \"FirstPaymentDate\": null,\n        \"StartDate\": \"2018-07-03T21:57:27.782Z\",\n        \"ScheduleStatus\": \"Active\",\n        \"ExecutionFrequencyType\": \"FirstofMonth\",\n        \"ExecutionFrequencyParameter\": 1,\n        \"Description\": null,\n        \"Id\": 1459382,\n        \"LastModified\": \"2018-06-26T21:57:27.9153135Z\",\n        \"CreatedOn\": \"2018-06-26T21:57:27.9153135Z\"\n    }"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "CustomerId": {
                      "type": "integer",
                      "example": 8317963,
                      "default": 0
                    },
                    "CustomerFirstName": {
                      "type": "string",
                      "example": "John"
                    },
                    "CustomerLastName": {
                      "type": "string",
                      "example": "Doe"
                    },
                    "CustomerCompany": {
                      "type": "string",
                      "example": "Great Plumbing"
                    },
                    "NextScheduleDate": {
                      "type": "string",
                      "example": "2018-08-01T06:00:00Z"
                    },
                    "PauseUntilDate": {},
                    "FirstPaymentDone": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "DateOfLastPaymentMade": {},
                    "TotalAmountPaid": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "NumberOfPaymentsMade": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "EndDate": {},
                    "PaymentAmount": {
                      "type": "integer",
                      "example": 12,
                      "default": 0
                    },
                    "PaymentSubType": {
                      "type": "string",
                      "example": "Moto"
                    },
                    "AccountId": {
                      "type": "integer",
                      "example": 7592056,
                      "default": 0
                    },
                    "InvoiceNumber": {},
                    "OrderId": {},
                    "FirstPaymentAmount": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "FirstPaymentDate": {},
                    "StartDate": {
                      "type": "string",
                      "example": "2018-07-03T21:57:27.782Z"
                    },
                    "ScheduleStatus": {
                      "type": "string",
                      "example": "Active"
                    },
                    "ExecutionFrequencyType": {
                      "type": "string",
                      "example": "FirstofMonth"
                    },
                    "ExecutionFrequencyParameter": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "Description": {},
                    "Id": {
                      "type": "integer",
                      "example": 1459382,
                      "default": 0
                    },
                    "LastModified": {
                      "type": "string",
                      "example": "2018-06-26T21:57:27.9153135Z"
                    },
                    "CreatedOn": {
                      "type": "string",
                      "example": "2018-06-26T21:57:27.9153135Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"Meta\": {\n        \"Errors\": {\n            \"ErrorCode\": \"InvalidInput\",\n            \"ErrorMessages\": [\n                {\n                    \"Field\": \"\",\n                    \"Message\": \"Start date can't be in the past.\"\n                }\n            ]\n        },\n        \"HttpStatus\": \"BadRequest\",\n        \"HttpStatusCode\": 400,\n        \"PagingDetails\": null\n    },\n    \"Response\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Meta": {
                      "type": "object",
                      "properties": {
                        "Errors": {
                          "type": "object",
                          "properties": {
                            "ErrorCode": {
                              "type": "string",
                              "example": "InvalidInput"
                            },
                            "ErrorMessages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "Field": {
                                    "type": "string",
                                    "example": ""
                                  },
                                  "Message": {
                                    "type": "string",
                                    "example": "Start date can't be in the past."
                                  }
                                }
                              }
                            }
                          }
                        },
                        "HttpStatus": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "HttpStatusCode": {
                          "type": "integer",
                          "example": 400,
                          "default": 0
                        },
                        "PagingDetails": {}
                      }
                    },
                    "Response": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```