Create recurrent billing
POST https://api.ecartapi.com/api/v2/billing/recurrent
Request Body
{"billing"=>{"name"=>"Super Duper Plan2", "price"=>"10.0", "redirectUrl"=>"https://webhook.site/215a94a0-da24-4350-9930-3f5ebeb72de4/", "trialDays"=>"5", "cappedAmount"=>"100", "terms"=>"$1 for 1000 emails", "test"=>"true"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"billing":{"id":"13681164362","name":"Super Duper Plan2","charge":{"type":null},"price":"10.00","redirectUrl":"https://webhook.site/215a94a0-da24-4350-9930-3f5ebeb72de4/","test":"true","confimartionUrl":"https://ecart-test.myshopify.com/admin/charges/13681164362/confirm_recurring_application_charge?signature=BAh7BzoHaWRsKwhKAHYvAwA6EmF1dG9fYWN0aXZhdGVG--dae47b0d135f824fa3c436d703ca75c1f3c2c6df","status":{"status":"pending"},"dates":{"createdAt":"2020-11-20T15:06:15-05:00","updatedAt":"2020-11-20T15:06:15-05:00","billingOn":null,"activatedOn":null,"trialEnd":null},"balance":{"spent":null,"remaining":"100"},"trialDays":"5"}}