The amount being charged for a particular transaction. If other amount fields are sent, they must be included in the total amount. Amount cannot be zero.
Shift4 Payment API (1.7.43)
https://api.shift4test.com/api/rest/v1/
https://api.shift4api.net/api/rest/v1/
Request
Used to process an original credit transaction to transfer funds from the merchant to the recipient.
Integration Methods:
- Host Direct
See the Integration Methods and URLs Section sections of the Development Quick Start guide for details regarding each processing option.
See the JSON Body Schemas for more details on the various JSON body formats.
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 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.
Note: For merchants that are configured to allow multiple currencies, the amount fields can specify up to three decimal places. However, the number of decimal places can not exceed the number allowed for the specified currency. See the Currency Codes section for details.
10 character invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a batch in Shift4's Gateway.
A free-form notes field that supports the use of HTML tags. This can be used for reference in Lighthouse Transaction Manager and is not sent to the authorization host. Escaped quotation marks should not be sent in the Notes field.
The payment card number entered in an initial authorization/sale request. This field will always be masked when returned in a response.
Conditional: Send only when card data is manually entered or when using a token. This field should not be specified when using an encrypted device.
Card expiration date in MMYY format. This value should only be populated in the initial sale/authorization request.
The method used to capture a payment card.
Value | Description |
---|---|
M | Manual Entry |
Conditional: Send in the initial authorization/sale request
Indicates whether a card was present (‘Y’) or not (‘N’) at the time a transaction took place. This should be set appropriately in the initial authorization/sale request. In subsequent requests, this field should be left blank or should not be sent.
Note: Subsequent request here does not apply to the secondary request for card on file type transactions or reuse of the same card. An example of a subsequent request would be a capture after an authorization. You would not include card.present
in the capture, which is the subsequent request. Another example is when performing an incremental authorization where you perform an authorization, followed by an incremental authorization then a capture. The second authorization (incremental) and the capture are the subsequent requests where you would not include card.present
.
Customer email address.
Public source IP Address where the request originates, not the IP Address of the web server.
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.
- Host Direct Test URL
https://api.shift4test.com/api/rest/v1/oct/payout
- Host Direct Production URL
https://api.shift4api.net/api/rest/v1/oct/payout
- Payload
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
{ "dateTime": "2021-04-15T09:18:23.283-07:00", "amount": { "total": 135.87 }, "card": { "entryMode": "M", "expirationDate": 1230, "number": "4321000000001119", "present": "N" }, "customer": { "firstName": "John", "lastName": "Smith", "emailAddress": "johnsmith@email.com", "ipAddress": "63.57.84.101" }, "transaction": { "invoice": "192029", "notes": "Transaction notes are added here" }, "sourceIp": "172.110.166.244" }
{ "result": [ { "dateTime": "2021-04-15T09:18:23.283-07:00", "amount": { "total": 160 }, "card": { "number": "XXXXXXXXXXXX1119", "type": "VS", "token": { … } }, "customer": { "firstName": "John", "lastName": "Smith", "emailAddress": "johnsmith@email.com", "ipAddress": "63.57.84.101" }, "merchant": { "mid": 15877, "name": "Merchant XYZ" }, "server": { "name": "TM01CE" }, "transaction": { "authSource": "A", "invoice": "192029", "responseCode": "A", "retrievalReference": "ICTN-178768-233-79170-FUX" } } ] }
Request
Used to update the OCT recipient email address.
Integration Methods:
- Host Direct
See the Integration Methods and URLs Section sections of the Development Quick Start guide for details regarding each processing option.
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 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
- Host Direct Test URL
https://api.shift4test.com/api/rest/v1/oct/updaterecipient
- Host Direct Production URL
https://api.shift4api.net/api/rest/v1/oct/updaterecipient
- Payload
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
{ "dateTime": "2021-04-15T09:18:23.283-07:00", "sourceIp": "63.57.84.101", "customer": { "emailAddress": "oldaddress@email.com", "newEmailAddress": "newaddress@email.com" } }
Transaction was processed
{ "result": [ { "dateTime": "2022-05-10T06:34:25.049-07:00", "customer": { "emailAddress": "firstname.lastname@email.com", "newEmailAddress": "firstname.lastname@email.com" }, "merchant": { "mid": 15877, "name": "Merchant XYZ" }, "transaction": { "authSource": "A", "responseCode": "A" }, "server": { "name": "TM01CE" } } ] }