Formatting
transactionReference
format
- The
transactionReference
must be a uniquely generated identifier - Our Try (
https://try.access.worldpay.com/
) environment returns a bad request error if a duplicatetransactionReference
is supplied - 64 characters max. We recommend your
transactionReference
contains between 9-20 characters for ease of onward processing - This safeguards you against acquirers who truncate the
transactionReference
Supported format, structure and limits for transactionReference
:
Valid characters:
- A-Z
- a-z
- 0-9
- Hyphen
-
- Underscore
_
- Forward Slash
/
- Exclamation mark
!
- At
@
- Pound, number sign, sharp or hash
#
- Dollar
$
- Percent
%
- Parenthesis
()
- Asterisk
*
- Equal
=
- Full stop
.
- Colon
:
- Semi-colon
;
- Question mark
?
- Brackets
[]
- Braces or Curly braces
{}
- Tilde
~
- Plus
+
Some characters, for example: Parenthesis ()
or Semi-colon ;
, can trigger our Web Application Firewall (WAF) rules to block your requests, if used in a combination that might be interpreted as an attempt to inject a command.
reference
format
- This format applies for the
reference
parameter in partial settlement and partial refund requests reference
must be between 1-128 characters
Valid characters:
- A-Z
- a-z
- 0-9
- Hyphen
-
Narrative format
The narrative
object helps your customers to better identify you on their statement.
Narrative line1
line1
is used to provide basic details about the merchant.
line1
is mandatory and must be included in your request.
Supported format, structure and limits for line1
:
- This has to be a consistent identifier
- There is a limit of 24 characters (25 characters for Payouts v1)
- It is not guaranteed that the bank will show this on the customer's statement
- Valid characters:
- A-Z
- a-z (these may appear as upper case in the statement)
- 0-9
- Hyphen
-
- Full stop
.
- Commas
,
- Space
Narrative line2
line2
is used for additional context about the payment or merchant. eg Order number or Merchant phone number.
line2
is not mandatory.
Supported format, structure and limits for line2
:
- Free form
- There is a limit of 24 characters
- Valid characters:
- A-Z
- a-z (these may appear as upper case in the statement)
- 0-9
- Hyphen
-
- Full stop
.
- Commas
,
- Space
narrative
(Payouts API only)
Supported format, structure and limits for narrative
:
- Free form
- There is a limit of 24 characters
- Valid characters:
- A-Z
Payment facilitator format
pfId
- Your payment facilitator ID received from Mastercard, Visa and Amex.
Please ensure you add the correct pfId
to the right brand.
isoId
- Independent Sales Organization (ISO) ID provided by Mastercard. If an ISO is involved in the transaction, you must send this information.subMerchant
- Your sub-merchant's details which includes:
Parameter | Description |
---|---|
subMerchant.city | The city your sub-merchant is based. Valid characters:
Max 13 characters. |
subMerchant.name | The name of your subMerchants company. Valid characters:
Max 25 characters. |
subMerchant.state | Valid characters:
Max 3 characters. |
subMerchant.postalCode | Valid characters:
Max 10 characters. |
subMerchant.merchantId | Valid characters:
Max 15 digits. |
subMerchant.countryCode | ISO 3166-1 numeric. Valid characters:
e.g. 826 Max 3 digits. |
subMerchant.street | Valid characters:
Max 50 characters. |
subMerchant.taxId | Valid characters:
Max 20 characters. |
subMerchant.email | Valid characters:
Max 40 characters. |
subMerchant.telephone | Valid characters:
Max 20 characters. |
Marketplace format
Marketplaces can optionally provide further information in both full and partial settlement calls.
Parameter | Description |
---|---|
marketplace.sellerCountryCode | The country where the seller is domiciled. Valid characters:
Max 2 characters. |
marketplace.splitFundingreference | Your reference for split funding. Valid characters:
Max 256 characters. |
Name field formatting (Account Payouts API)
First, Middle, Last and Company names must follow specific field requirements for length and content. Below are regular expressions for permissible values of these fields:
Parameter | Data Type/Format | Length Requirement | Regular Expression |
---|---|---|---|
parties.personalDetails.companyName | String | Max 140 | Failure to provide the full name could result in delays and potential rejection of your payment. This should consist of 2 words, separated by a space. If the value is a one-word business name please contact your Relationship Manager. |
parties.personalDetails.firstName | AN | Max 50 | The full name (firstName + middleName + lastName) should not be longer than 140 characters in total. |
parties.personalDetails.middleName | AN | Max 50 | The full name (firstName + middleName + lastName) should not be longer than 140 characters in total. |
parties.personalDetails.lastName | AN | Max 50 | The full name (firstName + middleName + lastName) should not be longer than 140 characters in total. |