How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Shift4 Pay Pal API

The PayPal API from Shift4 — 3 operation(s) for paypal.

Shift4 Pay Pal API is one of 21 APIs that Shift4 publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include PayPal. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 3 operations across 3 paths, and defines 80 schemas. It is described by OpenAPI 3.2.0, at version 1.7.57.

Requests are made against 2 base URLs: https://api.shift4test.com/api/rest/v1, https://api.shift4api.net/api/rest/v1.

3 operations 3 paths 80 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.7.57
Base URL
https://api.shift4api.net/api/rest/v1
Authentication
API Key, HTTP Hmac-Sha256
Resource Areas
1

Authentication & Security 2

Shift4 Pay Pal API declares 2 security schemes for authenticating requests. An API key is passed in the header as AccessToken (AccessToken). It uses HTTP hmac-sha256 authentication (HMAC-SHA256).

  • AccessToken — A security credential used to authenticate API requests and all [i4Go®](https://s4-myportal.s3.amazonaws.com/downloads/documentation/i4go/i4go%20technical%20re…
  • HMAC-SHA256 — Authentication using HMAC-256 signatures as the authorization scheme. Sent in the Authorization header in the following format: Authorization: HMAC-SHA256 Cred…

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 POST. Each is listed below with its method, path, parameters, and response codes.

PayPal 3
POST
/paypal/initiate
PayPal Initiate
paypalinitiate 4 params body → 200
POST
/paypal/sale
PayPal Sale Transaction
paypalsale 4 params body → 200
POST
/paypal/refund
PayPal Refund Transaction
paypalrefund 4 params body → 200

Schemas 80

The contract defines 80 schemas that model the data the API accepts and returns. The most detailed are AirlineFlightLegsPayPal (14 properties), AirlineRequestPayPal (12 properties), OTARequestPayPal (7 properties), AirlineTicketsPayPal (3 properties). Each schema is shown below with its type and property counts.

TransactionResponseCode
string
Code indicating the Shift4 host response. Value | Description | Details -------|-------------------------------------------------------------------------------…
AirlineTaxAmount
number
The tax amount
CustomerEnrollDate
string
Date of the user's first transaction in your system, regardless of payment method used. The date and time must be passed in ISO 8601 format including the timez…
OTAStartCity
string
OTA start city.
AirlineFlightLegsFlightNumber
string
Number of the airline flight to be taken on Leg of the trip.
CustomerAddressLine1
string
Cardholder’s street address exactly as it appears on their billing statement. This field is used in AVS.
MerchantName
string
The merchant’s business name as configured with Shift4.
CustomerLastName
string
Specifies a consumer’s last name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the re…
AirlinePassengerCode
string
The code supplied by the customer using a purchase card. Maximum 17 characters.
TransactionVendorReference
string
Optional field for information that can be searched in the merchant portal.
AirlinePassengerCountryCode
string
The passenger's nationality in ISO 3166 Alpha-2 format.
AmountTotal
number
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.
SourceIP
string
Public source IP Address where the request originates, not the IP Address of the web server.
AirlineTicketsArrayPayPal
array
Array of ticket number and passenger name. Note: At least one instance of ticket number and passenger name info should be provided.
CustomerRegion
string
A level 2 country subdivision code according to ISO-3166-2.
AirlineIssueDate
string
The date the ticket was issued to the customer. The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm).
CustomerCity
string
Customer address city.
OTARequestPayPal
object
Conditional: Utilize this object for Online Travel Agency transactions
7 properties 7 required
PayPalPaymentMethodId
string
Identifier for a single or multi-use payment token
MerchantMID
number
The merchant ID associated with the merchant account.
CustomerEmailAddress
string
Customer email address.
AirlineFlightLegsDestAirportCode
string
Indicates destination city's airport code for the leg.
PayPalPaymentMethodIdUsage
string
Dictates whether paymentMethodId returned will be single or multi-use payment token Value|Description -----|----------- S | Single Use M | Multiple Use
PayPalClientToken
string
A Base64 encoded string used to initialize client SDKs.
AirlinePassengerBirthDate
string
The passenger's date of birth in YYYY-MM-DD format
ServerName
string
The name of the server that processed the request.
AirlineRestrictedTicketIndicator
string
Indicates whether this ticket is non-refundable. Value | Description -------|------------------- 0 | No restriction 1 | Restricted (non-refundable) ticket
PayPalLegacyId
string
Legacy unique identifier.
AirlinePassengerArrivalDate
string
Date that the ticket holder is scheduled to arrive at their destination at the time of issuance of the original ticket. The date and time in ISO 8601 format in…
CustomerFirstName
string
Specifies a consumer’s first name. This field is used in AVS. If the interface sends this field, the value specified by the interface will be returned in the r…
DateTime
string
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 ex…
TransactionInvoice
string
10-digit invoice number assigned by the interface to identify a transaction. An invoice number serves as a unique key that identifies a transaction within a ba…
PayPalClientMetaDataId
string
Identifier for completing risk check. Returned if transaction.ota is sent in the request.
AirlineFlightLegsServiceClass
string
Indicates service class for leg. Value | Description -------|--------------- FC | First Class BC | Business Class EC | Economy/Coach Class
PayPalCaptureId
string
If funds for the transaction have settled, the PayPal ID for the capture of funds.
PayPalAuthorizationId
string
If the transaction was successfully authorized, the PayPal ID for the authorization.
CustomerBrowserType
string
Internet browser or simply a browser.
AirlineConjunctionTicketIndicator
string
Indicates whether the itinerary contains more than four segments of travel. Value | Description -------|------------------- Y | Yes N | No
AirlineTravelAgencyCode
string
Code identifying travel agency if the ticket was issued by a travel agency. Conditional: Send if a travel agency service was used.
OTAStartCountry
string
OTA start country in ISO 3166 Alpha-2 format.; for example, country where bus ticket was purchased.
AmountTax
number
The amount of sales tax charged for a transaction. The tax amount is used by businesses to track tax expenses for accounting purposes. Identifying the tax amou…
AirlineTravelAgencyName
string
Name of travel agency if the ticket was issued by a travel agency. Conditional: Send if a travel agency service was used.
AirlineFlightLegsCouponNumber
number
Number of coupons in the ticket for the leg.
CustomerCountry
string
2 character ISO Country Code. See the [ISO](https://www.iso.org/obp/ui/search/code/) website for details.
OTAStartZipCode
string
OTA start zip code.
AirlineFlightLegsOriginAirportCode
string
Indicates origination city's airport code for the leg.
TransactionOriginalDate
string
The date and time of the original transaction request in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh:mm). Must be an exact match…
AirlineTicketsTicketNumber
string
The ticket number provided by the Carrier for the passenger.
CustomerPhoneCountry
string
Country calling code of the phone number. Required when sending customer.phoneNumber.
MerchantResponse
object
2 properties
PayPalPayerId
string
The ID belonging to the PayPal account.
AirlineFlightLegsLegDepartureDateTime
string
The date and time the flight is scheduled to depart for the leg. The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh…
AirlineExchangeTicketNumber
string
The original ticket number that was replaced by a new ticket number.
PayPalTransactionId
string
Unique identifier.
TransactionNotes
string
A free-form notes field that supports the use of HTML tags. This can be used for reference in [Lighthouse Transaction Manager](https://ltm.shift4test.com/) and…
AirlineRequestPayPal
object
Conditional: Utilize this object for Airline transactions
12 properties 4 required
AirlineFlightLegsLegArrivalDateTime
string
The date and time the flight is scheduled to arrive for the leg. The date and time in ISO 8601 format including the timezone offset (yyyy-mm-ddThh:mm:ss.nnn+hh…
PayPalStatus
string
The current status of this transaction.
AirlineCarrierCode
string
The code of the airline carrier issuing the ticket.
AirlineFlightLegsCarrierCode
string
Code indicating name of carrier (United Airlines, Jet Blue, etc.) for the leg.
AirlineFlightLegsPayPal
object
14 properties 7 required
TransactionOriginalInvoice
string
The invoice number from the original sale. Used to link the refund to the original sale. Note: For US and Canadian processing: Although the invoice number is s…
AirlineTicketsPassengerName
string
Name of the passenger to whom the ticket was issued. This field contains the Passenger Name in format: SURNAME FIRSTNAME MIDDLEINITIAL TITLE Example: "Doe Jane…
AirlineTicketsPayPal
object
3 properties 2 required
OTAServiceEndDate
string
OTA service end date in YYYY-MM-DD format. A consumer booking a service such as a hotel for too many days elevates risk.
CustomerIpAddress
string
Public source IP Address where the request originates, not the IP Address of the web server.
AirlineFlightLegsFareBasis
string
This field contains primary and secondary discount codes that indicate the class of service and fare level associated with the ticket for the leg. Truncate at…
PayPalPaymentMethodNonce
string
A payment method nonce is a secure, one-time-use reference to payment information. It's the key element that allows your server to communicate sensitive paymen…
CustomerPhoneNumber
string
Customer phone number
AirlineTicketsTicketFare
number
Ticket fare is the total amount for each ticket, including service fee or any other fee for each ticket.
OTAChangeGuest
string
Whether the guest (the person being served) is able to be changed. Fraudsters tend to pay for services that can change the guest.
CustomerExternalId
string
Your external identifier for the Customer
PayPalOrderId
string
Additional information about the transaction.
PayPalDeviceData
string
The customer's device information.
TransactionAuthSource
string
In a response, a code returned by the processor to indicate which host issued the response. Value | Description -------|---------------------------- E | Engine…
OTAType
array
OTA transaction type array.
OTAServiceStartDate
string
OTA service start date in YYYY-MM-DD format. A service start date that is very close to the transaction date elevates risk.
AirlineFlightLegsStopOverCode
string
Indicates whether a stopover is allowed on this ticket for leg. The entry must be a D, O, or X. Value | Description -------|--------------- O | Stopover allowe…
AirlineFlightLegsArrayPayPal
array
Array of flight trip leg info. Maximun 4 legs to a trip allowed. Note: At least one instance of flight trip leg info should be provided.
CurrencyCode
string
Transaction currency code. See the [Currency Codes](/guides/appendices/currency-codes) section for details. Note: This is currently supported when processing f…

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

shift4-paypal-api-openapi.yml Raw ↑

Other APIs Shift4 publishes across the network.

Shift4 3D Secure API
Shift4 ACH API
Shift4 Batches API
Shift4 Cards API
Shift4 Checkout Sessions API
Shift4 Credentials API
Shift4 DCC API
Shift4 Devices API
Shift4 Gift Cards API
Shift4 Merchants API
Shift4 Mode API
Shift4 OCT API
Where this information came from

This is an independent, third-party profile of Shift4 Pay Pal API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.