Creating agreement
You the merchant has a bill to be paid. The customer is prompted with a sign-up for automatic payment and with an option to:
use an existing payment method,
create a new one using our Billwerk+ Checkout,
use Billwerk+ Token Solution.
A subscription is then created using the source argument where the value is either a stored customer payment method or a short-term card token.
Shell :
curl -X POST \ -u 'priv_12051dfac75143fc827cf63a87f46df3:' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "handle": "cust-4234-refill-13", "plan": "refill", "customer": "cust-4234", "source": "ca_e4926c46be444fcbbc809be06abfd706" }' \ https://api.reepay.com/v1/subscription