Please refer payment API field validation 


Type     Description 

AAlphabets (A-Z, a-z)
NNumbers (0-9)
SSpecial Characters
ANAlphabets (A-Z, a-z) & Numbers (0-9)
ASAlphabets (A-Z, a-z) & Special Characters
NSNumbers (0-9) & Special Characters
ANSAlphabets (A-Z, a-z), Numbers (0-9) and Special Characters
TTime, syntax format: YYYY-MM-DD HH:mm:ss
DDate?syntax format: YYYY-MM-DD






Request


Title
Object 
Type
Type1

Required?

(Yes/No/ Conditional)

Value(e.g.)
Description
Length
Allowed
Not Allowed
Audit
account
stringANNo (Mandatory if organisation & currency are not sent)e6287e2adc434cddbfdb13223a43015bThe ID of the account. Acts as an override. Must be submitted if organisation and currency are not used in the request.250AlphanumericSpecial Characters
organisation
stringANNo (Mandatory if account is not sent)6c18a82fe5a2439b922522570c9abc37The ID of an organisation. Must be submitted along with currency if account is not used in the request.250AlphanumericSpecial Characters
currency
stringANo (Mandatory if account is not sent)GBPCurrency using which transaction needs to be processed. Must be submitted if account is not used in the request. This field is ignored if submitted along with the account, Apexx uses the currency configured with the account to process the transaction when account is submitted.
A 3-letter ISO 4217 currency code, see Currencies Section for more details.
3ISO 4217 currency codeNumbers and Special Characters
amount
NumberNYes100Amount is charged without a decimal place e.g. $1.50 = 150. Currencies can have different decimals/exponentials, see Currencies Section for more details.12NumericAlphabets and Special characters
capture_now
stringAYesTRUETrue will auto-capture the transaction. False will only authorise the transaction.250Boolean: True or False

dynamic_descriptor
stringANSNoFirst orderA short reference/descriptor that will show up on the customers bank statement. Only supported by some acquirers. Please confirm with your Implementation Manager for supported acquirers and formats.255All Alphabets, Numbers and Special Characters

merchant_reference
stringANSYes98565825A reference specified by the merchant to identify the transaction. This field must be unique per transaction.255All Alphabets, Numbers and Special Characters

card
Object
Yes
Card Details



card_holder_namecardstringANSNoJohn DoeFull name of the card holder as printed on the card255All Alphabets, Numbers and Special Characters

card_numbercardNumberNYes (if encrypted_data is not sent in card block)40000000000000000The new card number, also known as PAN.20only Numbers

cvvcardNumberNNo123The Card Verification Value. Note: CVV is not required when transaction is a recurring or oneclick transaction.4only Numbers

expiry_monthcardNumberNYes(if encrypted_data is not sent in card block)12Card expiry month. A string representing the month, valid values are 01 to 12.2only Numbers

expiry_yearcardNumberNYes(if encrypted_data is not sent in card block)20Card expiry year. A string representing the last two digits of the year, e.g. 19 for 2019.2only Numbers

tokencardstringANNo
The token representing the payment card.250Alphabets
Numbers
Special Characters
create_tokencardBooleanANoTRUEThe token representing the payment card.5AlphabetsNumbers and Special Characters
encrypted_datacardstringANSNo
This field will contain the encryption data of card_number, expiry_month, expiry_year and cvv fields. Encryption data generated by client-side-encryption SDK.NAAll Alphabets, Numbers and Special Characters

customer
Object
No
Customer Object



customer_idcustomerstringASNoJohnFirst name of the customer.
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
255Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
Numeric, Special characters, Alpha-numeric
last_namecustomerstringANSNoDoeLast name of the customer.
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
255All Alphabets, Numbers and Special Characters

date_of_birthcustomerstringANSNo2020-01-01The date of birth of a customer, 10 characters, ISO-8601 (YYYY-MM-DD).255All Alphabets, Numbers and Special Characters

postal_codecustomerstringANSNo33415A postal code for the address
Note: Only alpha-numeric characters

All Alphabets, Numbers and Special Characters

account_numbercustomerstringNNo95856585958This is the recipient's account number.
All Alphabets, Numbers and Special Characters

customer_ip
stringANSNo192.168.1.135The IP address of the customer250


