API Reference Overview
CommBank Connected Payments provides a comprehensive suite of REST APIs for payment processing, merchant management, tokenisation, reporting, and more. This page provides an overview of all available APIs and their use cases.
Environments and base URLs
Every API path on this site is relative to one of these base URLs. Use the sandbox base URL while you build and test, then switch to the production base URL when you go live.
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.connectedpayments.commbank.com.au |
| Production | https://connectedpayments.commbank.com.au |
For example, a production purchase request goes to https://connectedpayments.commbank.com.au/paymentshub/api/v1/payments/purchase. Sandbox and production use separate credentials.
Each API reference page shows the sandbox URL in its request samples. Replace the host with the production base URL for live requests.
Moving from earlier Connected Payments APIs
If you integrated with an earlier version of the Connected Payments APIs, move your integration to the hosts and paths below. Your existing credentials carry over.
| Operation | Earlier path | Current path |
|---|---|---|
| Purchase | /pfr/v1/gateway/purchase | /paymentshub/api/v1/payments/purchase |
| Capture | /pfr/v1/gateway/capture | /paymentshub/api/v1/payments/capture |
| Refund | /pfr/v1/gateway/refund | /paymentshub/api/v1/payments/refund |
| Open refund | /pfr/v1/gateway/refund/open | /paymentshub/api/v1/payments/openrefund |
| Void | /pfr/v1/gateway/void | /paymentshub/api/v1/payments/void |
| Masked token retrieve | /tokens/maskedPan | /tokenmanager/api/v1/tokens/retrieveMasked |
Order API paths (/merchanthub/api/v1/orders/*) are unchanged. Only the host changes.
The earlier hosts simulation-api.enterprisesecure.com.au, payments-api.enterprisesecure.com.au and api.enterprisesecure.com.au are replaced by the sandbox and production base URLs above.
Available APIs
Transaction APIs
Process payments, refunds, captures, and voids through our core transaction endpoints.
Use cases:
- Process credit/debit card purchases
- Pre-authorise and capture payments
- Issue refunds (matched and open)
- Void transactions before settlement
Key endpoints:
POST /paymentshub/api/v1/payments/purchase— Process an immediate paymentPOST /paymentshub/api/v1/payments/capture— Complete a pre-authorisationPOST /paymentshub/api/v1/payments/refund— Issue a matched refundPOST /paymentshub/api/v1/payments/openrefund— Issue an open refund to any cardPOST /paymentshub/api/v1/payments/void— Cancel a transaction before settlement
Tokenisation APIs
Create, manage, and use secure card tokens for recurring payments and card-on-file scenarios.
Use cases:
- Store customer payment methods securely
- Process recurring billing without storing card data
- Enable one-click checkout experiences
- Manage token aliases for easier reference
Key endpoints:
POST /tokenmanager/api/v1/tokens/create— Create a new card tokenPOST /tokenmanager/api/v1/tokens/update— Update token informationPOST /tokenmanager/api/v1/tokens/delete— Delete a tokenPOST /tokenmanager/api/v1/tokens/retrieveMasked— Retrieve the masked card details for a tokenPOST /tokenmanager/api/v1/tokens/aliases/create— Create a token alias
Notification APIs
Configure and manage webhook notifications for real-time payment event delivery.
Use cases:
- Receive real-time transaction updates
- Configure custom notification rules
- Set up conditional notifications based on transaction outcomes
- Manage notification retry behavior
Key endpoints:
POST /pfr-notification/v1/management/create— Create a notification rulePOST /pfr-notification/v1/management/list— List all notification rulesPOST /pfr-notification/v1/management/update— Update a notification rulePOST /pfr-notification/v1/management/delete— Delete a notification rulePOST /sample-notification— Get sample notification payload
Reporting APIs
Generate and download transaction reports, reconciliation files, and analytics.
Use cases:
- Generate custom transaction reports
- Download settlement reconciliation files
- Schedule automated report generation
- Export transaction data for accounting systems
Key endpoints:
POST /merchanthub/api/v1/reportconfigurations/create— Create a new report configurationPOST /merchanthub/api/v1/reports/list— List available reportsPOST /merchanthub/api/v1/reports/retrieve— Retrieve report detailsPOST /merchanthub/api/v1/reports/download/url— Download report fileDELETE /merchanthub/api/v1/reports/delete— Delete a report
Retry Rules APIs
Configure automatic retry logic for failed transactions and recurring billing.
Use cases:
- Set up smart retry schedules for failed subscriptions
- Configure retry intervals based on decline codes
- Manage retry attempts for recurring billing
- Optimize authorization success rates
Key endpoints:
POST /merchanthub/api/v1/retryrules/create— Create retry rulePOST /merchanthub/api/v1/retryrules/list— List retry rulesPOST /merchanthub/api/v1/retryrules/retrieve— Retrieve retry rulePOST /merchanthub/api/v1/retryrules/update— Update retry rulePOST /merchanthub/api/v1/retryrules/delete— Delete retry rule
Dynamic Query APIs
Query transaction data and merchant information using flexible search criteria.
Use cases:
- Search transactions by date range, status, or amount
- Query merchant hierarchy information
- Build custom reporting dashboards
- Integrate transaction data into external systems
Key endpoints:
POST /merchanthub/api/v1/dynamicquery/transaction/list— Execute a dynamic query
User Management APIs
Create and manage user accounts, permissions, and access control.
Use cases:
- Programmatically create user accounts
- Manage user permissions and groups
- Enable/disable user access
- Reset user passwords
Key endpoints:
POST /merchanthub/api/v1/usermanagement/users/signup— Create a new userPOST /merchanthub/api/v1/usermanagement/users/list— List usersPOST /merchanthub/api/v1/usermanagement/users/enable— Enable a user accountPOST /merchanthub/api/v1/usermanagement/users/disable— Disable a user accountDELETE /merchanthub/api/v1/usermanagement/users/delete— Delete a user
Authentication
All API requests require authentication using one of the following methods:
Basic Authentication (Username/Password)
Include credentials in the request body for standard authentication.
{
"userName": "your-username",
"password": "your-password"
}
JWT Bearer Token
Use a signed JWT token in the Authorization header to authenticate without sending credentials with every request. Tokens inherit the full permissions of the creating user and include an expiry date.
Authorization: Bearer <token>
X-Signature
Password-free authentication using JWS ECDSA ES512, resulting in a signed JWT placed in the x-signature request header. Requires an elliptic P521 certificate and approval from your Connected Payments Account Manager.
x-signature: <signed-jwt>
For detailed implementation guides and code samples, see Authentication Methods.