Developers

This page is a ZenPay-styled copy of the Zenith Payments developer documentation. View the original docs

Merchant API schemas

Request and response models used by the Merchant APIs (v2).

AccountProxy#

Payment Account Reference

View this schema in the original docs

Payment account proxy reference. Recommended over CardProxy.

FieldTypeDescription
labelstring

Label for the account.

Max length: 80
proxy requiredstring

Card or bank account proxy. Proxy is generated using the Payments Plugin for bank account and card or /cardProxies api for card.

Max length: 40

AdditionalReference#

Additional Reference

View this schema in the original docs

Additional customer reference entry containing a full name and customer reference.

FieldTypeDescription
customerReferencestring

Customer reference linked to this additional reference.

fullNamestring

Full name associated with the additional reference.

AmbiguousResult#

Ambiguous Result

View this schema in the original docs

Response returned when a duplicate is detected (HTTP 300). Indicates the resource already exists.

Type: object

ApiBatchPayEntry#

Batch Payment Entry

View this schema in the original docs

Individual entry within a batch payment including amount, status, and reference.

FieldTypeDescription
additionalReferencestring

Additional reference. (Conditional).

baseAmountnumber <double>

Base amount of the payment is done.

cardCategorystring

Card category.

cardTypeStringstring

Card scheme the payment was processed on, as text. For example: Visa.

cardTypeValueinteger <int32>

Card scheme the payment was processed on, as its numeric code. Pairs with cardTypeString.

companyNamestring

Customer company name.

customerFeenumber <double>

Fee charged on customer card.

customerNamestring

Customer who paid the payment.

customerReferencestring

Reference of the Customer who paid the payment.

entryStatusstring

One of:

  • BatchPay Entry Pending — This Entry is waiting to be processed
  • BatchPay Entry Processed — Payment for this Entry has been successfully processed
  • Customer not found — This Customer is not found in system. Create the Customer using POST - /v2/customers API
  • Duplicate entry — There is a duplicate entry in the batch. Remove duplicate entry
  • Multiple customers found — The System has detected that there is Multiple Customers that have the same Reference setup. Check Customers and update reference
  • Customer status is not open — Corresponding customer for batchpay entry is not in open state. Update Customer Status to Open
  • Payment end date has expired — Payment End Date for BatchPay Entry has expired. Update Date to a future date
  • Payment option is not BatchPay — Customer's Payment Option needs to be BatchPay in order to be processed. Update Customer Payment Option to BatchPay
  • Customer status does not allow payment processing — Customer Status is invalid. Customer Status must be Open to process payments. Check Status of Customer
  • Invalid payment amount — Payment amount is not valid. Check amount and resubmit
  • Error during payment processing — There was an error while processing payment. Please contact Zenith Payments
  • Technical Error — This Entry has encountered an unhandled error. Please contact Zenith Payments
  • Cancelled — Batch is cancelled
  • DuplicatePaymentUniqueId — Duplicate payment unique id
failureCodestring

Failure code if the payment failed. Please refer: http://tinyurl.com/y6lkmpsv for more details. (Conditional).

failureReasonstring

Failure reason if the payment failed. (Conditional).

isPaymentRecalledboolean

Payment recalled.

isPaymentRefundedboolean

Payment refunded.

isPaymentRetryScheduledboolean

Whether a retry payment is pending. Based on Program/Merchant settings, a failed payment will be retried.

lastDigitsstring

Payment Card No.

merchantCodestring

Merchant code.

merchantFeenumber <double>

Fee charged on Merchant.

merchantNamestring

Merchant trading name.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant. (Conditional).

merchantWithheldAmountnumber <double>

Funds to Merchant.

paymentAmountnumber <double>

Total payment amount including the fees.

paymentCardstring

Payment card used.

paymentDatestring <date-time>

Payment date.

paymentMethodstring

Method was used to process the transaction. ie: Bank Account, Credit Card, etc.

paymentReferencestring

Unique Payment Reference for the payment done.

paymentResourcestring

Link to the actual payment.

paymentStatusstring

One of:

  • Pending — This Payment is waiting to be processed
  • Error — This Payment has encountered an Error
  • Submitted — This Payment was successfully submitted
  • Successful — This Payment was successful
  • Successful (Recalled) — This Payment was Recalled. The System has detected that this Entry potentially has been submitted in another Batch
  • Successful (Refunded) — This Payment was Refunded
  • Successful (Refunded) (Recalled) — This Payment was Refunded and Recalled
  • Failed — This Payment has Failed
  • Cancelled — This Payment was Cancelled
  • Suppressed — This Payment was Suppressed
  • InProgress — This Payment is being processed
processedAmountnumber <double>

Total payment amount including the fees.

processingDatestring <date-time>

Processing Date for the payment. Date Format: yyyy-MM-ddTHH:mm:ssZ, TimeZone: AEST.

processorReferencestring

Processor reference for the payment done.

recalledOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ssZ, TimeZone: AEST (Conditional).

recalledReasonstring

Reason. (Conditional).

refundedOnstring <date-time>

Refunded date. Date Format: yyyy-MM-ddTHH:mm:ssZ, TimeZone: AEST (Conditional).

refundedReasonstring

Reason. (Conditional).

retryPaymentReferencestring

Retry payment reference. (Conditional).

retryPaymentResourcestring

Link to the retry payment.

retryPaymentStatusstring

Retry payment status.

retryScheduledOnstring <date-time>

Retry payment scheduled date. Date Format: yyyy-MM-ddTHH:mm:ssZ, TimeZone: AEST (Conditional).

settlementDatestring <date-time>

Settlement Date for the payment. This is a calculated date and may change until the payment been settled. Date Format: yyyy-MM-ddTHH:mm:ssZ, TimeZone: AEST.

settlementReferencestring

Reference for the settlement this entry was paid out in. Empty until the payment settles.

subCardTypeStringstring

Card sub-type where the scheme has one, as text. Empty when the scheme has none.

subCardTypeValueinteger <int32>

Card sub-type as its numeric code. Pairs with subCardTypeString.

ApiBatchPaySummary#

Batch Payment Summary

View this schema in the original docs

Batch payment summary including status, totals, and processing details.

FieldTypeDescription
merchantCodestring

Merchant code.

merchantNamestring

Merchant name (Trading name).

merchantUniqueBatchIdstring

Unique batch id provided by the merchant.

processingDatestring <date-time>

Batch processed date.

statusstring

One of:

  • File Uploaded — Batch file is uploaded and pending file processing
  • Pending — Payment is not processed yet
  • Validation in Progress — Batch validation is in progress
  • On Hold - Potential Duplicate — Batch is on hold awaiting manual activation
  • Ready for Payment Processing — Batch duplicate validation is completed and now it is ready for Payment processing
  • On Hold Approved
  • Payment Processing in Progress — Batch payment processing in progress
  • Completed — Batch payment processing completed
  • Cancelled — Batch payment is cancelled
  • BatchPay Not Allowed — Error in processing - Merchant status doesn't allow to process batch payment
  • Merchant Not Found — Error in file/batch processing merchant code in file not found in database
  • Technical Error — Any technical error like batch entry has been added twice
statusRemarksstring

Status remarks.

submittedDatestring <date-time>

Batch submitted date.

totalAmountnumber <double>

Total batch payment amount.

totalEntriesinteger <int32>

Total batch items in the batch.

ApiRequestPayEntry#

Request Pay Entry

View this schema in the original docs

Individual entry within a request-to-pay batch including amount and recipient details.

FieldTypeDescription
additionalReferencestring

Additional reference for the payment entry.

baseAmountnumber <double>

Base payment amount before fees.

companyNamestring

Company name associated with this payment entry.

customerFeenumber <double>

Fee charged to the customer.

customerNamestring

Name of the customer for this payment entry.

customerReferencestring

Reference identifier for the customer in this payment entry.

emailstring

Email address for payment notifications.

entryStatusstring

Current status of this payment entry.

failureCodestring

Error code for the payment failure.

failureReasonstring

Reason the payment failed.

isPaymentRecalledboolean

Whether the payment has been recalled.

isPaymentRefundedboolean

Whether the payment has been refunded.

isPaymentRetryScheduledboolean

Whether a payment retry has been scheduled.

lastDigitsstring

Last digits of the payment card used.

merchantCodestring

Merchant code.

merchantFeenumber <double>

Fee charged to the merchant.

merchantNamestring

Merchant trading name.

merchantWithheldAmountnumber <double>