recurring_type
stringANorecurringValid Values: "first" "recurring" "oneclick"
This field is to be used only when a transaction is part of a series of recurring transactions. If it's the initial transaction, set the value to 'first', and if it's not, set it to 'recurring'. This field must not be included in transactions that will not be part of a series of repeated transactions. (All values are written in lowercase letters).
255AlphabetsNumbers and Special Characters
user_agent
stringANSNoMozilla/5.0 (Windows; U; Windows NT 6.1; en-GB;rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)The full user agent string of the device the customer used to submit the transaction255All Alphabets, Numbers and Special Characters

webhook_transaction_update
stringANSNohttps://qaigate.apexxfintech.com/mgwA webhook url that is called when a transaction is updated. Note: This overrides any URL set on the account.255All Alphabets, Numbers and Special Characters

card_brand
stringASNovisavalid values: "amex" "diners" "discover" "elo" "jcb" "maestro" "mastercard" "visa" "visa electron" "carte bancaire"
Card brand for the card used for processing
50Alphabets
Special Characters
Numbers
billing_address
object
No
Some fields may be mandatory for certain acquirers. Please speak to your Implementation Manager for further information.



first_namebilling_addressstringANSNoJohnFirst name of the delivery customer
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
255


last_namebilling_addressstringANSNoDoeLast name of the delivery customer
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
255


emailbilling_addressstringANSNojohn.doe@email.comEmail address of the card holder
Note: Only alphabets, numeric, @, comma(,) dot(.), plus(+), underscore(_), dash(-) and apostrophe(‘)
255Alphabets and Numbers, Special characters allowed are
@, comma(,) dot(.), plus(+), underscore(_), dash(-) and apostrophe(‘)


addressbilling_addressstringANSNo123 Gütersloher Str.Street address of the card holder
Note: All characters support

All Alphabets, Numbers and Special Characters

citybilling_addressstringASNoVerlCity of the card holder
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
statebilling_addressstringASNo
A region / state / province for the address
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
postal_codebilling_addressstringANSNo33415A postal code for the address
Note: Only alpha-numeric characters

All Alphabets, Numbers and Special Characters

countrybilling_addressstringANoDEA 2-letter ISO3166 alpha-2. country code for the address. Note: Alphabets upto two characters (e.g. GB, RU etc..)
Alphabets upto two characters (e.g. GB, RU etc..)Numeric and Special Characters
phonebilling_addressnumberNNo9865245632Numbers only, no dash or any other separator.
Note: Length - min(3) & max(20)
3 to 20NumbersAlphabets and Special characters
shopper_interaction
stringANoecommerceValid Values: "ecommerce" "pos" "moto" "unknown"
Determines the point of sale of a customer. Default values: ecommerce
50Only Alphabets: Valid values are "ecommerce" "pos" "moto" "unknown"

three_ds
Object


Enroll a given transaction for 3D-secure to verify whether authentication is supported for the card being used.



term_urlthree_dsstringANSNohttps://example.com/returnThe return url to which the customer is redirected after a transaction is processed.
All Alphabets, Numbers and Special Characters

three_ds_requiredthree_dsbooleanANotruetrue if 3DS required for this transaction, false otherwise.5AlphabetsNumbers and Special Characters
three_ds_versionthree_dsenumNSNo1.0Valid Values: "1.0" "2.0"
The 3-D Secure version used for the authentication.
5Numbers, special characters allowed is fullstop(.)Alphabets
airline_data
object
No
Airline itinerary data for the transaction



airline_itinerary_data
booleanANo ( Default value = false)FALSEAirline itinerary data



numeric_code

airline_numeric_code

airline_datastringNYes (if airline_itenary_data = true)531Airline numeric code



airline_nameairline_datastringANSYes (if airline_itenary_data = true)British AirwaysName of the airline255All Alphabets, Numbers and Special Characters

ticket_numberairline_datastringANSYes (if airline_itenary_data = true)1.05913E+12Ticket/document number, or PNR locator code.255All Alphabets, Numbers and Special Characters

agency
Object







agency_codeagencystringANSNo12345678Travel agency code25All Alphabets, Numbers and Special Characters

agency_nameagencystringANSNoTravel AgencyTravel agency name255All Alphabets, Numbers and Special Characters

invoice_numberairline_datastringANSNo65411Invoice number of the ticket25All Alphabets, Numbers and Special Characters

ticket_type
array
No[1,2,3]Array of the type of tickets, should be separated by comma(,)



flight_leg

