post
https://api-{corename}.{env}.gpsrv.com/intserv/4.0/setAutoPayPlan
Use the Set AutoPay Plan endpoint to configure or update autopay for a credit account. When enabling autopay, both accountNo and fromAccountNo are validated to confirm they exist and are active before enrollment. accountNo must be the primary credit account (authorized users / secondaries are rejected). accountNo and fromAccountNo must refer to different accounts.
Status codes
See Global Response Statuses for status codes that are common across endpoints.
The table below lists status codes that apply to this specific endpoint.
| Status code | Description |
|---|---|
| 639-01 | Account not enrolled in autopay. Cannot disable autopay. Account has no active autopay enrollment. |
| 639-02 | Cannot update autopay while execution is in progress. A payment execution is currently in flight for this account. |
| 639-03 | Cannot update autopay while a retry is pending. A failed payment is awaiting retry for this account. |
| 639-04 | Account not found. The PRN is not found for the given account number. |
| 639-05 | Account is not active. The PRN is not active and cannot be enrolled in autopay. |
| 639-06 | Autopay is only allowed on the primary credit account. Autopay can only be enrolled on the primary credit account; authorized users and secondary accounts are not supported. |

