Developers

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

Customer APIs

Self-service REST API for merchant customers, using a Bearer token issued by the customer through their own portal account (distinct from the Merchant API's ZenPay-issued Basic/Api-Key credentials).

Run in Postman

Download the OpenAPI spec (openapi-v3.json)

Servers#

Customer APIs — choose an environment prefix and brand domain

https://{subdomain}.{baseDomain}

VariableDefaultValuesDescription
subdomainapi.sandboxapi, apiuat, api.sandboxEnvironment prefix
baseDomaintravelpay.com.autravelpay.com.au, b2bpay.com.au, childcareeasypay.com.au, schooleasypay.com.au, rentalrewards.com.au, zenpay.com.au, thoroughbredpayments.com.auBrand domain

Authentication#

  • HTTP: Bearer Auth

BearerAuth

Security scheme typehttp
HTTP authorization schemebearer

Ping method to get the server date time and version information#

GET/v3/diagnostics/ping

View this endpoint in the original docs

Authentication: BearerAuth

Responses

200 Self check endpoing

application/json · object (PingResponse)

Example: server-diagnostics

Server diagnostics

JSON
{
  "serverDateTime": "2026-09-19T18:10:23.2409872",
  "version": "v3.0",
  "timeZoneInfo": "Australian Eastern Standard Time",
  "buildVersion": "1.137.1.19365"
}

Example request (cURL, sandbox host)

cURL
curl -X GET 'https://api.sandbox.zenpay.com.au/v3/diagnostics/ping' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'

Get a payment by reference#

GET/v3/{customerCode}/payments/{paymentReference}

View this endpoint in the original docs

Returns the payment for the specified customer and payment reference.

Authentication: BearerAuth

Parameters

NameInTypeDescription
customerCode requiredpathstring
paymentReference requiredpathstring

Responses

200 OK

application/json · object

Example: payment-read-by-reference

Payment read by reference

JSON
{
  "paymentReference": "247086",
  "uniquePaymentId": "v3-capture-1789805452955",
  "customerCode": "TB18780151",
  "customerName": "Ian Menethil",
  "customerReference": "9935442a-6930-428d-b6eb-fa969522e49a",
  "baseAmount": 1,
  "customerFee": 0,
  "fundsToMerchant": 1,
  "processedAmount": 1,
  "paymentAccount": "*****678",
  "paymentCard": "Bank_Account",
  "cardType": 4,
  "cardTypeString": "Bank Account",
  "paymentCardString": "Bank Account",
  "processingDate": "2026-09-19T18:10:56",
  "paymentStatus": 3,
  "paymentStatusString": "Successful",
  "settlementDate": "2026-09-23",
  "paymentMethod": 1,
  "paymentMethodString": "Bank Account",
  "processorReference": "PR.2420u",
  "isPaymentSettledToMerchant": false,
  "merchantName": "Menethil",
  "merchantCode": "1337",
  "isPaymentRetryScheduled": false,
  "processorRetryCount": 0,
  "isPaymentRecalled": false,
  "isPaymentRefunded": false,
  "cardCategory": "Bank Account",
  "paymentType": 1,
  "paymentTypeString": "Charge",
  "isPaymentChargeBacked": false,
  "paymentSource": 58,
  "paymentSourceString": "Cust.Api Payment",
  "hasPendingRefundRequest": false,
  "isPartialRefund": false,
  "refundedAmount": 0,
  "refundedCustomerFeeAmount": 0
}

Example request (cURL, sandbox host)

cURL
curl -X GET 'https://api.sandbox.zenpay.com.au/v3/{customerCode}/payments/{paymentReference}' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'

Get a payment by unique ID#

GET/v3/{customerCode}/uniquePaymentId/{uniquePaymentId}

View this endpoint in the original docs

Returns the payment for the specified customer and unique payment ID.

Authentication: BearerAuth

Parameters

NameInTypeDescription
customerCode requiredpathstring
uniquePaymentId requiredpathstring

Responses

200 OK

application/json · object

Example: payment-read-by-unique-id

Payment read by unique id

JSON
{
  "paymentReference": "247086",
  "uniquePaymentId": "v3-capture-1789805452955",
  "customerCode": "TB18780151",
  "customerName": "Ian Menethil",
  "customerReference": "9935442a-6930-428d-b6eb-fa969522e49a",
  "baseAmount": 1,
  "customerFee": 0,
  "fundsToMerchant": 1,
  "processedAmount": 1,
  "paymentAccount": "*****678",
  "paymentCard": "Bank_Account",
  "cardType": 4,
  "cardTypeString": "Bank Account",
  "paymentCardString": "Bank Account",
  "processingDate": "2026-09-19T18:10:56",
  "paymentStatus": 3,
  "paymentStatusString": "Successful",
  "settlementDate": "2026-09-23",
  "paymentMethod": 1,
  "paymentMethodString": "Bank Account",
  "processorReference": "PR.2420u",
  "isPaymentSettledToMerchant": false,
  "merchantName": "Menethil",
  "merchantCode": "1337",
  "isPaymentRetryScheduled": false,
  "processorRetryCount": 0,
  "isPaymentRecalled": false,
  "isPaymentRefunded": false,
  "cardCategory": "Bank Account",
  "paymentType": 1,
  "paymentTypeString": "Charge",
  "isPaymentChargeBacked": false,
  "paymentSource": 58,
  "paymentSourceString": "Cust.Api Payment",
  "hasPendingRefundRequest": false,
  "isPartialRefund": false,
  "refundedAmount": 0,
  "refundedCustomerFeeAmount": 0
}

Example request (cURL, sandbox host)

cURL
curl -X GET 'https://api.sandbox.zenpay.com.au/v3/{customerCode}/uniquePaymentId/{uniquePaymentId}' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'

Get all the payments#

GET/v3/{customerCode}/payments

View this endpoint in the original docs

Authentication: BearerAuth

Parameters

NameInTypeDescription
customerCode requiredpathstring

Customer code

uniqueCustomerIdquerystring

Unique Customer ID. This can be configured at the customer portal.

paymentReferencequerystring

Payment reference

customerReferencequerystring

Customer reference

uniquePaymentIdquerystring

Unique payment id.

fromProcessedDatequerystring <date-time>

From date

toProcessedDatequerystring <date-time>

To date

pageOffsetqueryinteger <int32>

Record start

Default: 0
pageLimitqueryinteger <int32>

Number of records

Default: 20

Responses

200 OK

application/json · object

Example: payments-listed

Payments listed

JSON
{
  "items": [
    {
      "paymentReference": "221423",
      "customerCode": "TB18780151",
      "customerName": "ian menethil",
      "customerReference": "test6",
      "baseAmount": 6,
      "customerFee": 0,
      "fundsToMerchant": 6,
      "processedAmount": 6,
      "paymentAccount": "*****312",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2026-03-31T16:01:01",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2026-04-02",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1z0he",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0,
      "uniqueCustomerId": "DWYQK6PJCQ8U5EPA"
    },
    {
      "paymentReference": "221422",
      "customerCode": "TB18780151",
      "customerName": "ian menethil",
      "customerReference": "test5",
      "baseAmount": 5,
      "customerFee": 0,
      "fundsToMerchant": 5,
      "processedAmount": 5,
      "paymentAccount": "*****312",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2026-03-31T16:01:01",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2026-04-02",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1z0hd",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0,
      "uniqueCustomerId": "DWYQK6PJCQ8U5EPA"
    },
    {
      "paymentReference": "221421",
      "customerCode": "TB18780151",
      "customerName": "ian menethil",
      "customerReference": "4",
      "baseAmount": 4,
      "customerFee": 0,
      "fundsToMerchant": 4,
      "processedAmount": 4,
      "paymentAccount": "*****312",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2026-03-31T15:51:14",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2026-04-02",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1z0h2",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0,
      "uniqueCustomerId": "DWYQK6PJCQ8U5EPA"
    },
    {
      "paymentReference": "221420",
      "customerCode": "TB18780151",
      "customerName": "ian menethil",
      "customerReference": "x1",
      "baseAmount": 3,
      "customerFee": 0,
      "fundsToMerchant": 3,
      "processedAmount": 3,
      "paymentAccount": "*****312",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2026-03-31T15:51:14",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2026-04-02",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1z0h1",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0,
      "uniqueCustomerId": "DWYQK6PJCQ8U5EPA"
    },
    {
      "paymentReference": "221419",
      "customerCode": "TB18780151",
      "customerName": "ian menethil",
      "customerReference": "test",
      "additionalReference": "test2",
      "baseAmount": 2,
      "customerFee": 0,
      "fundsToMerchant": 2,
      "processedAmount": 2,
      "paymentAccount": "*****312",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2026-03-31T15:46:48",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2026-04-02",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1z0h0",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0,
      "uniqueCustomerId": "DWYQK6PJCQ8U5EPA"
    },
    {
      "paymentReference": "221412",
      "customerCode": "TB18780151",
      "customerName": "ian menethil",
      "customerReference": "testref",
      "additionalReference": "test",
      "baseAmount": 5,
      "customerFee": 0,
      "fundsToMerchant": 5,
      "processedAmount": 5,
      "paymentAccount": "*****312",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2026-03-31T14:21:00",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2026-04-02",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1z0fy",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0,
      "uniqueCustomerId": "DWYQK6PJCQ8U5EPA"
    },
    {
      "paymentReference": "74444",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "hello",
      "baseAmount": 10,
      "customerFee": 0,
      "fundsToMerchant": 10,
      "processedAmount": 10,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-10T07:01:00",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1g1lp",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 39,
      "paymentSourceString": "Api Tokenised Payment",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74443",
      "uniquePaymentId": "b620653e-a68c-4654-8c5a-013786e298ff",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "3831f872-6440-4e68-a2a5-77308e6d3fa6",
      "oneOffPaymentReference": "Drive Account Avon Borders",
      "additionalReference": "SDD synthesizing",
      "baseAmount": 5,
      "customerFee": 0,
      "fundsToMerchant": 5,
      "processedAmount": 5,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-10T07:01:00",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1g1lo",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 58,
      "paymentSourceString": "Cust.Api Payment",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74442",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "q1",
      "baseAmount": 2,
      "customerFee": 0,
      "fundsToMerchant": 2,
      "processedAmount": 2,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-09T23:55:13",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1fzgm",
      "isPaymentSettledToMerchant": false,
      "merchantName": "menethil",
      "merchantCode": "menethil",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74441",
      "customerCode": "TB18780151",
      "customerName": "Elliot Alderson",
      "customerReference": "e2",
      "baseAmount": 2,
      "customerFee": 0,
      "fundsToMerchant": 2,
      "processedAmount": 2,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-09T23:46:13",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1fzgl",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74440",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "asdq1",
      "baseAmount": 11,
      "customerFee": 0,
      "fundsToMerchant": 11,
      "processedAmount": 11,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-09T23:46:13",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1fzgk",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74439",
      "uniquePaymentId": "dbedb999-917a-4e03-9e46-6383128102c4",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "9935442a-6930-428d-b6eb-fa969522e49a",
      "oneOffPaymentReference": "Licensed bypassing salmon Product",
      "additionalReference": "compress Representative Wooden hub SCSI",
      "baseAmount": 5,
      "customerFee": 0,
      "fundsToMerchant": 5,
      "processedAmount": 5,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-09T23:38:40",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1fzgj",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 58,
      "paymentSourceString": "Cust.Api Payment",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74438",
      "customerCode": "TB18780151",
      "customerName": "Elliot Alderson",
      "customerReference": "pay2",
      "baseAmount": 5,
      "customerFee": 0,
      "fundsToMerchant": 5,
      "processedAmount": 5,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-09T23:24:00",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1fzgi",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "74437",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "123asd1",
      "additionalReference": "asd1",
      "baseAmount": 2,
      "customerFee": 0,
      "fundsToMerchant": 2,
      "processedAmount": 2,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-09-09T23:24:00",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-09-12",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1fzgh",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "73335",
      "customerCode": "TB18780151",
      "customerName": "Elliot Alderson",
      "customerReference": "Mr Robot - Bank Ref",
      "baseAmount": 2,
      "customerFee": 0,
      "fundsToMerchant": 2,
      "processedAmount": 2,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-08-20T17:01:25",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-08-22",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1exgm",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "73320",
      "customerCode": "TB18780151",
      "customerName": "Elliot Alderson",
      "customerReference": "Mr Robot - Bank Ref",
      "baseAmount": 2.01,
      "customerFee": 0,
      "fundsToMerchant": 2.01,
      "processedAmount": 2.01,
      "paymentAccount": "*****212",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-08-20T14:49:26",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-08-22",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1exfl",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "73319",
      "customerCode": "TB18780151",
      "customerName": "Elliot Alderson",
      "customerReference": "Mr Robot - Bank Ref",
      "baseAmount": 2.03,
      "customerFee": 0,
      "fundsToMerchant": 2.03,
      "processedAmount": 2.03,
      "paymentAccount": "*****212",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-08-20T14:49:26",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-08-22",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1exfk",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "73318",
      "customerCode": "TB18780151",
      "customerName": "Elliot Alderson",
      "customerReference": "Mr Robot - Bank Ref",
      "baseAmount": 2.03,
      "customerFee": 0,
      "fundsToMerchant": 2.03,
      "processedAmount": 2.03,
      "paymentAccount": "*****678",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-08-20T14:33:06",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-08-22",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1exfd",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Menethil",
      "merchantCode": "1337",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 0,
      "paymentSourceString": "Cust.WebPay",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "69067",
      "uniquePaymentId": "9ff866b7-9655-4a44-98a3-f743922c355b",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "9938f1dc-56a2-4f8d-a51c-c28c88a79e48",
      "oneOffPaymentReference": "forecast",
      "additionalReference": "Id id nobis alias alias voluptas sit est nisi.",
      "baseAmount": 825.06,
      "customerFee": 0,
      "fundsToMerchant": 825.06,
      "processedAmount": 825.06,
      "paymentAccount": "******596",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-06-16T18:26:57",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-06-19",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1cmvm",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Email Test 3",
      "merchantCode": "EmailT3",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 58,
      "paymentSourceString": "Cust.Api Payment",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    },
    {
      "paymentReference": "69066",
      "uniquePaymentId": "3274db14-a2bc-4109-8b75-5b987327cb9f",
      "customerCode": "TB18780151",
      "customerName": "Ian Menethil",
      "customerReference": "8c63c424-1640-4025-aaea-67426ae414e2",
      "oneOffPaymentReference": "definition",
      "additionalReference": "Order 1042 - deposit",
      "baseAmount": 172.86,
      "customerFee": 0,
      "fundsToMerchant": 172.86,
      "processedAmount": 172.86,
      "paymentAccount": "******596",
      "paymentCard": "Bank_Account",
      "cardType": 4,
      "cardTypeString": "Bank Account",
      "paymentCardString": "Bank Account",
      "processingDate": "2024-06-16T18:26:57",
      "paymentStatus": 3,
      "paymentStatusString": "Successful",
      "settlementDate": "2024-06-19",
      "paymentMethod": 1,
      "paymentMethodString": "Bank Account",
      "processorReference": "PR.1cmvl",
      "isPaymentSettledToMerchant": false,
      "merchantName": "Email Test 3",
      "merchantCode": "EmailT3",
      "isPaymentRetryScheduled": false,
      "processorRetryCount": 0,
      "isPaymentRecalled": false,
      "isPaymentRefunded": false,
      "cardCategory": "Bank Account",
      "paymentType": 1,
      "paymentTypeString": "Charge",
      "isPaymentChargeBacked": false,
      "paymentSource": 58,
      "paymentSourceString": "Cust.Api Payment",
      "hasPendingRefundRequest": false,
      "isPartialRefund": false,
      "refundedAmount": 0,
      "refundedCustomerFeeAmount": 0
    }
  ],
  "itemCount": 136,
  "pageOffset": 0,
  "pageLimit": 20
}

Example request (cURL, sandbox host)

cURL
curl -X GET 'https://api.sandbox.zenpay.com.au/v3/{customerCode}/payments' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'

Create a payment#

POST/v3/{customerCode}/payments

View this endpoint in the original docs

Creates a payment from the supplied request payload.

Authentication: BearerAuth

Parameters

NameInTypeDescription
customerCode requiredpathstring

Request body

Content types: application/json, application/x-www-form-urlencoded · required

Schema: PaymentRequest

FieldTypeDescription
merchantCode requiredstring
customerReference requiredstring
paymentAmount requirednumber <double>
uniquePaymentId requiredstring
Max length: 50
oneOffPaymentReferencestring
additionalReferencestring
sendPaymentConfirmationboolean
uniqueCustomerIdstring

Unique Customer ID. This can be configured at the customer portal.

Max length: 20

Example: payment-created

Payment created

JSON
{
  "merchantCode": "1337",
  "customerReference": "9935442a-6930-428d-b6eb-fa969522e49a",
  "paymentAmount": 1,
  "uniquePaymentId": "v3-capture-1789805452955",
  "sendPaymentConfirmation": false
}

Responses

200 OK

application/json · object

201

Example: payment-created

Payment created

JSON
{
  "paymentReference": "247086",
  "uniquePaymentId": "v3-capture-1789805452955",
  "customerCode": "TB18780151",
  "customerName": "Ian Menethil",
  "customerReference": "9935442a-6930-428d-b6eb-fa969522e49a",
  "baseAmount": 1,
  "customerFee": 0,
  "fundsToMerchant": 0,
  "processedAmount": 1,
  "paymentAccount": "*****678",
  "cardType": 4,
  "cardTypeString": "Bank Account",
  "subCardType": 4,
  "subCardTypeString": "Bank Account",
  "processingDate": "2026-09-19T18:10:56",
  "paymentStatus": 3,
  "paymentStatusString": "Successful",
  "settlementDate": "2026-09-23",
  "processorReference": "PR.2420u",
  "isPaymentSettledToMerchant": false,
  "merchantName": "Menethil",
  "merchantCode": "1337",
  "isPaymentRetryScheduled": false,
  "processorRetryCount": 0,
  "isPaymentRecalled": false,
  "isPaymentRefunded": false,
  "paymentType": 1,
  "paymentTypeString": "Charge",
  "isPaymentChargeBacked": false,
  "paymentSource": 58,
  "paymentSourceString": "Cust.Api Payment",
  "hasPendingRefundRequest": false,
  "isPartialRefund": false,
  "refundedAmount": 0,
  "refundedCustomerFeeAmount": 0
}

300

Example: payment-id-resent

Payment id resent

JSON
{
  "message": "The Payment unique id already exists."
}

Example request (cURL, sandbox host)

cURL
curl -X POST 'https://api.sandbox.zenpay.com.au/v3/{customerCode}/payments' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "merchantCode": "1337",
  "customerReference": "9935442a-6930-428d-b6eb-fa969522e49a",
  "paymentAmount": 1,
  "uniquePaymentId": "v3-capture-1789805452955",
  "sendPaymentConfirmation": false
}'

PaymentRequest#

View this schema in the original docs

FieldTypeDescription
merchantCode requiredstring
customerReference requiredstring
paymentAmount requirednumber <double>
uniquePaymentId requiredstring
Max length: 50
oneOffPaymentReferencestring
additionalReferencestring
sendPaymentConfirmationboolean
uniqueCustomerIdstring

Unique Customer ID. This can be configured at the customer portal.

Max length: 20

PingResponse#

View this schema in the original docs

Ping result

FieldTypeDescription
serverDateTimestring <date-time>

Server Date Time

versionstring

API version

timeZoneInfostring

DateTime Time Zone

buildVersionstring

Build version

Contact#

ZenPay Integrations Team: integrations@zenithpayments.com.au

Need help with your integration?Talk to the Zenith Integrations Team.
Email integrationsTalk to us