Creating agreement

You, the merchant, have a bill to be paid. The customer is prompted with a sign-up for automatic payment and with an option to:

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.

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

 

What’s Next