New transaction

This endpoint is used to create new financial transactions.

Supported transaction types:

  • Purchase
  • Pre-authorisation
  • Capture
  • Refund
  • Cashout
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Transaction Request

string
enum
required

Type of message request.

The table below lists the supported transaction types

Transaction TypeDescription
PREAUTHPerform a card authorisation request
CAPTUREComplete the capture of a previous successful card authorisation
PURCHASEPerform a purchase request
REFUNDPerform a new refund request
CASHOUTPerform a new cashout only transaction request
Allowed:
date-time
required
length between 24 and 24

It should always be the local date and time stamp when the transaction was initiated. This should be in 24 hrs format.

string
required
length between 6 and 6

System trace audit number. Unique number assigned to identify a transaction at a given terminal. It should remain unchanged throughout the life of a transaction. It should be between"000001-999999"

string
enum
required

Sale channel "ONLINE" or "INSTORE". Use ONLINE for all card not present transactions and INSTORE for all card present transactions. This value must be "INSTORE" for Transaction Type CASHOUT

Allowed:
string
required
length between 8 and 8

ID of the acqurier

date-time
required
length between 24 and 24

Date and time stamp of the transaction when initiated for transmission. GMT time zone is recommended. Trailing Character Z to be passed if date-time is sent in GMT

string
enum
required

The 2-digit Point of Service (POS) condition code identifies how a transaction is presented to the terminal. The only values supported are:

ValuesDescription
08Moto order
15Customer Terminal, or OEM (except refund)
48Electronic Commerce, scheme token or OEM(refund only)
42Electronic Payment terminal or standalone application
Allowed:
string
required
length between 12 and 12