Amount withheld from the merchant.

mobilestring

Mobile number for payment notifications.

oneOffPaymentReferencestring

Reference for a one-off payment.

paymentAmountnumber <double>

Amount to be paid in this entry.

paymentCardstring

Card details associated with the payment.

paymentDatestring <date-time>

Scheduled date for the payment.

paymentMethodstring

Method used for payment (e.g. card, direct debit).

paymentReferencestring

Unique reference for the payment transaction.

paymentResourcestring

Resource identifier for the payment.

paymentStatusstring

Payment processing status.

processedAmountnumber <double>

Total amount processed including fees.

processingDatestring <date-time>

Date the payment was processed.

processorReferencestring

Reference assigned by the payment processor.

recalledOnstring <date-time>

Date and time the payment was recalled.

recalledReasonstring

Reason the payment was recalled.

refundedOnstring <date-time>

Date and time the payment was refunded.

refundedReasonstring

Reason the payment was refunded.

requestReferencestring

Reference to the parent request-to-pay batch.

retryPaymentReferencestring

Reference for the retry payment transaction.

retryPaymentResourcestring

Resource identifier for the retry payment.

retryPaymentStatusstring

Status of the retry payment.

retryScheduledOnstring <date-time>

Date and time the retry is scheduled for.

settlementDatestring <date-time>

Date the payment was settled.

ApiRequestPaySummary#

Request Pay Summary

View this schema in the original docs

Request-to-pay summary including status, totals, and processing details.

FieldTypeDescription
merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

merchantUniqueRequestBatchIdstring

Merchant-assigned unique identifier for the request-to-pay batch.

processingDatestring <date-time>

Date and time the request-to-pay was processed.

statusstring

Current processing status of the request-to-pay.

statusRemarksstring

Additional remarks about the request-to-pay processing status.

submittedDatestring <date-time>

Date and time the request-to-pay was submitted.

totalAmountnumber <double>

Total monetary amount of all entries in the request-to-pay.

totalEntriesinteger <int32>

Total number of entries in the request-to-pay.

BankAccount#

Bank Account Details

View this schema in the original docs

Bank account details including BSB, account number, and account name.

FieldTypeDescription
accountName requiredstring

Account Holder name.

Max length: 32
Pattern: [\u0020-\u007E]*
accountNumber requiredstring

Bank Account number.

Pattern: ^([0-9]{4,10})
bankBranchstring

Bank branch.

Max length: 50
bankNamestring

Bank Name.

Max length: 50
bsb requiredstring

BSB Number. Format: 000000.

Max length: 6
isPayToboolean

Bank account is PayTo if true.

labelstring

Label for the account.

Max length: 50
payToStatusinteger <int32>

If PayTo account, this field will let you know the status of the Mandate.

Allowed values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

BatchPaymentDataRecord#

Batch Payment Entry Record

View this schema in the original docs

Individual batch payment entry submitted by the client. Supports JSON or XML format.

FieldTypeDescription
customerReference requiredstring

Customer reference in individual payment batch entry.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant. Can be used when Proxy payment is performed. (Optional).

Max length: 50
paymentAccountProxystring

Pass an alternative Proxy if required (Optional). If no Proxy is passed, the nominated card / bank account is used.

Max length: 40
paymentAmount requirednumber <double>

Payment amount in individual payment batch entry.

Minimum: 0.01
Maximum: 1.7976931348623157e+308

BatchPaymentRequest#

Batch Payment Request

View this schema in the original docs

Container for batch payment entries. Root element containing a collection of BatchPaymentEntry.

FieldTypeDescription
batchPaymentEntries requiredarray of object (BatchPaymentDataRecord)

Collection of BatchPayment entry.

merchantUniqueBatchIdstring

Unique batch id provided by the merchant.

Max length: 50

BatchPaymentResponse#

Batch Payment Response

View this schema in the original docs

Batch payment response returned after submission.

FieldTypeDescription
batchPaymentIdinteger <int32>

Id of BatchPayment.

merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

merchantUniqueBatchIdstring

Unique batch id provided by the merchant.

warningMessagesstring

WarningMessages after processing batch.

BPayDetail#

BPAY Detail

View this schema in the original docs

BPAY details including biller code and biller reference.

FieldTypeDescription
billerCodestring

BPAY Biller Code.

billerReferencestring

BPAY Biller Reference.

CaptureCardRequest#

Preauthorization Capture Request

View this schema in the original docs

Capture request for a preauthorization including payment amount and optional references.

FieldTypeDescription
additionalReferencestring

Additional reference. This field is returned in reconciliation reports.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant.

Max length: 50
oneOffPaymentReferencestring

One Off Payment reference. This field is returned in reconciliation reports.

paymentAmount requirednumber <double>

Amount to capture.

sendPaymentConfirmationboolean

Flag to send the customer invoice.

CaptureCardResponse#

Preauthorization Capture Result

View this schema in the original docs

Capture preauthorization response including status, amounts, and transaction details. Fields marked as conditional are only returned under certain conditions.

FieldTypeDescription
abnstring

ABN for the transaction.

accountOrCardNostring

Payment Card No.

additionalReferencestring

Additional reference. (Conditional).

baseAmountnumber <double>

Base amount of the payment is done.

cardCategorystring

Card category.

chargeBackedOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

chargeBackedReasonstring

Reason. (Conditional).

chargeBackedTransactionReferencestring

ChargedBackedTransactionReference : If a charge transaction is charged back then this is transaction reference of charged back transaction.(Conditional).

customerFeenumber <double>

Fee charged on customer card.

customerNamestring

Customer who paid the payment.

customerReferencestring

Reference of the Customer who paid the payment.

failureCodestring

Failure code if the payment failed. Please refer: http://tinyurl.com/y6lkmpsv for more details. (Conditional).

failureReasonstring

Failure reason if the payment failed. (Conditional).

fundsToMerchantnumber <double>

Funds to Merchant.

isPaymentChargeBackedboolean

Payment Charge Backed.

isPaymentRecalledboolean

Payment recalled.

isPaymentRefundedboolean

Payment refunded.

isPaymentRetryScheduledboolean

Whether a retry payment is pending. Based on Program/Merchant settings, a failed payment will be retried.

isPaymentSettledToMerchantboolean

Whether the payment has been settled to the merchant.

merchantCodestring

Merchant code.

merchantFeenumber <double>

Fee charged on Merchant.

merchantNamestring

Merchant trading name.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant. (Conditional).

oneOffPaymentReferencestring

One Off Payment Reference.

originalTransactionReferencestring

OriginalTransactionReference : For a Recall / Refund transaction, it is the transaction reference of original transaction.

paymentAccountstring

Payment Account by which the payment is done.

paymentAmountnumber <double>

Total payment amount including the fees.

paymentCardstring

Payment card used.

paymentReferencestring

Unique Payment Reference for the payment done.

paymentSourceDisplaystring

Payment source of transaction.

paymentStatusstring

Current Status of the payment. Expected Statuses

  1. Pending This Payment is waiting be to processed
  2. Error - This Payment has encountered an Error
  3. Submitted - This Payment was successfully submitted
  4. Successful - This Payment was successful
  5. Successful(Recalled) - This Payment was Recalled
  6. Successful(Refunded) - This Payment was Refunded
  7. Successful (Refunded) (Recalled) - This Payment was Refunded and Recalled
  8. Failed - This Payment has Failed
  9. Cancelled - This Payment was Cancelled
  10. Suppressed - This Payment was Suppressed
  11. InProgress - This Payment is being processed.
preauthExpiryAtstring <date-time>

Preauth expiry in minutes.

processingDatestring <date-time>

Processing Date for the payment. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

processorReferencestring

Processor reference for the payment done.

recalledOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

recalledReasonstring

Reason. (Conditional).

recalledTransactionReferencestring

RecalledTransactionReference : If a charge transaction is recalled then this is transaction reference of recall transaction.(Conditional).

refundedOnstring <date-time>

Refunded date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

refundedReasonstring

Reason. (Conditional).

refundedTransactionReferencestring

RefundedTransactionReference : If a charge transaction is refunded then this is transaction reference of refunded transaction.(Conditional).

remainingPreauthAmountnumber <double>

Remaining preauth amount after one or more captures.

retryPaymentReferencestring

Retry payment reference. (Conditional).

retryScheduledOnstring <date-time>

Retry payment scheduled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

settlementDatestring <date-time>

