Adhoc - Amend subscriber details

PATCH https://gate.reviopay.com/api/v1/billing_templates/{{billing_template_id}}/clients/{{billing_template_client_id}}/

The add_subscriber to connect your client to a bililng_template.

This request will generate a check_out_url through which your client can make payment when redirected to it to tokenise their preferred recurring payment method.

You can also use the Direct charge method to complete the tokenisation.

Once completed, the billing_template engine will raise the client invoices/charges on the relevant deduction date.

The full set of fields you can patch include:

'subscription_tracking_period',
'subscription_value_type',
'subscription_allow_date_adjustment',
'subscription_authentication_type',
'subscription_realtime_auth_retries',
'subscription_do_delayed_on_auth_failure',
'subscription_verify_account',
'subscription_reference_number',
'subscription_max_amount_cents',

'subscription_creditor_profile_code',
'subscription_creditor_abbreviated_name',
'subscription_creditor_account_number',
'subscription_debtor_account_number',
'subscription_debtor_account_type',
'subscription_debtor_branch_code',
'subscription_debtor_first_name',
'subscription_debtor_last_name',
'subscription_debtor_id_number',
'subscription_debtor_phone_number',
'subscription_adjustment_category',
'subscription_adjustment_rate',
'subscription_adjustment_amount',
'subscription_release_date',

+ fields from the API docs - status, payment_method_whitelist, send_invoice_on_charge_failure

Request Body

{"invoice_override"=>{"debt"=>0, "subtotal_override"=>777, "total_tax_override"=>nil, "total_discount_override"=>"15.00", "total_override"=>777, "products"=>[{"name"=>"My client subscription is updated", "price"=>777, "quantity"=>"1.0000", "discount"=>0, "tax_percent"=>"15.00", "category"=>"62"}, {"name"=>"My client subscription is updated 2", "price"=>777, "quantity"=>"1.0000", "discount"=>0, "tax_percent"=>"15.00", "category"=>"63"}]}}