Billing & subscriptions
Recurly mock API
Recurly subscription billing: accounts (id or code-), plans, subscriptions with lifecycle actions, invoices, coupons, transactions and signed JSON webhooks.
At a glance
- Operations
- 201
- Stateful operations
- 33
- Stateful resources
- 6
- Webhook events
- 12
- Vendor API version
- v2021-02-25
- Verification
- Spec-verified
How it works
Use Recurly without calling Recurly, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Basic cmVjdXJseWV4YW1wbGVrZXkwMTIzNDU2Nzg5Og== State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Accounts | 6 |
| Plans | 5 |
| Subscriptions | 9 |
| Invoices | 6 |
| Coupons | 5 |
| Transactions | 2 |
Webhooks
Events your handlers can receive
- account.created
- subscription.canceled
- subscription.created
- charge_invoice.created
- subscription.paused
- subscription.reactivated
- subscription.resumed
- subscription.expired
- charge_invoice.failed
- payment.failed
- charge_invoice.paid
- payment.succeeded
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
201 operations
33 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 168 |
| Subscriptions | 9 |
| Accounts | 6 |
| Invoices | 6 |
| Coupons | 5 |
| Plans | 5 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
3 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Recurly, Inc. API description, licensed under MIT.
- Recurly, Inc. API documentation
- Source specification
Each collection holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). A subscription creates exactly one open invoice (payment is simulated through mark_successful / mark_failed); renewals, dunning and the begin_time/end_time/ids list filters are not simulated. Unknown plan codes on subscription create are accepted; a future starts_at yields a static future subscription. Idempotency-Key replay covers creates only. update_plan answers 201 as the pinned spec declares. Webhooks are the JSON notifications (object_type.event_type), one signature per delivery. Event logs are generated, not stateful.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Recurly, Inc. Recurly is a trademark of its owner.