Create Payment Agreement
Create a payment agreement that enables recurring or one-time payments between merchants and payers. This agreement specifies the transaction structure, including payment limits, agreement type, and callback details for status notifications.
Available payment methods:
pay_id: Use PayID as the payment method, which can be an email, phone number, or Australian Business Number (ABN). This provides a secure and streamlined payment option using a unique identifier.bsb: Use BSB (Bank-State-Branch) and account number as the payment method, which is suitable for direct bank transfers within Australia.
The endpoint also supports merchant callback configurations to notify merchants of status changes in the payment agreement.
Authorizations
A unique identifier assigned to each application.
A secure token associated with the app-id.
Body
Unique identifier for the transaction created by the merchant’s system.
1 - 90"txn-12345"
Maximum payment amount allowed for each transaction under this agreement. If using a fixed agreement, this amount should match the intended charge.
500
Brief description of the payment agreement.
5 - 140"Monthly utility payment"
Type of the payment agreement.
MORTGAGE, UTILITY, LOAN, DEPENDANT_SUPPORT, GAMBLING, RETAIL, SALARY, PERSONAL, GOVERNMENT, PENSION, TAX, OTHER_SERVICE "UTILITY"
- Option 1
- Option 2
- Option 3
- Option 4
Payer details, with either bank_account_details or pay_id_details required.
Callback configuration for receiving payment agreement status updates.
Custom identifier provided by the merchant for tracking purposes.
255"ext-123456"
Callbacks
POST{$request.body#/payment_agreement_notification/endpoint_url}PaymentAgreementStatus
Body
A unique identifier for the payment agreement, used for tracking and management.
12345
The unique identifier for the payment agreement, providing a reference to the specific agreement being handled.
"agreement-12345"
A unique ID for the transaction as provided by the merchant, used to ensure transactions can be uniquely tracked.
1 - 90"client-trans-001"
The maximum allowable amount for each payment under this agreement, helping to manage the scope of transactions.
5000
A description of the payment agreement, providing context and information for the payer and merchant.
5 - 140"Monthly utility bill payment agreement."
A custom identifier assigned to the payment agreement, typically used for tracking and reference purposes.
255"custom-agreement-id-7890"
The current status of the payment agreement. Possible values include:
created: Agreement has been created but not yet activated.active: Agreement is currently active.suspended: Agreement has been temporarily suspended.cancelled: Agreement has been cancelled.failed: Agreement creation or payment has failed.
created, active, suspended, cancelled, failed "active"
The timestamp indicating when the payment agreement was created, in UTC.
"2024-01-01T00:00:00Z"
The type of payment agreement, indicating the nature of the payments involved.
MORTGAGE, UTILITY, LOAN, DEPENDANT SUPPORT, GAMBLING, RETAIL, SALARY, PERSONAL, GOVERNMENT, PENSION, TAX, OTHER SERVICE "UTILITY"
- Option 1
- Option 2
- Option 3
- Option 4
Details about the payer, including either bank account information or PayID details.
Details for the merchant callback, including endpoint URL and authorization header for receiving status updates on the payment agreement.
Response
Callback received successfully.
Response
Payment agreement created successfully.
A unique identifier for the payment agreement, used for tracking and management.
12345
The unique identifier for the payment agreement, providing a reference to the specific agreement being handled.
"agreement-12345"
A unique ID for the transaction as provided by the merchant, used to ensure transactions can be uniquely tracked.
1 - 90"client-trans-001"
The maximum allowable amount for each payment under this agreement, helping to manage the scope of transactions.
5000
A description of the payment agreement, providing context and information for the payer and merchant.
5 - 140"Monthly utility bill payment agreement."
A custom identifier assigned to the payment agreement, typically used for tracking and reference purposes.
255"custom-agreement-id-7890"
The current status of the payment agreement. Possible values include:
created: Agreement has been created but not yet activated.active: Agreement is currently active.suspended: Agreement has been temporarily suspended.cancelled: Agreement has been cancelled.failed: Agreement creation or payment has failed.
created, active, suspended, cancelled, failed "active"
The timestamp indicating when the payment agreement was created, in UTC.
"2024-01-01T00:00:00Z"
The type of payment agreement, indicating the nature of the payments involved.
MORTGAGE, UTILITY, LOAN, DEPENDANT SUPPORT, GAMBLING, RETAIL, SALARY, PERSONAL, GOVERNMENT, PENSION, TAX, OTHER SERVICE "UTILITY"
- Option 1
- Option 2
- Option 3
- Option 4
Details about the payer, including either bank account information or PayID details.
Details for the merchant callback, including endpoint URL and authorization header for receiving status updates on the payment agreement.