UseDocumentation Index
Fetch the complete documentation index at: https://apidocs.synchpay.dev/llms.txt
Use this file to discover all available pages before exploring further.
POST /Payment/Recurring to create a recurring payment plan for one of your companies.
Endpoint
- URL:
https://api.synchpay.com/Payment/Recurring - Method:
POST - Authorization:
Bearer <AccessToken>
Request Body
| Parameter | Type | Description | Required |
|---|---|---|---|
Amount | integer | Amount to charge on each recurrence, in cents. | Yes |
StartDate | string | First recurrence date in YYYY-MM-DD format. | Yes |
IntervalValue | integer | Number of units between recurring payments. | Yes |
IntervalUnit | string | Recurrence unit: Day, Week, Month, Quarter, or Year. | Yes |
PhoneNumber | string | Payer phone number. Use when RegistrationUserId is not provided. | No |
RegistrationUserId | string | SynchPay registered user ID. Use when PhoneNumber is not provided. | No |
CompanyId | string | SynchPay company ID. | No |
CompanyReferenceId | string | Your external company reference ID. | No |
Provide either
PhoneNumber or RegistrationUserId so SynchPay can identify the payer. Use either CompanyId or CompanyReferenceId when the plan should be scoped to a specific company.Example Request
Response
| Field | Type | Description |
|---|---|---|
PaymentPlanId | string | Unique ID of the recurring payment plan. |
Frequency Examples
| IntervalValue | IntervalUnit | Resulting schedule |
|---|---|---|
1 | Month | Every month |
2 | Week | Every two weeks |
1 | Quarter | Every quarter |
7 | Day | Every seven days |