# PayPalAppSwitchNativeAppInput

Input · GraphQL API

Input fields describing the native application initiating the checkout.

## Fields

- `osType` (`PayPalAppSwitchOsType`): OS of the buyer's device initiating the flow.
- `osVersion` (`String`): OS version running on the buyer's device.
- `appUrl` (`URL`) — deprecated since 2026-05-14: The universal merchant app URL used to redirect the buyer back to merchant's native app, either a Universal Link on iOS or an App Link on Android.
- `returnAppUrl` (`URL`): The universal URL of the merchant's native app to which PayPal redirects the buyer after the buyer approves the payment.
- `cancelAppUrl` (`URL`): The universal URL of the merchant's native app to which PayPal redirects the buyer after the buyer cancels the payment.
- `fallbackUrlScheme` (`String`): A fallback URL scheme used to deep-link back to the merchant app when the universal/app link cannot be opened. The scheme must be allowlisted by Braintree.

## Used by

- [PayPalAppSwitchContextInput](/braintree/graphql/reference/types/pay-pal-app-switch-context-input) — Input; nativeApp

## GraphQL definition

```graphql
input PayPalAppSwitchNativeAppInput {
  osType: PayPalAppSwitchOsType
  osVersion: String
  appUrl: URL @deprecated(reason: "Use returnAppUrl and cancelAppUrl instead for explicit control over return and cancel redirect URLs.")
  returnAppUrl: URL
  cancelAppUrl: URL
  fallbackUrlScheme: String
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)