Create a Payment Request
Creates a new Payment Request for collecting payments from customers.
Authorizations
Authentication using Bearer tokens. Include your API key in the Authorization header.
Key Types:
- Test Keys:
sk_test_*for development and testing - Live Keys:
sk_*for production environments - Public Keys:
pk_test_*orpk_*for client-side operations
📩 Need access? Contact Support to request your API keys.
Usage:
Headers
A unique key to prevent duplicate operations. Use the same key for retries to ensure idempotent behavior.
Best Practices:
- Use UUIDs or other cryptographically unique identifiers
- Maintain keys for at least 24 hours for retry scenarios
- Use different keys for different operations
- Monitor
Idempotent-Replayedheader for cache hits
1 - 255^[a-zA-Z0-9-]+$Identifies the business unit the request applies to.
Required when the API key is linked to more than one business unit. When the key is linked to exactly one business unit the header may be omitted and that business unit is used.
Errors:
400 business_unit_missingwhen the header is absent and the key is linked to multiple business units400 business_unit_invalidwhen the value is not a valid business unit identifier403 business_unit_access_deniedwhen the value is well formed but the key is not linked to that business unit
^bu_[A-Za-z0-9_-]{21}$Body
- Link Request
- Push Request
Request payload for creating a new Payment Request.
If type is omitted, it defaults to link.
- Link:
expires_atdefaults to 24h (see ExpiresAt). - Push:
expires_atdefaults to 2 minutes (see ExpiresAt).
The amount to be charged in the smallest currency unit. For example, 20.00 ZAR is represented as 2000 cents. Learn more about minor units.
1000
Response
Payment Request created successfully
A Payment Request represents a request for payment that can be shared via a link or sent to a banking app for authorization and Payment.
The amount to be charged in the smallest currency unit. For example, 20.00 ZAR is represented as 2000 cents. Learn more about minor units.
1000