Settlement Date for the payment. This is a calculated date and may change until the payment been settled. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

transactionTypeinteger <int32>

Transaction type numeric code.

Allowed values: 1 Charge, 2 InvoicePayment, 3 Refund, 4 Chargeback, 5 Recall, 6 FixedTermSettlement, 7 SponsorInvoicePayment, 8 MerchantSettlementAdjustmentPayment, 9 Preauthorization, 10 Credit
transactionTypeDisplaystring

Transaction Type. Possible values:

  1. Charge
  2. Invoice
  3. Refund
  4. Chargeback
  5. Recall
  6. Fixed Term Settlement.

CardProxyRequest#

Card Tokenization Request

View this schema in the original docs

Credit or debit card details for card proxy creation.

FieldTypeDescription
cardHolderNamestring

Card holder name.

cardNumber requiredstring

Credit/Debit Card number.

customerUniqueIdstring

Customer unique identifier.

expiry requiredstring

Card expiry in MM/yy format.

paymentAmountnumber <double>

Amount is optional. If provided, the applicable pricing will be returned in the result.

threeDSecureDataobject (ThreeDSecureData)

Conditional. Pass the values if 3DSecure is required.

CardProxyResponse#

Card Tokenization Response

View this schema in the original docs

Card authorisation response returned after card proxy creation.

FieldTypeDescription
cardNumberstring

Obfuscated card number.

cardProxystring

Processor token. Used to make payment next time.

cardTypestring

Card type (Visa, MasterCard etc.).

expirystring

Card expiry in MM/yy format.

failureCodestring

Failure code in case the authorisation fails.

failureReasonstring

Failure reason in case the authorisation fails.

pricingobject (Pricing)

Applicable pricing based on provided card and payment details.

redirectUrlstring

3DSecure redirect url to complete the 3DSecure challege if required by the scheme.

statusstring

Proxy status Expected Statuses

  1. Pending This proxy is waiting be to processed
  2. Successful - This proxy was successful
  3. Failed - This proxy has Failed
  4. PendingThreeDS - This proxy needs to complete 3DSecure process using the RedirectUrl.
Read only

CreditCard#

Credit Card

View this schema in the original docs

Credit card details including card number, type, expiry, and label.

FieldTypeDescription
cardNumberstring

Card number.

cardTypestring

Card Type.

expirystring

Expiry.

labelstring

Label for the card.

CreditCardProxy#

Credit Card Proxy

View this schema in the original docs

Credit card proxy reference with optional label.

FieldTypeDescription
cardProxy requiredstring

Card proxy generated by the /cardproxies api.

Max length: 40
labelstring

Label for the card.

Max length: 80

CreditRequestResponse#

Credit Request Response

View this schema in the original docs

Credit request details including status, credit reference, amount, and merchant information.

FieldTypeDescription
cancelReasonstring

Reason the credit request was cancelled.

creditAmountnumber <double>

Credit request amount.

creditReferenceinteger <int32>

Reference for the credit transaction.

Read only
merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

rejectReasonstring

Reason the credit request was rejected.

requestReasonstring

Reason for the credit request.

requestStatusinteger <int32>

Status code of the credit request.

requestStatusStringstring

Status label for the credit request.

requestUniqueIdstring

Unique identifier for the credit request.

statusinteger <int32>

Status code of the credit request.

Allowed values: 0 Forbidden, 1 CountLimitReached, 2 AmountLimitReached, 3 InvalidPaymentProxy, 4 DuplicateRequest, 5 NotEligibleForCredit, 6 Success
Read only

CreditsRequest#

Credit Disbursement Request

View this schema in the original docs

Credit request details including customer reference, amount, payment account proxy, and reason.

FieldTypeDescription
creditAmount requirednumber <double>

Payment amount.

customerName requiredstring

Customer name.

Max length: 100
customerReference requiredstring

Customer reference.

Max length: 20
paymentAccountProxy requiredstring

Payment Account Proxy.

Max length: 50
reason requiredstring

Credit reason.

Max length: 50
requestUniqueId requiredstring

Unique credit id provided by the merchant.

Max length: 50

CustomerAccountRequest#

Customer Payment Account Update

View this schema in the original docs

Customer payment account update. Accepts PaymentAccountProxy, CreditCardProxy, or BankAccount. Priority order: PaymentAccountProxy, BankAccount, CreditCardProxy. Preferred option is PaymentAccountProxy.

FieldTypeDescription
addtionalPaymentAccountProxiesarray of object (AccountProxy)

Additional PaymentAccountProxies. Proxy is generated using the Payments Plugin for bank account and card or /cardProxies API for card.

bankAccountobject (BankAccount)

Customer bank account details. Provide valid BSB and Account Number.

creditCardProxyobject (CreditCardProxy)

Customer credit / debit card proxy. Proxy is generated using the /cardProxies API or Payments Plugin.

paymentAccountProxyobject (AccountProxy)

This replaces the BankAccount and CreditCardProxy. Proxy is generated using the Payments Plugin for bank account and card or /cardProxies API for card.

CustomerAccountResponse#

Customer Account Response

View this schema in the original docs

Customer payment account including bank account and credit card details.

FieldTypeDescription
bankAccountobject (BankAccount)

Customer bank account details.

creditCardobject (CreditCard)

Customer credit card details.

CustomerAddress#

Customer Address

View this schema in the original docs

Customer address including address lines, suburb, state, postcode, and country.

FieldTypeDescription
address1 requiredstring

Address line 1.

address2string

Address line 2.

country requiredstring

Country.

Max length: 100
postcode requiredstring

Postcode.

state requiredstring

State / province.

Max length: 50
suburb requiredstring

Suburb / city.

Max length: 50

CustomerPaymentOption#

Customer Payment Option

View this schema in the original docs

Customer payment option including payment type, amount, frequency, schedule, and notification method.

FieldTypeDescription
bPayDetailobject (BPayDetail)

BPAY details.

nextPaymentDate requiredstring <date-time>

Payment start date.

notificationMethod requiredinteger <int32>

Notification method used to indicate the communication channel when payment successful or failed.

Allowed values: 0 None, 1 Sms, 2 Email
payIdDetailobject (PayIdDetail)

PayID details.

paymentAmount requirednumber <double>

Payment amount. Set the default amount for auto payments or amount for one-off payment.

paymentEndDatestring <date-time>

Payment end date.

paymentFrequency requiredinteger <int32>

Payment frequency. Applicable to auto pay, email reminder and sms reminder. Returns monthly if frequency is not available.

Allowed values: 32 Weekly, 33 Fortnightly, 38 Monthly, 34 Quarterly, 35 HalfYearly, 36 Yearly, 37 FourWeeks
paymentOption requiredinteger <int32>

Payment option. Use the correct payment option which is supported by the merchant.

Allowed values: 22 AutoPay, 23 EmailReminder, 24 SmsReminder, 25 FixedTerm, 26 BatchPay, 27 ScheduledPay, 28 OneOff, 148 PayID, 149 BPAY

CustomerProfile#

Customer Profile

View this schema in the original docs

Customer profile including personal details, contact information, address, and account dates.

FieldTypeDescription
abnstring

Australian Business Number.

addressobject (CustomerAddress)

Customer postal address.

bPayReferencestring

BPay reference number for the customer.

companyNamestring

Name of the customer company.

customerCodestring

Unique code assigned to the customer.

customerReferencestring

Unique reference identifier for the customer.

customerStatusstring

Current status of the customer account.

dateClosedstring <date-time>

Date the customer account was closed.

dateOfBirthstring <date-time>

Customer date of birth.

emailstring

Customer email address.

enableBPayOptionboolean

Whether BPay payment option is enabled for this customer.

faxstring

Customer fax number.

firstNamestring

Customer first name.

lastNamestring

Customer last name.

merchantStaffMemberstring

Staff member assigned to the customer.

mobilestring

Customer mobile phone number.

openDatestring <date-time>

Date the customer account was opened.

phonestring

Customer phone number.

titlestring

Customer title (e.g. Mr, Mrs, Ms).

CustomerProfileRequest#

Customer Profile Request

View this schema in the original docs

Customer profile details for creating or updating a customer profile.

FieldTypeDescription
abnstring

Australian Business Number.

address requiredobject (CustomerAddress)

Customer postal address.

companyNamestring

Name of the customer company.

dateOfBirth requiredstring <date-time>

Customer date of birth.

email requiredstring

Customer email address.

enableBPayOptionboolean

