Skip to main content
POST
cURL
Creates a charge against a credit card, a bank account, or a stored token. The same endpoint captures a pre-authorisation when pre_authid is supplied.
  • Card: supply the card[...] fields or a card_token. Approved or declined immediately.
  • Bank account: supply the bank[...] fields or a bank_token. Returns Processing ("9"); the final result arrives through the webhook.
  • Capture: supply pre_authid from a pre-authorisation plus amount, currency and reference.
The JSON body uses the same bracketed key names as v4 form-data (card[name], bank[bsb]). Send them as literal keys.
A declined card charge returns HTTP 402 with the same charge object and the decline details in status, error and error_code. See the guide for the full walkthrough.

Response fields

uuid
The charge ID. Use it to retrieve or refund the charge, and to match webhook notifications.
string
The reference you supplied.
string
Decimal with two places.
string
The currency you supplied.
string
Approved, Dishonoured, Blocked, Errored or Processing.
string
"0" Approved, "4" Blocked, "5" Dishonoured, "6" Errored, "9" Processing. See Charge status.
string | null
Processor result description.
string | null
Processor error code. See Errors.
datetime
UTC.
uuid
The merchant the charge belongs to.
string | null
Processor reference.
string | null
Any meta_data_reference supplied on the request.
Present only when a surcharge was applied.

Authorizations

Authorization
string
header
required

Basic Authorization header using the Bearer scheme.

Body

currency
string | null
amount
number<double>
reference
string | null
card[name]
string | null
card[number]
string | null
card[expiry_month]
integer<int32>
card[expiry_year]
integer<int32>
card[cvv]
string | null
card_token
string | null
bank[name]
string | null
bank[bsb]
string | null
bank[number]
string | null
bank_token
string | null
pre_authid
string | null
merchant_guid
string | null
phone
string | null
charge_id
string | null
meta_data_reference
string | null
contact[phone]
string | null
contact[email]
string | null
address[address_line_1]
string | null
address[address_line_2]
string | null
address[suburb]
string | null
address[state]
string | null
address[post_code]
string | null
address[country]
string | null
3ds_charge_id
string<uuid> | null
challenge_reference
string | null

Response

200

OK