legs


Object


Flight leg details



flight_numberlegsnumberNYes (if airline_itenary_data = true)81Flight number excluding carrier code5-JanNumbers

carrier_codelegsstringANYes (if airline_itenary_data = true)AATravel carrier code2Alphabets
Numbers
Special Characters
service_classlegsstringANYes (if airline_itenary_data = true)first classTicket category (“0” if no class)
Valid values:first class, Second class, business, Economic, 0
20Alphabets
Numbers
Special Characters
departure_datelegsdateNSYes (if airline_itenary_data = true)43852Departure date. Format - YYYY-MM-DD
Numbers
Special Characters
Alphabets
destination_airportlegsstringAYes (if airline_itenary_data = true)JFKDestination airport/city IATA code3AlphabetsNumbers
Special Characters

origin_airportlegsstringAYes (if airline_itenary_data = true)JFKOrigin airport/city IATA code3AlphabetsNumbers
Special Characters

stop_over_codelegsstringAYes (if airline_itenary_data = true)NStop over code1Alphabets

fare_basis_codelegsstringANSNoVLVA2FIFare basis code8All Alphabets, Numbers and Special Characters

flight_leg??numberNNo1Sequence number of the flight leg2NumbersAlphabets
Special Characters

outbound_departure_city??stringASNoVerlOutbound departure city of the booking
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
outbound_arrival_time
stringANSNoSat Apr 07 10:40:00 BST 2018Outbound arrival time of the booking



outbound_arrival_city
stringASNoVerlOutbound arrival city of the booking
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.),  comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
inbound_flight_number
stringNYes (if airline_itenary_data = true)81Flight number excluding carrier code5-JanNumbers

inbound_departure_time
stringANSNoSat Apr 07 10:40:00 BST 2018Inbound flight number of the booking



inbound_departure_city
stringASNoVerlInbound departure city of the booking
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
inbound_departure_airport_code
stringAYes (if airline_itenary_data = true)JFKInbound departure airport/city IATA code3AlphabetsNumbers
Special Characters

inbound_arrival_time
stringANSNoSat Apr 07 10:40:00 BST 2018Inbound arrival time of the booking



inbound_arrival_city
stringASNoVerlInbound arrival city of the card holder
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
inbound_arrival_airport_code
stringAYes (if airline_itenary_data = true)JFKInbound arrival airport/city IATA code3AlphabetsNumbers
Special Characters

passenger_details
Object
No
Passenger Details



passenger_title
stringANoMrValid Values: "Mr" "Mrs" "Miss"
Salutation of the customer
10AlphabetsNumbers and Special Characters
passenger_name
stringASNoJohn DoeName of passenger
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
255Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
Numeric, Special characters, Alpha-numeric

pax_age_group

passenger_age_group


stringANoADTTravelling passenger's age group50AlphabetsNumbers and Special Characters
is_lead
BooleanANotrue




shipping_info
Object
No
Shipping information



email
stringANSNojohn.doe@email.comEmail address of the card holder
Note: Only alphabets, numeric, @, comma(,) dot(.), plus(+), underscore(_), dash(-) and apostrophe(‘)
255Alphabets and Numbers, Special characters allowed are
@, comma(,) dot(.), plus(+), underscore(_), dash(-) and apostrophe(‘)


address
stringANSNo123 Gütersloher Str.Street address of the card holder
Note: All characters support

All Alphabets, Numbers and Special Characters

city
stringASNoVerlCity of the card holder
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
state
stringASNo
A region / state / province for the address
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))

Only alphabetic characters, Special characters allowed are
(hyphen(-), underscore(_), dot(.), comma(,))
Numeric, Special characters, Alpha-numeric
postal_code
stringANSNo33415A postal code for the address
Note: Only alpha-numeric characters

All Alphabets, Numbers and Special Characters

country
stringANoDEA 2-letter ISO3166 alpha-2. country code for the address. Note: Alphabets upto two characters (e.g. GB, RU etc..)
Alphabets upto two characters (e.g. GB, RU etc..)Numeric and Special Characters
phone
stringNNo9865245632Numbers only, no dash or any other separator.
Note: Length - min(3) & max(20)
3 to 20NumbersAlphabets and Special characters
external_authentication
Object


externalAuthentication



xid
stringANSNo
3-D Secure X id.



cavv
stringANSYes(if external_authentication block is received)
3-D Secure “Cardholder Authentication Verification Value”.



