Versioning
API versioning policy and changelog
Versioning
Plexy uses API versioning to ensure stability while allowing improvements.
Version format
API versions use date-based naming:
2024-01-15Setting your version
Specify the API version by passing the Plexy-Version header:
curl -X POST https://api.plexypay.com/v2/payments \
-H "x-api-key: YOUR_API_KEY" \
-H "Plexy-Version: 2024-01-15" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "currency": "USD"}'Default version
If no version is specified, your account's default version is used. Set your default in the Dashboard under Developers > API Version.
Upgrade policy
Breaking changes
Breaking changes are released as new API versions:
- Removing fields or endpoints
- Changing field types
- Modifying error formats
- Changing default behaviors
Non-breaking changes
Non-breaking changes are added to all versions:
- New optional fields
- New endpoints
- New enum values
- Bug fixes
Changelog
2024-01-15 (Current)
- Added
metadatafield to all resources - New
payment.requires_actionstatus - Improved error messages
2023-09-01
- Added
off_sessionparameter for saved cards - New dispute management endpoints
- Updated webhook payload structure
2023-06-01
- Initial API release
- Core payments, refunds, customers
- Webhook support
Testing versions
Test new versions before upgrading by pinning the version header in your test requests:
curl -X POST https://api.plexypay.com/v2/payments \
-H "x-api-key: YOUR_TEST_API_KEY" \
-H "Plexy-Version: 2024-01-15" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "currency": "USD"}'If tests pass, update your account's default version in the Dashboard.
Webhook versions
Webhooks use your account's default version. To change:
- Go to Developers > Webhooks
- Select endpoint
- Change API Version
Migration guide
When upgrading versions:
- Read the changelog for breaking changes
- Update your code for new field names/types
- Test thoroughly in test environment
- Update your account default version
- Monitor for errors after deployment
Deprecation policy
- Deprecated versions supported for 12 months
- Email notifications sent before deprecation
- Upgrade assistance available