Rebilling Payment
You can rebill an existing card via the token system.
- Using the Headless integration you must create a PaymentRequest with the
tokenize_payment
field as true - When the payment has successfully been processed you will get a
token
on thecard_payment_completed
postback supplied. - Using the token provided on the previous webhook you can recharge the card.
Creating A New Payment from a Token
https://api.vendreo.com/v1/card/token/{token}
/rebill (Full example: docs)
curl --location --request POST 'https://api.vendreo.com/v1/card/token/{token}/rebill' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {AUTH_TOKEN}' \
--data-raw '{
"application_key": "{APPLICATION_KEY}",
"amount": "120",
"country_code": "GB",
"currency": "GBP",
"description" : "Product Description",
"options": "optional string",
"reference_id": 12312312,
}'