Skip to Content
Docs

Australian bank account payouts

Pay out to an Australian bank account by its BSB code and account number.

Pay out to an Australian bank account, by its BSB code and account number. See Australian bank account in Payout connections for the providers that pay out to it.

Pay out with the API

When you have the recipient's details, send POST /v1/payouts with destination_data.type set to "au_bank_account" and a unique idempotency-key header. Amounts are in minor units, so 10000 is A$100.00. Send the recipient's bsb_code and account_number.

{
  "amount": 10000,
  "currency": "aud",
  "destination_data": {
    "type": "au_bank_account",
    "au_bank_account": {
      "bsb_code": "062000",
      "account_number": "12345678",
      "account_holder_name": "Jane Smith"
    }
  },
  "reference": "payout-12345"
}

destination_data.au_bank_account accepts these fields.

FieldDescription
bsb_codeThe six-digit BSB code of the bank branch.
account_numberThe bank account number.
account_holder_nameFull name of the account holder.
account_holder_typeType of the account holder, for example individual or company.
account_typeType of the bank account.
bank_nameName of the bank.

See Create a payout for common payout fields, and Track and manage payouts for payout statuses and webhook events.

Pay out to a saved Australian bank account

When the customer already saved their Australian bank account with you, pay out to it without asking for their details again. It can be a payment method saved when they paid, or in a setup session. Read its ID from payment_method on the charge or payment session, or list the customer's payment methods with GET /v1/customers/{reference_id}/payment_methods. Then pass the ID as destination in POST /v1/payouts.

{
  "amount": 10000,
  "currency": "aud",
  "destination": "pm_au_bank_account_750042760773370880",
  "customer_reference_id": "cust-001",
  "reference": "payout-12345"
}

Pay out only to a payment method whose flow_directions.payout is true. Pay.com sends the payout to any saved method you name, so one that can't receive payouts comes back declined, with 400 and payment_method_error. When you send customer_reference_id, the payment method must belong to that customer.

Save the recipient's details with Pay.com.js

The recipient enters their Australian bank account details in Pay.com.js, Pay.com saves them as a payment method, and you pay out to it.

  1. 1

    Create a payout setup session

    On your server, send POST /v1/sessions/setup with payout set to true and "au_bank_account" in payment_method_types. Pay.com verifies that Australian bank account payouts are enabled on your account. customer_reference_id is required. Return the session's client_secret to your page.

    {
      "customer_reference_id": "cust-001",
      "payment_method_types": ["au_bank_account"],
      "payout": true
    }
  2. 2

    Collect the details

    Initialize Pay.com.js with the client_secret, and call checkout.headless() when the recipient selects Australian bank account. Pay.com.js opens the Australian bank account form in a window over your page.

    The recipient fills in these fields.

    FieldSetup form labelRequiredFormat
    bsb_codeBank BSB codeYes6 characters
    bank_account_numberBank account numberYes5 to 9 characters
    try {
      await checkout.headless('au_bank_account', { bsb_code: '062000', bank_account_number: '12345678' })
    } catch (error) {
      // onFailure receives the error details too.
    }
  3. 3

    Pay out to the saved method

    When Pay.com.js calls onSuccess, retrieve the setup session with GET /v1/sessions/setup/{id}. Read the saved payment method ID from payment_method and pass it as destination in POST /v1/payouts for this and future payouts.

Next steps

Was this page helpful?