Whether BPay payment option is enabled for this customer.

faxstring

Customer fax number.

firstName requiredstring

First name.

Max length: 30
lastName requiredstring

Last name.

Max length: 30
merchantStaffMemberstring

Staff member assigned to the customer.

mobilestring

Customer mobile phone number.

phonestring

Customer phone number.

titlestring

Provide the salutation. Eg: Mr or Mrs.

Max length: 10

CustomerResponse#

Customer Details Response

View this schema in the original docs

Customer details including profile, payment account, payment option, and merchant information.

FieldTypeDescription
accountobject (CustomerAccountResponse)

Customer Payment account.

merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

paymentOptionobject (CustomerPaymentOption)

Customer payment option.

profileobject (CustomerProfile)

Customer profile.

CustomerStatusRequest#

Customer Status Update Request

View this schema in the original docs

Customer status update request including close/open flag and reason.

FieldTypeDescription
closeCustomerboolean

True to close, false to open.

reasonstring

Reason if the customer is closed.

ICustomerProfie#

Customer Profile Details

View this schema in the original docs

Customer profile details returned for a customer profile query.

FieldTypeDescription
abnstring

Australian Business Number.

addressobject (CustomerAddress)

Customer postal address.

companyNamestring

Name of the customer company.

dateOfBirthstring <date-time>

Customer date of birth.

emailstring

Customer email address.

enableBPayOptionboolean

Whether BPay payment option is enabled for this customer.

faxstring

Customer fax number.

firstNamestring

Customer first name.

lastNamestring

Customer last name.

merchantStaffMemberstring

Staff member assigned to the customer.

mobilestring

Customer mobile phone number.

phonestring

Customer phone number.

titlestring

Customer title (e.g. Mr, Mrs, Ms).

InternalServerErrorResult#

Internal Server Error

View this schema in the original docs

Response returned when an internal server error occurs (HTTP 500).

FieldTypeDescription
requestobject

Gets the request message which led to this result.

Read only

ModelError#

Validation Error

View this schema in the original docs

Represents an error that occurs during model binding.

FieldTypeDescription
errorMessagestring

Gets or sets the error message.

Read only
exceptionobject

Gets or sets the exception object.

Read only

ModelState#

Validation Model State

View this schema in the original docs

Encapsulates the state of model binding to a property of an action-method argument, or to the argument itself.

FieldTypeDescription
errorsarray of object (ModelError)

Gets a ModelErrorCollection object that contains any errors that occurred during model binding.

Read only
valueobject (ValueProviderResult)

Gets a ValueProviderResult object that encapsulates the value that was being bound during model binding.

NewCustomer#

New Customer Request

View this schema in the original docs

Customer creation request including profile, payment option, and account details.

FieldTypeDescription
abnstring

Australian Business Number.

additionalPaymentAccountProxiesarray of object (AccountProxy)

Additional PaymentAccountProxies. Proxy is generated using the Payments Plugin for Bank and Credit/Debit Card or /cardProxies api for Credit/Debit Card.

additionalReferencesarray of object (AdditionalReference)

Additional references if you have more than one references to manage. Eg: Parents paying childcare fee for more than one kid.

addressobject (CustomerAddress)

Customer address.

bankAccountobject (BankAccount)

Customer bank account details.

cardobject (CreditCardProxy)

