v1
latestOpenAPI 3.1.02026-08-06731,0781.4 MBUniversal Token
This function requests that the existing universal token for a card be returned.
Note: The GET request does not support a request body. Sending an empty request body may result in an error.
Integration Methods:
- Host Direct
- Locally Installed UTG
- Commerce Engine For On Premise
- Commerce Engine For Cloud
See the Integration Methods and URLs Section sections of the Development Quick Start guide for details regarding each processing option.
Headers
Refers to the version of the program or application that is sending requests to Shift4. The following special characters are not allowed: $ % : ^ - ~ < > , ? “ ” ‘ ’ { } [ ] \ + =
Refers to the name of the program or application that is sending requests to Shift4. This should be the name of the program that you purchased or created. The following special characters are not allowed: $ % : ^ - ~ ` < > , ? “ ” ‘ ’ { } [ ] \ + =
Refers to the vendor or partner that designed and certified the interface. The information you use in this field should match what Shift4 has on file or what was agreed upon in your Integration Plan. The following special characters are not allowed: $ % : ^ - ~ ` < > , ? “ ” ‘ ’ { } [ ] \ + =
A security credential used to authenticate API requests and all i4Go® authorizeClient/preauthorizeClient requests. An Access Token is the alias for the merchant account and interface being used. The Access Token is required in all requests except an Access Token Exchange request, which generates an Access Token using an authToken and clientGuid.
The payment card number. This field will always be masked when returned in a response.
The full output of a P2PE keypad/magnetic swipe reader (MSR).
Classifies the type of payment device being used for P2PE.
| Value | Description |
|---|---|
| 01 | IDTech Enhanced Encryption format, USB KB mode |
| 02 | IDTech Enhanced Encryption format, USB HID mode |
| 03 | Ingenico format |
| 04 | VeriFone format |
| 05 | Shift4 TDES DUKPT format |
Conditional: Required when p2pe.format == "05"
The key serial number which was used to encrypt the P2PE data.
In requests that require the use of a shared card token that is held by another merchant account, such as in TokenStore or TokenShare®, this field is used to specify the serial number for the account where the card token is stored.
This field is used to specify the token for the payment method.
Conditional: Send in the initial authorization/sale request when processing a swiped MSR transaction. This field is not specified when using True P2PE® (point-to-point encryption) or a UTG-controlled PIN pad.
Card swipe data exactly as read by an MSR.
Response
Request was processed
Example response
{
"result": [
{
"dateTime": "2024-05-21T09:18:23.283-07:00",
"merchant": {
"mid": 15877,
"name": "Merchant XYZ"
},
"server": {
"name": "TM01CE"
},
"universalToken": {
"value": "97032276-5944-00000001-16985FD179D"
}
}
]
}