Skip to main content

Developer Documentation

Step 1/3: Checkout charge session

Create a charge session with the recurring flag set to true. The recurring flag indicates that in addition to making a payment the payment method should also be returned and stored for the customer.

curl -X POST \
  --url https://checkout-api.reepay.com/v1/session/charge \
  -u 'priv_11118ec111dc1a7faaa192cef2226917e:' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "recurring":true,
  "order": {
    "handle": "order-id-221",
    "currency": "DKK",
    "customer": {
        "handle":"c-1",
        "email": "mail@example.com",
        "phone": "+2313123123",
        "first_name": "John",
        "last_name": "Doe"
    },
    "currency": "USD,
    "amount": 20000
  }
}'

The customer will be created, if the customer does not already exist. A reference to an existing customer can also be provided in the parameter customer_handle instead. For details on creating a charge session see: Bilwerk+ Checkout.