Vatly
Api Reference

Test helpers

Simulate renewals and payment failures in test mode so you can verify recurring billing flows end to end.

Test helper endpoints

Vatly provides a small set of test helper endpoints for recurring billing scenarios. These endpoints are only available in test mode.

Use a test_ API token for every endpoint on this page. Test helper endpoints are not available with live credentials.

Fast-forward subscription renewal

POST /v1/test-helpers/subscriptions/{subscriptionId}/fast-forward-renewal

Simulate a renewal cycle for an existing subscription.

Useful for:

  • testing renewal billing flows without waiting for the real billing interval
  • verifying subscription lifecycle events and webhook delivery
  • validating dunning or invoice follow-up automation in your sandbox flow
curl -X POST https://api.vatly.com/v1/test-helpers/subscriptions/sub_abc123def456/fast-forward-renewal \
  -H "Authorization: Bearer test_your_api_key_here"

Errors

StatusMeaning
401Missing or invalid API key
403Endpoint not available for this token or resource
404Subscription not found

Simulate a payment failure

POST /v1/test-helpers/mandated-payments/{transactionId}/simulate-failure

Force a mandated payment into a failed state for testing.

Useful for:

  • testing payment failure handling and retry logic
  • verifying dunning behavior
  • validating webhook notifications for failed renewal attempts

Request body

NameTypeDescription
reasonstringOptional failure reason. One of insufficient_funds, invalid_mandate, mandate_canceled, account_closed, card_expired, authentication_failed, or general_failure. Defaults to general_failure.
curl -X POST https://api.vatly.com/v1/test-helpers/mandated-payments/mollie_mandated_payment_Xk9pQrSvWm4NjLhYbUcP/simulate-failure \
  -H "Authorization: Bearer test_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "insufficient_funds"
  }'

Errors

StatusMeaning
401Missing or invalid API key
403Endpoint not available for this token or resource
404Transaction not found
Copyright © 2026