Create a Payment Page
Creates a new payment page 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
Request payload for creating a new payment page
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 page created successfully
A payment page represents a configurable payment collection interface that can be shared with customers.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. NEW Limitations:
- Maximum 20 keys
- Key names must be strings (max 40 characters)
- Values must be strings (max 500 characters)