cavv_algorithm
stringANSNo
3-D Secure “Cardholder Authentication Verification Value” algorithm(0-9).



3ds_status
stringANSYes(if external_authentication block is received)
3-D Secure status:
y = authentication successful
n = not authenticated
u = authentication unavailable
a = authentication attempted
r = authentication rejected




eci
stringANSYes(if external_authentication block is received)
The Electronic Commerce Indicator (ECI).



3ds_enrolled
stringANSNo
Card’s enrollment status.



directory_server_transaction_id
stringANSNo
The 3-D Secure Directory Server transaction ID that is used for the 3D Authentication



3ds_transaction_status_reason
stringANSNo
3-D Secure out of scope reason. Shall be used if the transaction type is out of scope of Strong Customer Authentication (SCA). The following transaction types are out of scope of SCA:
mit Merchant Initiated Transactions
moto Mail Order/Telephone Order
one_leg_out
anonymous_prepaid_card




3ds_score
stringANSNo
CB scoring. Mandatory for CB transactions.



3ds_preference
stringANSNo
3DS Requestor Challenge Indicator. Mandatory for CB.
Acccepted values:
sca ask for a strong authentication;
frictionless ask for a frictionless authentication;
nopref or absent, the decision will be made by Dalenys;
scamandate strong authentication required by regulation




3ds_mode
stringANSNo
Applied authentification mode: sca Strong authentication; frictionless Frictionless authentication;



3ds_version
stringANSYes(if external_authentication block is received)
The 3-D Secure version used for the authentication.



3ds_result
stringANSNo
6 character value composed of 3DSECURESTATUS converted to hexadecimal concatenated with the result VRes converted to hexadecimal



3ds_server_transaction_id
stringANSNo
The 3-D Secure Server transaction ID that is used for the 3-D Secure version 2 Authentication.



external_risk_data
Object
No
Risk and Fraud check details



provider
enumAYes(if external_risk_data is received)accertifyProvider name to be used for performing risk & fraud check.
Valid Values: accertify




session_id
stringANSYes(if external_risk_data is received)1952715134TUITHB2050EB68164A408CCD02A49B04B43A3Session identifier of the transaction



risk_data
Object


Risk related details



promo_id
stringANSNo
Promo identifier applied on the transaction



promo_amount
NumberNNo101Promo amount applied on the transaction



app_session_id
stringANSNoB2050EB68164A408CCD02A49B04B43A3Application session identifier



cps_session_id
stringANSNoB2050EB68164A408CCD02A49B04B43A3CPS session identifier



cps_unique_token
stringANSNoe20e1db5-589c-42f8-a06b-9ad33e0c350cCPS unique token



shop_number
stringANSNo2660Shop number



sales_channel
stringANSNoTUITHSales channel of the transaction



accommodation
Object
No
Accommodation details of the transaction



accommodation_name
stringANSNoHotel Flamingo OasisName of the hotel or accommodation for the booking



selling_code
stringANSNoESCB0008Selling code of the booking



resort
stringANSNoBenidormName of the resort for the booking



destination
stringANSNoCosta BlancaDestination city/place for the booking



country
stringANSNoSpainCountry name



checkin_date
stringDTNoSat Mar 31 01:00:00 BST 2018Check in date



checkout_date
stringDTNoSat Mar 31 01:00:00 BST 2018Check out date



stay_duration
NumberNNo7Number of days of the accommodation



inventory
stringANSNo





package_type
stringANSNoPDPType of the package selected by customer for the accommodation




Response


