API Reference

Mint Outgoing Webhook Guide

summary of changes for alternative payment methods

  • card brand updated to include: POLI
  • Webhook type updated to include: Card_present

Setup

An outgoing webhook URL can be set up by Mint admins for a merchant account in the admin setup.

The domain must also be allowed out of the firewall.

Format

The webhook is sent as a POST request to the specified URL.

It uses JSON format.

Parameters


ParameterDescriptionExampleresponse values
transaction_referenceMint transaction reference number123456789123456789
customer_referenceCustomer reference provided on the HPPRef987654
invoice_numberInvoice number provided on the HPPInv123456
transaction_time_utcUTC time of the transaction2023-08-30 04:36:08 AM
statusStatus of the transactionAPPROVEDPRE_AUTHORISED
APPROVED
PENDING
DECLINED
amountTotal amount of the transaction including surcharge101.00
currencyCurrency of the transactionAUD
masked_card_numberMasked card number411111******1111
card_brandTypically the brand of the card used could also reflect the APM used. visamastercard
visa
amex
POLi
card_holder_nameThe name associated to the payment methodJohn Smith
card_expiryCard expiry date05/2026
email_addressEmail address entered in the HPP[email protected]
midMint company ID12345678
trading_nameMerchant's trading nameABC Travel Co
sale_amountAmount of the original sale (excludes the surcharge if applied)100.00
surchargeSurcharge applied to the transaction1.00
webhook_typeSource of the transactionVT (Virtual Terminal)VT
HPP
CARD_PRESENT
API
payment_typeThe payment type used during the transactionPOLiPOLi
CreditCard
BankAccount

Below is an example of the JSON payload sent in the webhook:

{
  "transaction_reference": "123456789123456789",
  "customer_reference": "Ref987654",
  "invoice_number": "Inv123456",
  "transaction_time_utc": "2023-08-30 04:36:08 AM",
  "status": "APPROVED",
  "amount": "101.00",
  "currency": "AUD",
  "masked_card_number": "411111******1111",
  "card_brand": "visa",
  "card_expiry": "05/2026",
  "email_address": "[email protected]",
  "mid": "12345678",
  "trading_name": "ABC Travel Co",
  "sale_amount": "100.00",
  "surcharge": "1.00",
  "webhook_type": "VT"
}