This field will be present in all Financial Request messages from Webpay. It remains unchanged for all messages throughout the life of a transaction (except refund transaction), for example, PURCHASE -> RESPONSE -> CANCEL-> RESPONSE all have the same Retrieval Reference Number (RRN). In refund transaction, use system trace audit number (or STAN) to populate this field. Above logic can be overridden when retrieval reference number is provided from the request. The receipt number is right justified and left zero filled within this field. It is expected the content of this field should follow the following (ydddhhnnnnnn. • yddd (positions 1-4) is the year and day of year, y=0-9,ddd=001-366 • hh (position 5-6) is the hours value. • nnnnn (position 7-12) is the value from auditNumber.

string
required
length between 4 and 4

Mandatory for all requests. It contains the acquierer's business (settlement) date which is in "MMDD" format.

string
required
length ≤ 16

ID of Pinpad Terminal

string
length between 26 and 26

AES DUKPT Key Serial Number

string
enum

Electronic Fallback Entry Indicator is used in PURCHASE and REFUND requests via Store and Forward (SAF) transactions only. Setting this field to a non-null value enables SAF functionality. SAF transactions must also have a non-null value in the capture.captureRetry field.

ValuesDescription
EThe Fallback transaction was automatically generated by the pinpad.
VThe Fallback transaction was generated due to a completion from the POS.
AManually entered Card number via VAE (Voucher Authorisation Entry)
Allowed:
string
enum

Terminal Capability Code. One of the following values:-

ValuesDescription
00Unknown
01Magenetic stripe reader
03Magnetic stripe and Contact ICC reader
04Contactless ICC reader
05Magnetic stripe, Contactless ICC readers
06Contact and Contactless ICC readers
07Magnetic stripe, Contact and Contactless ICC readers
Allowed:
string
enum

mPOS terminal classification code representing the type of the mPOS terminal. One of the following values:-

ValuesDescription
ACMobile point-of-sale (mPOS) accessory/dongle with contact and contactless interfaces, with or without PIN pad
ASmPOS accessory/dongle with contact and contactless interfaces and PIN on glass support (Software-based PIN on commercial of the shelf (COTS))
CCContactless payment on COTS (CPoC) - mobile device based contactless only mPOS without PIN support
CSCPoC - mobile device based contactless only mPOS with PIN on glass support.
Allowed:
string
enum

Required for card not present transactions. One of the following:-

ValuesDescription
0Unknown
1Telephone Order
2Mail Order
3Internet Order Subsequent
4Internet Order First
Allowed:
string
enum

Required for card not present transactions. One of the following:-

ValuesDescription
1Single Transaction
2Fixed Frequency Recurring Transaction
3Instalment Payment
4Post purchase adjustment
5Deferred payment
Allowed:
string
enum

This indicator is mandatory where the ECM tag value starts with ‘3’ or ‘4’, otherwise this tag shall not be present. The Security Level Indicator is used with the electronic Commerce indicator. It identifies the leve of security used over an open network (e.g. the Internet). One of the following:-

ValuesDescription
00Not Applicable
01 -04Reserved for future use
05Authenticated secure electronic commerce transaction
06No-authenticated secure electronic Commerce transaction where merchant is certified to perform authentication
07Authenticated secure electronic commerce transaction where authentication cannot be performed. Other security mechanisms may be present e.g. channel encryption
08Non-secure transaction in the clear over an open network
boolean

Merchant Choice Routing should be 'true' if routing is performed by the merchant. It is required by EFTPOS to indicate that a transaction has been diverted form its normal route by the merchant/partner's choice routing mechanism

string
enum

walletType is included on request messages involving a wallet provider. One of the following:

ValuesDescription
APApple Pay
NPAndroid Pay
SPSamsung Pay
MRMasterPass Remote
VCVisa Checkout
VOVisa COF token
MDMDES merchant wallet program
AXAmex
string
enum

Required when walletType is present and the transaction is eCommerce originated. One of the following:

ValuesDescription
0Filler
1Commerce/3D Secure
2Processed through MasterPass
4Digital Secure Remote Payment (DSRP) with Card Authentication data
Allowed:
string
enum

Required when walletType is present and the transaction is eCommerce originated. One of the following:

ValuesDescription
0Cardholder authentication is not supported by the merchant or merchant has chosen not to undertake 3D Secure on this transaction.
1Cardholder authentication is supported by the merchant, and attempted authentication data is present.
2Cardholder authentication is supported by the merchant, and full authentication data is present.
3Cardholder authentication is supported by the merchant, and Static Accountholder Authentication Value data is present.
6Merchant Risk Based decision
7Partial shipment or recurring payment. Liability will depend on the original authentication values provided and matching with the initial transaction.
Allowed:
string
enum

Merchant Initiated Transacton (MIT) is used by the merchant to indicate to the acquirer the reason for the merchant to initiate the transaction. It will specify the type of industry practice or standing instruction that triggered the transaction. One of the following values:

ValuesDescription
01Re-authorisation
02Unscheduled
03Recurring
04Instalment
05Re-submission
06Delayed
07No Show
Allowed:
string
enum

This element indicates the Program Protocol for eCommerce 3DS transactions. If this is passed as 2.2.0 then its version is identified as version 2 and if it is not passed in the request then it is identified as version 1 in the switch.

Allowed:
string
length ≤ 999

Applicable to EFTPOS debit accounts. The payment token data are used to transmit information that is specific to the use of a Payment token in a financial or non-financial transaction. It is formed as a serie of TLV (Tag, Length, value) individual data objects where: T = 3-digit numeric encoded as 3 ASCII digits L = 3-digit length (represented as number of bytes) of following variable value (exclusive of the tag ID and length indicators) encoded as 3 ASCII digits V = variable value. Tags may be present in any order.

capture
object
card
object
merchant
object
amount
object
schemeExtendedData
object

This element is used to provide additional data about the transaction. This element is optional and can be used to provide additional information about the transaction.

deviceCoordinates
object
Headers
string
required

Mac of the payload

string
required

If this value differs by more than 900 seconds (15 minutes) from the time of the server, the request will be rejected.

string
required

The base64 encoded SHA-256 hash value used to generate the signature base string. This is analogous to the standard Content-MD5 header. Required for any request where Content-Length is not 0 (for example, a POST request with a body).

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json