TitleTypeDescription
_idstringThis is the unique id generated by Apexx.
accountstringThe ID of the account. Acts as an override. Must be submitted if organisation and currency are not used in the request.
organisationstringThe ID of an organisation
currencystringA 3-letter ISO 4217 currency code, see Currencies Section for more details.
amountnumberAmount is charged without a decimal place e.g. $1.50 = 150. Currencies can have different decimals/exponentials, see Currencies Section for more details.
authorization_codestringAn authorisation code assigned by the processing platform
capture_nowbooleanTrue will auto-capture the transaction. False will only authorise the transaction.
blockedbooleanTrue if the transaction has been blocked by a ruleset, false otherwise
dynamic_descriptorstringA short reference/descriptor that will show up on the customers bank statement. Only supported by some acquirers. Please confirm with your Implementation Manager for supported acquirers and formats.
merchant_referencestringA reference specified by the merchant to identify the transaction. This field must be unique per transaction.
cardObjectBaseCardDetails
card_holder_namestringName of the card holder as printed on the card
card_numbernumberThe new card number, also known as PAN.
expiry_monthnumberCard expiry month. A string representing the month, valid values are 01 to 12.
expiry_yearnumberCard expiry year. A string representing the last two digits of the year, e.g. 19 for 2019.
tokenstringThe token representing the payment card.
encrypted_datastringThis field will contain the encryption data of card_number, expiry_month, expiry_year and cvv fields. Encryption data generated by client-side-encryption SDK.
customer_ipstringThe IP address of the customer
paresstringThe unmodified PaRes value as received after the customer was redirected back from 3DS Authentication.
recurring_typeenumValid Values: "first" "recurring" "oneclick"
The value used to flag how the acquirer/ issuer should consider the transaction
user_agentstringThe full user agent string of the device the customer used to submit the transaction
webhook_transaction_updatestringA webhook url that is called when a transaction is updated. Note: This overrides any URL set on the account.
actionsarray
created_atstringThe time at which the transaction was created
cvv_presentbooleanTrue if the card was used with a cvv
feesnumber
geo_locationstringThe latitude/longitude resolved from the customer's ip address
last_status_updatedateThe last time when the status of the transaction was updated
payment_productstringThe payment product corresponding to this transaction
card_brandstringValid Values:  "amex" "diners" "discover" "elo" "jcb" "maestro" "mastercard" "visa" "visa electron" "carte bancaire"
Card brand for the card used for processing
issuer_namestringCard Issuer Name for this transaction
issuer_countrystringIssuing country of the card. A 2-letter ISO3166 alpha-2. Acquirer country code
organisation_psp_namestringThe name of the processor as setup within the APEXX payment gateway. i.e. Merchant Name - Acquirer Name
reason_codestringA reason code assigned by the acquiring platform; '0' in case of Success, see reason codes section for declined scenarios and error codes section for failed scenarios.
reason_messagestringA reason message assigned by the acquiring platform. Reason message will return if reason_code is not 0
fraud_predictionsObject
error_messagestring
recstring
rules_triggeredstring
scorestring
statusstringValid Values: "AUTHENTICATION_REQUIRED" "DECLINED" "FAILED" 
billing_addressObjectSome fields may be mandatory for certain acquirers. Please speak to your Implementation Manager for further information.
first_namestringFirst name of the delivery customer
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
last_namestringLast name of the delivery customer
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,) and apostrophe(‘))
emailstringEmail address of the card holder
Note: Only alphabets, numeric, @, comma(,) dot(.), plus(+), underscore(_), dash(-) and apostrophe(‘)
addressstringStreet address of the card holder
Note: All characters support
citystringCity of the card holder
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))
statestringA region / state / province for the address
Note: Only alphabetic characters, Special characters allowed are (hyphen(-), underscore(_), dot(.), comma(,))
postal_codestringA postal code for the address
Note: Only alpha-numeric characters
countrystringA 2-letter ISO3166 alpha-2. country code for the address. Note: Alphabets upto two characters (e.g. GB, RU etc..)
phonenumberNumbers only, no dash or any other separator.
Note: Length - min(3) & max(20)
detailsObject
shopper_interactionstringValid Values: "ecommerce" "pos" "moto" "unknown"
Determines the point of sale of a customer. Default values: ecommerce
cvv_resultstringCVV verification result, as returned by the processor
avs_resultstringAddress verification services result, as returned by the processor
three_dsobjectEnroll a given transaction for 3D-secure to verify whether authentication is supported for the card being used.
term_urlstringThe return url to which the customer is redirected after a transaction is processed.
three_ds_requiredbooleantrue if 3DS required for this transaction, false otherwise.
three_ds_versionstringValid Values:  "1.0" "2.0"
The 3-D Secure version used for the authentication.
external_risk_dataObjectRisk and Fraud check details
risk_transaction_idstringTransaction risk ID as received from the risk & fraud check service
risk_transaction_referencestringTransaction risk reference Id as received from the risk & fraud check service
rules_triggeredstringRules triggered to check risk
scorenumberScore of the risk check
recommendation_codestringRecommendation as suggested by the risk & fraud check service
remarksstringRemarks for the risk & fraud check service