Used to close out an existing authorization request. If the invoice number already exists, the amount requested will be compared to the approved amount on file, and Shift4 will request approval for the additional amount only. If approved, the authorization will be converted to a sale transaction and be ready to be batched.
For Restaurant industry, review Restaurant Authorization and Settlement Flow
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.
Please note that if you are tokenzing your credit card information outside of Shift4, authorizing and capturing a payment is not available unless you store the tokenized value from Shift4 from an authorized payment request and use this token in the subsequent capture request.
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 date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).
Must be sent as the local date/time of the merchant. For example, a request processed at a merchant in the Pacific time zone at 9:18am on April 15th 2021 would be sent as 2021-04-15T09:18:23.283-07:00
Object containing information regarding the amount being requested. The total field within the object is required and specifies the amount being requested. All other fields are for informational purposes and must also be included in the total field. For example, a purchase of $100 with a $20 tip and $8 tax would be 128.00 in the total field, 20.00 in the tip field and 8.00 in the tax field.
{ "tip": 20, "total": 160 }
{ "hotel": { "additionalCharges": { "giftShop": "Y", "laundry": "N", "miniBar": "Y", "other": "Y", "restaurant": "Y", "telephone": "N" }, "arrivalDateTime": "2021-04-12T15:39:01.594-07:00", "departureDateTime": "2021-04-15T09:18:23.283-07:00", "primaryChargeType": 1, "roomRates": [ { "nights": 2, "rate": 159.95 }, { "nights": 3, "rate": 125.38 } ], "specialCode": 1 }, "invoice": "192029", "notes": "Transaction notes are added here" }
API Options modify the request being made. See the API Options section for more information.
[ "RETURNEXPDATE", "ALLOWPARTIALAUTH" ]
Transaction currency code. See the Currency Codes section for details.
Note: This is currently supported when processing for a merchant outside of the US and Canada. If processing for a US or Canadian merchant then this field will be ignored and the transaction will process in the merchant's configured currency.
Send this field if you want Shift4 to format the receipt text instead of returning individual fields. The value sent will correlate to the column width of the formatted receipt that we return. (This also allows the receipt text to wrap to fit the paper size of the printed receipt.) See the Printing Receipts section of this document for more information on formatted receipts.
Used to send non-payment related data for reporting purposes.
{ "customerInfo": [ { "firstName": "Jane", "lastName": "Smith", "dateOfBirth": "12011983", "gender": "female", "baggage": "checked", "seats": "1A", "boardingPriority": "1" }, { "firstName": "John", "lastName": "Smith", "dateOfBirth": "01281980", "gender": "male", "baggage": "carryon", "seats": "1B", "boardingPriority": "1" } ] }
Custom description that will be appended to the merchant name on the customer's statement. For most card brands, the merchant DBA name can be a maximum of 25 characters. Sending this value will cause the merchant name to be truncated to 9 characters. Shift4 will add an asterisk between the merchant name and the statementSuffix value.
For example, for a merchant named Joe's Warehouse Emporium that processes a transaction with statementSuffix value of KDNYZUHQ1, the merchant statement will show as Joe's War*KDNYZUHQ1.
Note: The value that displays on customer statements from card issuers is beyond Shift4's control. We will submit the transaction data as described above, however issuers may modify or truncate that data as they see fit. To best accommodate different issuer limitations, we will truncate the merchant name to the minimum possible value (9 characters) in order to attempt to leave the most room for the statementSuffix to populate on issuer statements.
Object containing Dynamic Currency Conversion (DCC) information. Must contain all fields received in the DCC Rate Lookup response.
Conditional: must be included in the request if the cardholder was given the option to pay in their currency, even if they opted out.
- Host Direct Test URLhttps://api.shift4test.com/api/rest/v1/transactions/capture
- Host Direct Production URLhttps://api.shift4api.net/api/rest/v1/transactions/capture
- Locally Installed UTG URLhttps://192.168.1.10:277/api/rest/v1/transactions/capture
- Commerce Engine For On Premise URLhttps://192.168.1.20:8085/api/rest/v1/transactions/capture
- Commerce Engine For Cloud Test URLhttps://api.shift4test.com/api/rest/v1/transactions/capture
- Commerce Engine For Cloud Production URLhttps://api.shift4api.net/api/rest/v1/transactions/capture
- GTV Token
- Legacy TrueToken
{ "dateTime": "2021-04-15T09:18:23.283-07:00", "amount": { "tip": 20, "total": 160 }, "apiOptions": [ "ALLOWPARTIALAUTH" ], "card": { "token": { "value": "8048471746471119" } }, "clerk": { "numericId": 1576 }, "transaction": { "hotel": { "additionalCharges": { "giftShop": "Y", "laundry": "N", "miniBar": "Y", "other": "Y", "restaurant": "Y", "telephone": "N" }, "arrivalDateTime": "2021-04-12T15:39:01.594-07:00", "departureDateTime": "2021-04-15T09:18:23.283-07:00", "primaryChargeType": 1, "roomRates": [ { … }, { … } ], "specialCode": 1 }, "invoice": "192029", "notes": "Transaction notes are added here" }, "reportingData": { "customerInfo": [ { "firstName": "Jane", "lastName": "Smith", "dateOfBirth": "12011983", "gender": "female", "baggage": "checked", "seats": "1A", "boardingPriority": "1" }, { "firstName": "John", "lastName": "Smith", "dateOfBirth": "01281980", "gender": "male", "baggage": "carryon", "seats": "1B", "boardingPriority": "1" } ] } }
{ "result": [ { "dateTime": "2024-05-21T09:18:23.283-07:00", "amount": { "total": 160, "tax": 15, "taxIndicator": "Y", "cashback": 20, "surcharge": 5, "tip": 20 }, "card": { "entryMode": "M", "expirationDate": 1230, "levelResult": "2C", "number": "XXXXXXXXXXXX1119", "present": "Y", "type": "VS", "balance": { … }, "token": { … }, "bin": "541333" }, "customer": { "firstName": "John", "lastName": "Smith" }, "clerk": { "numericId": 1576 }, "dcc": { "rateTimeStamp": "2024-07-09T13:34:25.049-07:00", "currencyCode": "CAD", "foreignAmount": 180, "conversionRate": 1.35, "marginPercentage": 9.99, "currencyMinorUnits": 2, "transactionId": "1A2820D2G334", "conversionIndicator": "1", "diffOverEcb": "0.35", "marginOverEcb": "2.85", "displayUnit": 2, "provider": "GLOBAL_BLUE" }, "merchant": { "mid": 15877, "name": "Merchant XYZ" }, "receipt": [ { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "server": { "name": "TM01CE" }, "signature": { "data": "iVBORw0KGgoAAAANSUhEUgAAA2kAAAEhCAYAAADlHOiOAAAABHNCSVQICAgIfAhkiAAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAAA7EAAAOxAGVKw4bAACN0ElEQVR4Xu2dB5hU5dn3T97yJXnVqDTBWAABC2KhiFERUDQWLKioUWNAETQqRjT2CoioUbFFrNhBNEFFLIhSrIhiAaQEEI0NgdjzJvne99tvf7fc6zNnzu7OLjs7Z2b+v+s61+zOzsyeOeV57v/dnh9VVBIJIYQQQgghhEgF/7b2UQghhBBCCCFECpBIE0IIIYQQQogUIZEmhBBCCCGEEClCIk0IIYQQQgghUoREmhBCCCGEEEKkCHV3FEIIIYQQJc2//vWv6L//+7+jf/zjH9HXX38dbbDBBtF//ud/Rj/5yU9s+/d///e1rxQiHUikCSGEEEKIkuT//t//a8Ls008/jc4///xo9uzZ0f/7f/8v+tGPfhRtttlm0XHHHRcdf/zx0frrry+hJlKFRJoQQgghhCg5iJ4hzm699dbo6aefjpYvX27RNBdp//Ef/2ERtYsuuig68cQTTajxvBBpQCJNCCGEEEKUFAi0L7/8MjrppJOimTNnRn//+9+j//3f/43iZi9CrWnTptHEiROj7t27R//n//yftX8RorCocYgQQgghhCgZEGiffPJJNGjQoGj69OnRt99+G/3P//xPlkADnv/uu++i8ePHR//85z/XPitE4ZFIE0IIIYQQJQGi65tvvokuvPDCaMaMGRZBI72xJqhb++ijj+y9QqQFiTQhhBBCCFH0kM5I1Gz06NHRlClTchJoQITNNyHSgkSaEEIIIYQoahBjiDJqy+6++25LYcxFoMG//du/VW1CpAVdjUIIIYQQoqihnuzFF1+0KBrRNKJqIXRt9C0Orfd33nlnteAXqUIiTQghhBBCFC00Cvnqq6+iM88801ruU2MWQgfH9dZbL9p+…" , "format": "P" }, "transaction": { "authorizationCode": "198399", "authSource": "E", "hostResponse": { … }, "invoice": "0510093358", "responseCode": "A", "retrievalReference": "402F9H0230S0", "saleFlag": "S", "amex": { … }, "cardOnFile": { … } }, "universalToken": { "value": "97032276-5944-00000001-16985FD179D" }, "payment": { "accountReference": "05280D8G7Q04UZBI7NOSPGSURP130" } } ] }