Security
oauth2(Required scopes: autopay:update) or bearerAuth or apiKeyHeader
The document ID for the signed autopay agreement. Required unless the payment instrument is external.
The payment instrument ID with which this autopay plan will be charged through.
PUT
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X PUT \
'https://sandboxapi.peach.finance/api/people/{personId}/loans/{loanId}/autopay' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"agreementDocumentId": "string",
"caseId": "string",
"paymentInstrumentId": "string",
"sendNotice": true
}'Success
Response
{ "message": "string", "status": 0, "data": { "isLocked": true, "agreementDocumentId": "string", "cancelReason": "invalidPaymentMethod", "createdAt": "2019-08-24T14:15:22Z", "id": "string", "paymentFrequency": "weekly", "paymentInstrumentId": "string", "schedule": [ … ], "specificDays": [ … ], "deltaTerms": { … } } }