post
https://api.zafepay.com/api/v1/integration/payment_plans//send_charge_email
Emails the buyer the payment link for every pending or expired installment due on or before today, combined into one payment.
If no installment is due yet and the buyer has no active card, the buyer gets a reminder to add a payment
method instead.
The checks run in this order and stop at the first one that fails:
| # | Check | HTTP | Message |
|---|---|---|---|
| 1 | The payment plan exists | 404 | Record not found. |
| 2 | The payment plan belongs to your company | 401 | Invalid credentials. |
| 3 | The plan is not canceled, finished or inactive | 400 | Cannot send a charge email in the current status. |
| 4 | The plan does not have an active card with no overdue installments (in that case Zafepay charges the card automatically) | 400 | It has an active card and no overdue installments, so it will be charged automatically. |
| 5 | There is an installment left to charge | 400 | There is no installment left to charge. |
| 6 | Your company has not turned off this email | 400 | Charge emails are disabled for this company. |
| 7 | No charge email or reminder was sent for this plan in the last 30 minutes | 429 | A charge email was already sent in the last 30 minutes. |
Each successful call adds a note to the payment plan, which you can see in the dashboard.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…