Customer credit / debit card proxy. (Token is generated using the /tokens api.

customerCompanyNamestring

Company name if this is company account.

customerReference requiredstring

Customer / Parent Reference. Should be unique and provided by the merchant. If you are paying the merchant by BPAY, this should be your BPAY Reference.

dateOfBirth requiredstring <date-time>

Date of birth. Customer must be atleast 16 years old.

email requiredstring

Email address.

enableBPayOptionboolean

Allows to enable BPAY option for the customer / parent.

faxstring

Fax number.

firstName requiredstring

First name.

Max length: 30
isBPayCrnPassedboolean

Send this as true when customer reference passed if CRN. Default is set to false if not passed.

lastName requiredstring

Last name.

Max length: 30
merchantStaffMemberstring

Merchant Staff member assigned to this customer / parent.

mobile requiredstring

Mobile number.

notificationMethod requiredinteger <int32>

Notification method used to indicate the communication channel when payment successful or failed.

Allowed values: 0 None, 1 Sms, 2 Email
paymentAccountProxyobject (AccountProxy)

This replaces the BankAccount and Card properties. Proxy is generated using the Payments Plugin for Bank and Credit/Debit Card or /cardProxies api for Credit/Debit Card.

paymentAmount requirednumber <double>

Payment amount. Set the default amount for auto payments or amount for one-off payment.

paymentEndDatestring <date-time>

Payment end date.

paymentFrequency requiredinteger <int32>

Payment frequency. Applicable to auto pay, email reminder and sms reminder.

Allowed values: 32 Weekly, 33 Fortnightly, 38 Monthly, 34 Quarterly, 35 HalfYearly, 36 Yearly, 37 FourWeeks
paymentOption requiredinteger <int32>

Payment option. Use the correct payment option which is supported by the merchant.

Allowed values: 22 AutoPay, 23 EmailReminder, 24 SmsReminder, 25 FixedTerm, 26 BatchPay, 27 ScheduledPay, 28 OneOff, 148 PayID, 149 BPAY
paymentStartDate requiredstring <date-time>

Payment start date.

phonestring

Phone number.

promotionCodestring

Promotion code if any.

sendWelcomeEmailboolean

Sends welcome email if set to true. Default is set to true if not passed.

titlestring

Provide the salutation. Eg: Mr or Mrs.

Max length: 10
websiteUrlstring

Website URL if any.

NewCustomerResponse#

Customer Creation Response

View this schema in the original docs

Customer creation response including assigned references and payment option details.

FieldTypeDescription
abnstring

Australian Business Number.

additionalPaymentAccountProxiesarray of object (AccountProxy)

Additional PaymentAccountProxies. Proxy is generated using the Payments Plugin for Bank and Credit/Debit Card or /cardProxies api for Credit/Debit Card.

additionalReferencesarray of object (AdditionalReference)

Additional references if you have more than one references to manage. Eg: Parents paying childcare fee for more than one kid.

addressobject (CustomerAddress)

Customer address.

bPayDetailobject (BPayDetail)

BPAY details.

bankAccountobject (BankAccount)

Customer bank account details.

billerCodestring

If BPAY payment method is enabled, biller code will be returned.

billerReferencestring

If BPAY payment method is enabled, biller reference can be used by the customer to make BPAY payment.

cardobject (CreditCardProxy)

Customer credit / debit card proxy. (Token is generated using the /tokens api.

customerCompanyNamestring

Company name if this is company account.

customerLoginstring

Customer login.

customerReference requiredstring

Customer / Parent Reference. Should be unique and provided by the merchant. If you are paying the merchant by BPAY, this should be your BPAY Reference.

dateOfBirth requiredstring <date-time>

Date of birth. Customer must be atleast 16 years old.

email requiredstring

Email address.

enableBPayOptionboolean

Allows to enable BPAY option for the customer / parent.

faxstring

Fax number.

firstName requiredstring

First name.

Max length: 30
isBPayCrnPassedboolean

Send this as true when customer reference passed if CRN. Default is set to false if not passed.

lastName requiredstring

Last name.

Max length: 30
merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

merchantStaffMemberstring

Merchant Staff member assigned to this customer / parent.

mobile requiredstring

Mobile number.

notificationMethod requiredinteger <int32>

Notification method used to indicate the communication channel when payment successful or failed.

Allowed values: 0 None, 1 Sms, 2 Email
passwordGenerationUrlstring

Password generation for customer login.

payIdDetailobject (PayIdDetail)

PayID details.

paymentAccountProxyobject (AccountProxy)

This replaces the BankAccount and Card properties. Proxy is generated using the Payments Plugin for Bank and Credit/Debit Card or /cardProxies api for Credit/Debit Card.

paymentAmount requirednumber <double>

Payment amount. Set the default amount for auto payments or amount for one-off payment.

paymentEndDatestring <date-time>

Payment end date.

paymentFrequency requiredinteger <int32>

Payment frequency. Applicable to auto pay, email reminder and sms reminder.

Allowed values: 32 Weekly, 33 Fortnightly, 38 Monthly, 34 Quarterly, 35 HalfYearly, 36 Yearly, 37 FourWeeks
paymentOption requiredinteger <int32>

Payment option. Use the correct payment option which is supported by the merchant.

Allowed values: 22 AutoPay, 23 EmailReminder, 24 SmsReminder, 25 FixedTerm, 26 BatchPay, 27 ScheduledPay, 28 OneOff, 148 PayID, 149 BPAY
paymentStartDate requiredstring <date-time>

Payment start date.

phonestring

Phone number.

promotionCodestring

Promotion code if any.

sendWelcomeEmailboolean

Sends welcome email if set to true. Default is set to true if not passed.

titlestring

Provide the salutation. Eg: Mr or Mrs.

Max length: 10
websiteUrlstring

Website URL if any.

PayIdDetail#

PayID Detail

View this schema in the original docs

PayID details including PayID value, name, and reference.

FieldTypeDescription
payIdstring

PayID.

payIdNamestring

PayID Name.

referencestring

Reference.

PaymentAccountProxyResponse#

Payment Account Reference Response

View this schema in the original docs

Payment account proxy response representing the different response structures for card, bank account, PayID, and PayTo details.

FieldTypeDescription
accountNamestring

Account name (Bank/PayTo accounts).

accountNumberstring

Account number (Bank/PayTo accounts).

accountTypestring

Type of payment account.

bsbstring

BSB code (Bank/PayTo accounts).

cardExpirystring

Card expiry date (Card accounts only).

cardHolderNamestring

Card holder name (Card accounts only).

cardNumberstring

Masked card number (Card accounts only).

cardTypestring

Card type (Card accounts only).

payIdstring

PayId identifier (PayId accounts only).

payIdNamestring

PayId display name (PayId accounts only).

payToStatusstring

PayTo status (PayTo accounts only).

processor3DSPayloadstring

3DS payload (Card accounts only).

processorNamestring

Processor name (Card accounts only).

processorTokenstring

Processor token (Card accounts only).

statusDescriptionstring

Status description (PayTo accounts only).

uIdstring

Unique identifier (PayTo accounts only).

PaymentAdditionalData#

Payment Additional Data

View this schema in the original docs

Acquirer and issuer references for a card transaction: the authorisation code, the retrieval reference number and the system trace audit number.

FieldTypeDescription
authCodestring

Authorisation code returned by the card issuer.

rrnstring

Retrieval reference number assigned by the acquirer, used when tracing the transaction with them.

stanstring

System trace audit number identifying the transaction on the acquirer's network.

PaymentCard#

Payment Card

View this schema in the original docs

Card details for direct card payment including cardholder name, card number, expiry, and CVV.

FieldTypeDescription
cardHolder requiredstring

Name of the cardholder.

cardNumber requiredstring

Card number.

cvv requiredstring

Card verification value.

expiryMonth requiredstring

Card expiry month.

expiryYear requiredstring

Card expiry year.

Min length: 4
Max length: 4

PaymentRequest#

Payment Request

View this schema in the original docs

Payment request including customer reference or card proxy, amount, and optional 3D Secure details.

FieldTypeDescription
abnstring

Customer Australian Business Number.

additionalReferencestring

Additional reference. This field is returned in reconciliation reports.

cardobject (PaymentCard)

PAN detail.

cardProxystring

Card Proxy (Conditional). Use only if you want to pay using card proxy.

companyNamestring

Customer company name.

contactNumberstring

Customer contact number.

customerEmailstring

The customer email to which an invoice is sent to.

customerNamestring

Customer name.

customerReference requiredstring

Customer reference. Required only when payment account proxy or card proxy is not provided.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant.

Max length: 50
oneOffPaymentReferencestring

One Off Payment reference. This field is returned in reconciliation reports.

overrideFeePayer requiredinteger <int32>

Override Fee Payer. This field is to determine who is paying transaction fee. 0 Use Set Profile - default 1 Merchant Pays Fee (if allowed) 2 Customer Pays Fee (if allowed).

Allowed values: 0 Default, 1 Merchant, 2 Customer
paymentAccountProxyobject (AccountProxy)

Card or bank account proxy. Proxy is generated using the Payments Plugin for bank account and card or /cardProxies API for card.

paymentAmount requirednumber <double>

Payment amount.

sendPaymentConfirmationboolean

Flag to send the customer invoice.

threeDSecureDataobject (ThreeDSecureData)

Optional. 3DSecure details.

PaymentResponse#

Payment Result

View this schema in the original docs

Payment response including status, amounts, fees, and settlement details. Fields marked as conditional are only returned under certain conditions.

FieldTypeDescription
abnstring

ABN for the transaction.

accountOrCardNostring

Payment Card No.

additionalDataobject (PaymentAdditionalData)

Acquirer and issuer references for the transaction, returned for card payments.

additionalReferencestring

Additional reference. (Conditional).

baseAmountnumber <double>

Base amount of the payment is done.

cardCategorystring

Card category.

cardTypeStringstring

Card scheme the payment was processed on, as text. For example: MasterCard.

cardTypeValueinteger <int32>

Card scheme the payment was processed on, as its numeric code. Pairs with cardTypeString.

chargeBackedOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

chargeBackedReasonstring

Reason. (Conditional).

chargeBackedTransactionReferencestring

ChargedBackedTransactionReference : If a charge transaction is charged back then this is transaction reference of charged back transaction.(Conditional).

chargebacksarray of object (SubPayment)

All chargebacks processed on this payment.

customerCodestring

Unique customer code if the customer exists in the system.

customerFeenumber <double>

Fee charged on customer card.

customerNamestring

Customer who paid the payment.

customerReferencestring

Reference of the Customer who paid the payment.

failureCodestring

Failure code if the payment failed. Please refer: http://tinyurl.com/y6lkmpsv for more details. (Conditional).

failureReasonstring

Failure reason if the payment failed. (Conditional).

fundsToMerchantnumber <double>

Funds to Merchant.

isPaymentChargeBackedboolean

Payment Charge Backed.

isPaymentRecalledboolean

Payment recalled.

isPaymentRefundedboolean

Payment refunded.

isPaymentRetryScheduledboolean

Whether a retry payment is pending. Based on Program/Merchant settings, a failed payment will be retried.

isPaymentSettledToMerchantboolean

Whether the payment has been settled to the merchant.

merchantCodestring

Merchant code.

merchantFeenumber <double>

Fee charged on Merchant.

merchantNamestring

Merchant trading name.

merchantSettlementReferencestring

Reference for the merchant settlement this payment was paid out in. Empty until the payment settles.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant. (Conditional).

oneOffPaymentReferencestring

One Off Payment Reference.

originalTransactionReferencestring

OriginalTransactionReference : For a Recall / Refund transaction, it is the transaction reference of original transaction.

paymentAccountstring

Payment Account by which the payment is done.

paymentAmountnumber <double>

Total payment amount including the fees.

paymentCardstring

Payment card used.

paymentReferencestring

Unique Payment Reference for the payment done.

paymentSourceDisplaystring

Payment source of transaction.

paymentStatusstring

Current Status of the payment. Expected Statuses

  1. Pending This Payment is waiting be to processed
  2. Error - This Payment has encountered an Error
  3. Submitted - This Payment was successfully submitted
  4. Successful - This Payment was successful
  5. Successful(Recalled) - This Payment was Recalled
  6. Successful(Refunded) - This Payment was Refunded
  7. Successful (Refunded) (Recalled) - This Payment was Refunded and Recalled
  8. Failed - This Payment has Failed
  9. Cancelled - This Payment was Cancelled
  10. Suppressed - This Payment was Suppressed
  11. InProgress - This Payment is being processed.
preauthExpiryAtstring <date-time>

Preauth expiry in minutes.

processingDatestring <date-time>

Processing Date for the payment. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

processorReferencestring

Processor reference for the payment done.

recalledOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

recalledReasonstring

Reason. (Conditional).

recalledTransactionReferencestring

RecalledTransactionReference : If a charge transaction is recalled then this is transaction reference of recall transaction.(Conditional).

recallsarray of object (SubPayment)

All recalls processed on this payment.

redirectUrlstring

3DSecure redirect url to complete the 3DSecure challege if required by the scheme.

refundedOnstring <date-time>

Refunded date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

refundedReasonstring

Reason. (Conditional).

refundedTransactionReferencestring

RefundedTransactionReference : If a charge transaction is refunded then this is transaction reference of refunded transaction.(Conditional).

refundsarray of object (SubPayment)

All refunds processed on this payment.

remainingPreauthAmountnumber <double>

Remaining preauth amount.

retryPaymentReferencestring

Retry payment reference. (Conditional).

retryScheduledOnstring <date-time>

Retry payment scheduled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

settlementDatestring <date-time>

Settlement Date for the payment. This is a calculated date and may change until the payment been settled. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

settlementFrequencyStringstring

How often the merchant is settled, as text. For example: Monthly.

settlementFrequencyValueinteger <int32>

How often the merchant is settled, as its numeric code. Pairs with settlementFrequencyString.

settlementPostPartialRefundobject (SettlementPayment)

Balance Payment if any is available.

settlementReferencestring

Reference for the settlement this payment was paid out in. Empty until the payment settles.

settlementTypestring

Whether the merchant is settled gross or net of fees. For example: Gross.

sku1string

Stock keeping unit field 1.

sku2string

Stock keeping unit field 2.

subCardTypestring

Sub card type.

subCardTypeStringstring

Card sub-type where the scheme has one, as text. Empty when the scheme has none.

subCardTypeValueinteger <int32>

Card sub-type as its numeric code. Pairs with subCardTypeString.

transactionTypeinteger <int32>

Transaction type numeric code.

Allowed values: 1 Charge, 2 InvoicePayment, 3 Refund, 4 Chargeback, 5 Recall, 6 FixedTermSettlement, 7 SponsorInvoicePayment, 8 MerchantSettlementAdjustmentPayment, 9 Preauthorization, 10 Credit
transactionTypeDisplaystring

Transaction Type. Possible values:

  1. Charge
  2. Invoice
  3. Refund
  4. Chargeback
  5. Recall
  6. Fixed Term Settlement.

PingResponse#

Ping Response

View this schema in the original docs

Ping response including server date time and version information.

FieldTypeDescription
buildVersionstring

Build version.

serverDateTimestring <date-time>

Server Date Time.

timeZoneInfostring

DateTime Time Zone.

versionstring

API version.

PluginCustomization#

Hosted Payment Page Customization

View this schema in the original docs

Visual customization options for the payment plugin.

FieldTypeDescription
customerNameLabelstring

Custom label to override default customer name display text.

customerReferenceLabelstring

Custom label to override default customer reference display text.

hideHeaderboolean

Hide the plugin header. Defaults to false if not provided.

hideMerchantLogoboolean

This will hide the merchant logo if any. Defaults to 'false' if not provided.

paymentAmountLabelstring

Custom label to override default payment amount display text.

titlestring

Plugin Title. Defaults to 'Process Payment' if not provided.

PluginPaymentMethods#

Hosted Payment Methods

View this schema in the original docs

Payment methods enabled for the payment plugin session.

FieldTypeDescription
aliPayPlusboolean

Conditional if mode is set to 0. Show AliPay+ option only if the option is enable for the merchant.Default is false.

applePayboolean

Conditional if mode is set to 0. Show Apple Pay option only if the option is enable for the merchant.Default is false.

bankAccountboolean

Conditional. Required if mode is set to 0 or 2. Show bank account option only if the option is enable for the merchant.Default is false.

cardboolean

Conditional. Required if mode is set to 0 or 2. Show card option only if the option is enable for the merchant.Default is true.

cardTokeniseboolean

Conditional. Required if mode is set to 0 or 2. Show card tokenise option only if the option is enable for the merchant.Default is true.

googlePayboolean

Conditional if mode is set to 0. Show Google Pay option only if the option is enable for the merchant.Default is false.

latitudePayboolean

Conditional if mode is set to 0. Show Latitude Pay option only if the option is enable for the merchant.Default is false.

payIdboolean

Conditional. Required if mode is set to 0 or 2. Show PayID option only if the option is enable for the merchant.Default is false.

payToboolean

Conditional. Required if mode is set to 0 or 2. Show PayTo option only if the option is enable for the merchant.Default is false.

slicePayboolean

Conditional if mode is set to 0. Show Slice Pay option only if the option is enable for the merchant.Default is false.

unionPayboolean

Conditional if mode is set to 0. Show UnionPay option only if the option is enable for the merchant.Default is false.

weChatboolean

Conditional if mode is set to 0. Show WeChat Pay option only if the option is enable for the merchant.Default is false.

PreauthRequest#

Preauthorization Request

View this schema in the original docs

Preauthorization request including customer reference, amount, and optional card or proxy details.

FieldTypeDescription
abnstring

Customer Australian Business Number.

additionalReferencestring

Additional reference. This field is returned in reconciliation reports.

cardobject (PaymentCard)

PAN detail.

cardProxystring

Card Proxy (Conditional). Use only if you want to pay using card proxy.

companyNamestring

Customer company name.

contactNumberstring

Customer contact number.

customerEmailstring

The customer email to which an invoice is sent to.

customerNamestring

Customer name.

customerReference requiredstring

Customer reference. Required only when payment account proxy or card proxy is not provided.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant.

Max length: 50
oneOffPaymentReferencestring

One Off Payment reference. This field is returned in reconciliation reports.

overrideFeePayerinteger <int32>

Override Fee Payer. This field is to determine who is paying transaction fee. 0 Use Set Profile - default 1 Merchant Pays Fee (if allowed) 2 Customer Pays Fee (if allowed).

Allowed values: 0 Default, 1 Merchant, 2 Customer
paymentAccountProxyobject (AccountProxy)

Card or bank account proxy. Proxy is generated using the Payments Plugin for bank account and card or /cardProxies API for card.

preauthAmount requirednumber <double>

Preauth amount.

threeDSecureDataobject (ThreeDSecureData)

Optional. 3DSecure details.

PreauthResponse#

Preauthorization Result

View this schema in the original docs

Preauthorization response including status, amounts, fees, and settlement details. Fields marked as conditional are only returned under certain conditions.

FieldTypeDescription
abnstring

ABN for the transaction.

accountOrCardNostring

Payment Card No.

additionalReferencestring

Additional reference. (Conditional).

baseAmountnumber <double>

Base amount of the payment is done.

cardCategorystring

Card category.

chargeBackedOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

chargeBackedReasonstring

Reason. (Conditional).

chargeBackedTransactionReferencestring

ChargedBackedTransactionReference : If a charge transaction is charged back then this is transaction reference of charged back transaction.(Conditional).

customerFeenumber <double>

Fee charged on customer card.

customerNamestring

Customer who paid the payment.

customerReferencestring

Reference of the Customer who paid the payment.

failureCodestring

Failure code if the payment failed. Please refer: http://tinyurl.com/y6lkmpsv for more details. (Conditional).

failureReasonstring

Failure reason if the payment failed. (Conditional).

fundsToMerchantnumber <double>

Funds to Merchant.

isPaymentChargeBackedboolean

Payment Charge Backed.

isPaymentRecalledboolean

Payment recalled.

isPaymentRefundedboolean

Payment refunded.

isPaymentRetryScheduledboolean

Whether a retry payment is pending. Based on Program/Merchant settings, a failed payment will be retried.

isPaymentSettledToMerchantboolean

Whether the payment has been settled to the merchant.

merchantCodestring

Merchant code.

merchantFeenumber <double>

Fee charged on Merchant.

merchantNamestring

Merchant trading name.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant. (Conditional).

oneOffPaymentReferencestring

One Off Payment Reference.

originalTransactionReferencestring

OriginalTransactionReference : For a Recall / Refund transaction, it is the transaction reference of original transaction.

paymentAccountstring

Payment Account by which the payment is done.

paymentCardstring

Payment card used.

paymentSourceDisplaystring

Payment source of transaction.

preauthAmountnumber <double>

Total payment amount including the fees.

preauthExpiryAtstring <date-time>

Preauth Expires at.

preauthReferencestring

Unique Payment Reference for the payment done.

preauthStatusstring

Current Status of the payment. Expected Statuses

  1. Pending This Payment is waiting be to processed
  2. Error - This Payment has encountered an Error
  3. Submitted - This Payment was successfully submitted
  4. Successful - This Payment was successful
  5. Successful(Recalled) - This Payment was Recalled
  6. Successful(Refunded) - This Payment was Refunded
  7. Successful (Refunded) (Recalled) - This Payment was Refunded and Recalled
  8. Failed - This Payment has Failed
  9. Cancelled - This Payment was Cancelled
  10. Suppressed - This Payment was Suppressed
  11. InProgress - This Payment is being processed.
processingDatestring <date-time>

Processing Date for the payment. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

processorReferencestring

Processor reference for the payment done.

recalledOnstring <date-time>

Recalled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

recalledReasonstring

Reason. (Conditional).

recalledTransactionReferencestring

RecalledTransactionReference : If a charge transaction is recalled then this is transaction reference of recall transaction.(Conditional).

redirectUrlstring

3DSecure redirect url to complete the 3DSecure challege if required by the scheme.

refundedOnstring <date-time>

Refunded date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

refundedReasonstring

Reason. (Conditional).

refundedTransactionReferencestring

RefundedTransactionReference : If a charge transaction is refunded then this is transaction reference of refunded transaction.(Conditional).

remainingPreauthAmountnumber <double>

Remaining preauth amount after one or more captures.

retryPaymentReferencestring

Retry payment reference. (Conditional).

retryScheduledOnstring <date-time>

Retry payment scheduled date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

settlementDatestring <date-time>

Settlement Date for the payment. This is a calculated date and may change until the payment been settled. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

transactionTypeinteger <int32>

Transaction type numeric code.

Allowed values: 1 Charge, 2 InvoicePayment, 3 Refund, 4 Chargeback, 5 Recall, 6 FixedTermSettlement, 7 SponsorInvoicePayment, 8 MerchantSettlementAdjustmentPayment, 9 Preauthorization, 10 Credit
transactionTypeDisplaystring

Transaction Type. Possible values:

  1. Charge
  2. Invoice
  3. Refund
  4. Chargeback
  5. Recall
  6. Fixed Term Settlement.

PreconditionFailedResponse#

Precondition Failed Response

View this schema in the original docs

Error response returned when a precondition check fails.

FieldTypeDescription
errorCodestring

Error code.

Read only
errorMessagestring

Error message.

Read only

Pricing#

View this schema in the original docs

Applicable fee for the card used.

FieldTypeDescription
customerFeenumber <double>

Fee paid by the customer.

merchantFeenumber <double>

Fee paid by the merchant.

paymentAmountnumber <double>

Payment amount i.e. base amount excluding any fee.

processingAmountnumber <double>

Total amount charged to the card, including any fee.

PricingResponse#

Pricing Response

View this schema in the original docs

Pricing response including applicable fees.

FieldTypeDescription
pricingobject (Pricing)

Applicable pricing based on provided card and payment details.

RefundRequest#

Refund Request

View this schema in the original docs

Refund request including refund value and optional merchant unique ID.

FieldTypeDescription
refundAmountnumber <double>

Refund Amount (Conditional). Amount is required when Refund Value is 'Partial' (2).

refundRequestReason requiredstring

Reason for the refund request.

Max length: 50
refundRequestUniqueIdstring

Refund Request Unique Id.

Max length: 50
refundValue requiredinteger <int32>

Refund value - Defaults to 'BaseAmount' (1) if not passed.

Allowed values: 1 Base, 2 Partial, 3 Full

RefundResponse#

Refund Result

View this schema in the original docs

Refund request response including status and refund reference.

FieldTypeDescription
additionalReferencestring

Additional Reference.

cancelReasonstring

Reason for the refund request cancellation. This field will returned only if the status is 'Canceled'.

merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

paymentReferencestring

Payment Reference.

refundAmountnumber <double>

Refund Amount.

refundRequestUniqueIdstring

Refund Request Unique Id.

refundValueinteger <int32>

Refund value.

Allowed values: 1 Base, 2 Partial, 3 Full
refundValueStringstring

Refund value (Human readable).

Read only
rejectReasonstring

Reason for the refund request rejected. This field will returned only if the status is 'Rejected'.

requestReasonstring

Reason for the refund request.

requestStatusinteger <int32>

Refund request status.

requestStatusStringstring

Refund request status (Human readable).

RequestPayRequest#

Request Pay Batch Request

View this schema in the original docs

Container for request-to-pay entries. Root element containing a collection of RequestPayEntry.

FieldTypeDescription
merchantUniqueRequestBatchIdstring

Unique batch id provided by the merchant.

Max length: 50
requestPaymentEntries requiredarray of object (RequestPayRequestRecord)

Collection of RequestPayment entry.

RequestPayRequestRecord#

Request Pay Entry Request

View this schema in the original docs

Individual request-to-pay entry submitted by the client.

FieldTypeDescription
customerReference requiredstring

Customer reference in individual payment request entry.

emailstring

Customer email in individual payment request entry. Use comma or semicolon to provide more than one email address for a customer.

firstName requiredstring

First name of the customer.

lastNamestring

Last name of the customer.

merchantUniquePaymentIdstring

Unique payment id provided by the merchant. Can be used when Proxy payment is performed. (Optional).

Max length: 50
mobilestring

Customer mobile in individual payment request entry.

Pattern: ^(04[0-9]{8}|02[0-9]{7,8})$
paymentAmount requirednumber <double>

Payment amount in individual payment request entry.

Minimum: 0.01
Maximum: 1.7976931348623157e+308

RequestPayResponse#

Request Pay Response

View this schema in the original docs

Request-to-pay response returned after submission.

FieldTypeDescription
merchantCodestring

Merchant code.

merchantNamestring

Merchant trading name.

merchantUniqueRequestBatchIdstring

Unique request pay batch id provided by the merchant.

requestPayIdinteger <int32>

Id of RequestPay for call to Uploading.

warningMessagesstring

WarningMessages after processing batch.

SessionRequest#

Hosted Payment Session Request

View this schema in the original docs

Session creation request including payment mode, version, and customization options.

FieldTypeDescription
additionalReferencestring

Additional reference for reconciliation reports.

allowSaveCardInformationboolean

Optional. This will allow to save the card information. Defaults to 'false' if not provided. This option will only work if 'Enable Plugin Pay & Save Card' option is enabled at program or merchant level.

allowedPaymentMethodsobject (PluginPaymentMethods)

Allowed Payment methods.

apiKeystring

Set by the plugin. Leave it out of your request.

businessNumberstring

Optional. Business Number (For example: ABN). Used for reward programs if the Program is enabled to provide reward points.

callbackUrlstring

Optional. The URL will be called with HTTP POST method to submit the result. Refer to Payment Plugin documentation for payment response payload.

companyNamestring

Optional. Customer company name.

contactNumberstring

Optional. Contact number.

customerEmailstring

Required. Email address to which invoice will be emailed if the merchant is configured. It is mandatory from V4.

customerNamestring

Conditional. Required if mode is set to 0 or 2.

customerReferencestring

Conditional. Required if mode is set to 0 or 2.

customizationobject (PluginCustomization)

Optional. Fields to customize the plugin fields.

departureDatestring <date-time>

Conditional. DepartureDate is required for Slice Pay. Provide date in UTC ISO 8601 format as departureDate. format: yyyy-MM-dd.

displayMode requiredinteger <int32>

Optional. Must be one of the following two values 0 - Default(Modal) 1 - Redirect Url. Defaults to 0 if not provided. *Google Pay and Apple Pay works if Modal or Redirect Url with iframe is used.

Allowed values: 0 Default, 1 RedirectUrl
endpointUrl requiredstring

Endpoint url of the plugin. Just provide the base url. For example: https://pay.travelpay.com.au.

fingerprintstring

Set by the plugin. Leave it out of your request.

hideTermsAndConditionsboolean

Optional. This will hide the Terms and Conditions. Defaults to 'false' if not provided.

isJsPlugin requiredboolean

Is JS Plugin. Default is true. Set to false if you want to use without iframe.

merchantCode requiredstring

Merchant code. Make sure the merchant code is related to the API credentials.

merchantUniquePaymentId requiredstring

Required. Payment id provided by the merchant. Must be unique and can not be reused if a transaction is processed using this id. This field also work as IdempotencyKey for request for successful requests.

mode requiredinteger <int32>

Optional. Must be one of the following three values 0 - Make Payment 1 - Tokenise 2 - Custom Payment 3 - Preauthorization. Defaults to 0 if not provided.

Allowed values: 0 DefaultPayment, 1 Tokenise, 2 CustomPayment, 3 Preauth
overrideFeePayerinteger <int32>

Optional. Must be one of the following three values 0 - Default(based on pricing profile) 1 - Merchant(Merchant will pay the fee regardless of pricing profile setting) 2 - Customer(Customer will pay the fee regardless of pricing profile setting) Defaults to 0 if not provided.

Allowed values: 0 Default, 1 Merchant, 2 Customer
paymentAccountProxystring

Conditional. Use this parameter to make a payment using a payment account proxy which is generated using mode '1'.

paymentAmountnumber <double>

Conditional. Required if mode is set to 0 or 2. Returns applicable fee if provided with mode 1.

redirectOnErrorboolean

All errors/exceptions will be return back the caller using the redirect url.

redirectUrl requiredstring

Required. The page will redirect to this URL with the result in the query string. Refer the return parameters section below.

sendConfirmationEmailToCustomerboolean

Optional. This will send confirmation email to customer. Defaults to 'false' if not provided.

sendConfirmationEmailToMerchantboolean

Optional. This will send confirmation email to merchant. Defaults to 'false' if not provided.

showFailedPaymentFeeOnTokenisingboolean

Optional if mode is set to 1. Show the applicable failed payment fees for the token at the end of the process.Default is false.

showFeeOnTokenisingboolean

Required if mode is set to 1. Show the applicable fees for the token at the end of the process.Default is false.

sku1string

Optional. Stock Keeping Unit - Optional text fields, allowing up to 50 alphanumeric characters. If the value exceeds 50 characters, only the first 50 characters will be retained and the rest discarded.

sku2string

Optional Stock Keeping Unit - Optional text fields, allowing up to 50 alphanumeric characters. If the value exceeds 50 characters, only the first 50 characters will be retained and the rest discarded.

timestamp requiredstring <date-time>

Required. Timestamp is required from v4. Provide current datetime in UTC ISO 8601 format as timestamp. format: yyyy-MM-ddTHH:mm:ss.

userMode requiredinteger <int32>

Optional. Must be one of the following two values 0 - Customer Facing - default (cardholder must enter CCV or 3DS) 1 - Merchant Facing(for merchant use only - no CCV or 3DS) - if supported by merchant options.

Allowed values: 0 Customer, 1 Merchant
version requiredinteger <int32>

Required. Plugin version. Always use the latest.

Allowed values: 1 v1, 2 v2, 3 v3, 4 v4, 5 v5

SessionResponse#

Hosted Payment Session Response

View this schema in the original docs

Session response containing the secure token, expiry, and payment plugin endpoint URL.

FieldTypeDescription
endpointUrlstring

Payment plugin endpoint url.

expiresAtstring <date-time>

Expiry of the secure token.

secureTokenstring

Token used to initialize the payment plugin.

SettlementPayment#

Settlement Payment

View this schema in the original docs

Settlement payment details including processing date, status, settlement date, and funds to merchant.

FieldTypeDescription
fundsToMerchantnumber <double>

Amount to be settled to the merchant.

merchantSettlementDatestring <date-time>

Date payment will be settled to the merchant.

processedOnstring <date-time>

Processing date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST.

statusstring

Current Status of the balance payment. Expected Statuses

  1. Pending
  2. Error
  3. Submitted
  4. Successful
  5. Failed
  6. Cancelled
  7. Suppressed
  8. InProgress.
transactionReferencestring

TransactionReference.

SubPayment#

Sub Payment

View this schema in the original docs

Refund or recall transaction details including date, fees, amount, reason, and status.

FieldTypeDescription
customerFeenumber <double>

Fee charged on Customer.

merchantFeenumber <double>

Fee charged on Merchant.

paymentAmountnumber <double>

Total payment amount including the fees.

processedOnstring <date-time>

Refund/Recall date. Date Format: yyyy-MM-ddTHH:mm:ss, TimeZone: AEST (Conditional).

reasonstring

Reason. (Conditional).

statusstring

Current Status of the refund/recall. Expected Statuses

  1. Pending This refund/recall is waiting be to processed
  2. Error - This refund/recall has encountered an Error
  3. Submitted - This refund/recall was successfully submitted
  4. Successful - This refund/recall was successful
  5. Failed - This refund/recall has Failed
  6. Cancelled - This refund/recall was Cancelled
  7. Suppressed - This refund/recall was Suppressed
  8. InProgress - This refund/recall is being processed.
transactionReferencestring

TransactionReference : If a charge transaction is refunded/recalled then this is transaction reference of that transaction.(Conditional).

ThreeDSecureBrowserData#

3D Secure Browser Data

Cardholder browser data collected for 3D Secure authentication.

FieldTypeDescription
acceptHeaderstring

Exact content of the HTTP accept headers as sent to the 3DS Requestor from the Cardholder's browser.

colorDepthinteger <int32>

Value representing the bit depth of the colour palette for displaying images, in bits per pixel. Obtained from Cardholder browser using the screen.colorDepth property. Possible values: 1, 4, 8, 15, 16, 24, 32, 48.

ipAddressstring

IP address of the browser as returned by the HTTP headers to the 3DS Requestor.

languagestring

Value representing the browser language as defined in IETF BCP47. The value is limited to 1-8 characters. Value is returned from navigator.language property.

screenHeightinteger <int32>

Total height of the Cardholder's screen in pixels. Value is returned from the screen.height property.

screenWidthinteger <int32>

Total width of the Cardholder's screen in pixels. Value is returned from the screen.width property.

timezonestring

Time difference between UTC time and the Cardholder browser local time, in minutes. The field is limited to 1-5 characters where the value is returned from the getTimezoneOffset() method.

userAgentstring

Exact content of the HTTP user-agent header. The field is limited to maximum 2048 characters. Obtained from Cardholder browser using the navigator.userAgent property.

ThreeDSecureData#

3D Secure Data

3D Secure authentication configuration including browser data, callback URL, and redirect URL.

FieldTypeDescription
browserDataobject (ThreeDSecureBrowserData)

Cardholder's browser data. Mandatory if UseThreeDSecure is true.

callbackUrlstring

Endpoint to receive status notifications once 3DSecure is completed. Use [uniqueId] (case sensitive) in URL to differentiate different payments and 3DS statuses For example: CallbackUrl https://www.yourdomain.com.au/3dsecure/[uniqueId] will be translated to https://www.yourdomain.com.au/callbacks/123456 assuming uniqueId is 123456.

redirectUrlstring

Redirect URL used to redirect once the 3DSecure process is completed. Use [uniqueId], [status] (case sensitive) in URL to differentiate different payments and 3DS statuses For example: RedirectUrl https://www.yourdomain.com.au/3dsecure/[uniqueId]?status=[status] will be translated to https://www.yourdomain.com.au/3dsecure/123456?status=Success assuming uniqueId is 123456 Possible 3DSecure statuses: Success, Failed, Cancelled.

useThreeDSecureboolean

Will trigger 3DSecure process if enabled or valid for the card.

TokenResponse#

Card Proxy Token Response

View this schema in the original docs

Card proxy token response including card proxy value, obfuscated card number, expiry, card type, and status.

FieldTypeDescription
cardNumberstring

Obfuscated card number.

cardProxystring

Card proxy that can be used to process payment.

cardTypestring

Card type (Visa, MasterCard etc.).

expirystring

Card expiry in MM/yy format.

statusstring

Proxy status.

Read only

ValueProviderResult#

Validation Result

View this schema in the original docs

Represents the result of binding a value (such as from a form post or query string) to an action-method argument property, or to the argument itself.

FieldTypeDescription
attemptedValuestring

Gets or sets the raw value that is converted to a string for display.

Read only
culturestring

Gets or sets the culture.

Read only
rawValueobject

Gets or set the raw value that is supplied by the value provider.

Read only

VoidCardResponse#

Preauthorization Void Result

View this schema in the original docs

Void preauthorization response including status and transaction details. Fields marked as conditional are only returned under certain conditions.

FieldTypeDescription
failureCodestring

Failure code if the payment failed. Please refer: http://tinyurl.com/y6lkmpsv for more details. (Conditional).

failureReasonstring

Failure reason if the payment failed. (Conditional).

preauthReferencestring

Unique Payment Reference for the payment done.

statusstring

Current Status of the void. Expected Statuses

  1. Pending This Payment is waiting be to processed
  2. Error - This Payment has encountered an Error
  3. Submitted - This Payment was successfully submitted
  4. Successful - This Payment was successful
  5. Successful(Recalled) - This Payment was Recalled
  6. Successful(Refunded) - This Payment was Refunded
  7. Successful (Refunded) (Recalled) - This Payment was Refunded and Recalled
  8. Failed - This Payment has Failed
  9. Cancelled - This Payment was Cancelled
  10. Suppressed - This Payment was Suppressed
  11. InProgress - This Payment is being processed.
Need help with your integration?Talk to the Zenith Integrations Team.
Email integrationsTalk to us