Update
This endpoint allows you to update an existing recurring payment.
POST
https://restapidev.payplus.co.il/api/v1.0/RecurringPayments/Update/{uid}סביבה
כותרות (Headers)
stringחובה
API Key
stringחובה
Secret Key
פרמטרים בנתיב
stringחובה
Recurring Payment unique identifier
גוף הבקשה
| שדה | סוג | תיאור |
|---|---|---|
items | object[] | List of products or services included in the recurring payment. |
items[].price | number (int) | Sell price. |
items[].quantity | number (int) | Product quantity. |
items[].product_uid | string | Product unique identifier. |
items[].discount_type | string | Set the product discount type. |
items[].discount_value | number (int) | Required if discount type have value |
items[].product_invoice_extra_details | string | Additional details for the product on the invoice. |
end_date | string | When the recurring will stop, in case the recurring is unlimited. |
card_tokenחובה | string | Saved card unique identifier. |
extra_info | string | Additional information about the recurring payment. |
start_dateחובה | string | Can't be the same date as today. This is the date when the first charge will be processed. If you want to charge immediately, set instant_first_payment to true and start_date to the next charge due date. |
cashier_uidחובה | string | Cashier unique identifier |
customer_uidחובה | string | Customer unique identifier |
terminal_uidחובה | string | Terminal unique identifier |
currency_codeחובה | string | |
one_time_items | object[] | List of products or services for one-time charges. |
one_time_items[].price | number (int) | Sell price. |
one_time_items[].quantity | number (int) | Product quantity. |
one_time_items[].product_uid | string | Product unique identifier. |
one_time_items[].discount_type | string | Set the product discount type. |
one_time_items[].discount_value | number (int) | Required if discount type have value |
one_time_items[].product_invoice_extra_details | string | Additional details for the product on the invoice. |
recurring_typeחובה | integer (int) | 0 - Daily 1 - Weekly 2 - Monthly |
recurring_rangeחובה | integer (int) | Determines the charges frequency. For example, if recurring_type is set to Monthly and recurring_range is set to 2, the charges will be processed every 2 months. |
bank_account_uid | string | Customer bank account uid. This field is required in case this is bank masav order. |
number_of_chargesחובה | integer (int) | If set to 0, the recurring payment will be unlimited. If set to a positive integer, the recurring payment will stop after that many charges. |
successful_invoice | boolean | Triggers and invoice creation if the charge is successful. |
customer_failure_sms | boolean | Send SMS to customer if the charge fails. This requires an SMS package to be purchased. |
one_time_charge_date | string | Sets when the one time charge will be processed. This is only required if you have one_time_items. |
instant_first_paymentחובה | boolean | Process the initial payment immediately on-site |
customer_failure_email | boolean | Send e-mail to the customer for failure payment and inform him to contact the business to update payment details. |
company_bank_account_uid | string | This field is required in case this is bank masav order. |
send_customer_success_sms | boolean | Send SMS to customer if the charge is successful. This requires an SMS package to be purchased. |
send_customer_success_email | boolean | Send e-mail to customer if the charge is successful. |