# VenmoPaymentContext

Object · GraphQL API

Fields returned from a Venmo payment context.

## Fields

- `id` (`ID!`) — non-null: The unique identifier.
- `merchantId` (`String`): The ID of the transacting merchant.
- `intent` (`VenmoIntent`): The intended payment flow this payment context was created with.
- `createdAt` (`Timestamp!`) — non-null: Date and time when the payment context was created.
- `updatedAt` (`Timestamp!`) — non-null: Date and time when the payment context was updated.
- `status` (`VenmoPaymentContextStatus`): The status of the payment context.
- `environment` (`VenmoEnvironment`): The Venmo environment this payment context was created in.
- `isFinalAmount` (`Boolean`): Indicates whether the purchase amount is the final amount.
- `expiresAt` (`Timestamp`): Date and time when the payment context expires.
- `paymentMethodId` (`ID`): The single-use Venmo account payment method ID.
- `clientSDKMetadata` (`ClientSDKMetadata`): Analytics data of the SDK where the QR code was scanned.
- `userName` (`String`) — deprecated since 2021-09-07: The username associated with the payment.
- `paymentMethodUsage` (`PaymentMethodUsage`): Whether the `paymentMethodId` may be used to make a one time payment (`SINGLE_USE`) or to create a vaulted multi-use payment token (`MULTI_USE`). This field will only be populated when the context was created by the `createVenmoPaymentContext` mutation, it will be `null` if the context was created by the deprecated `createVenmoQRCodePaymentContext` mutation.
- `customerClient` (`CustomerClient`): Client the customer used to initiate the transaction. This field will only be populated when the context was created by the `createVenmoPaymentContext` mutation, it will be `null` if the context was created by the deprecated `createVenmoQRCodePaymentContext` mutation.
- `merchantProfileId` (`ID`): An identifier representing the profile of the merchant used to initiate the transaction.
- `parentPaymentContextId` (`ID`): The unique identifier of the parent payment context. The presence of this field indicates that a customer has previously consented to all future purchases with this merchant, so they should not be asked again for this specific merchant.
- `displayName` (`String`): The sub-merchant display name shown on the Venmo app consent screen. This field will only be present for PayFast channel partner merchants.
- `payerInfo` (`VenmoPayerInfo`): Information about the payer's Venmo account.
- `paysheetDetails` (`VenmoPaysheetDetails`): Details about the information to be displayed on the paysheet.
- `returnUrl` (`URL`): URL for redirecting back to merchant app on the client.
- `venmoRiskCorrelationId` (`ID`): Venmo Risk Correlation ID (also known as the Client Metadata ID).
- `appSwitchContext` (`VenmoAppSwitchContext`): Venmo app switch context information.

## Used by

- [Node](/braintree/graphql/reference/types/node) — Interface; Possible type
- [VenmoPaymentContextPayload](/braintree/graphql/reference/types/venmo-payment-context-payload) — Object; venmoPaymentContext

## GraphQL definition

```graphql
type VenmoPaymentContext implements Node {
  id: ID!
  merchantId: String
  intent: VenmoIntent
  createdAt: Timestamp!
  updatedAt: Timestamp!
  status: VenmoPaymentContextStatus
  environment: VenmoEnvironment
  isFinalAmount: Boolean
  expiresAt: Timestamp
  paymentMethodId: ID
  clientSDKMetadata: ClientSDKMetadata
  userName: String @deprecated(reason: "This field is included for supporting legacy clients. Please use `payerInfo.userName` instead.")
  paymentMethodUsage: PaymentMethodUsage
  customerClient: CustomerClient
  merchantProfileId: ID
  parentPaymentContextId: ID
  displayName: String
  payerInfo: VenmoPayerInfo
  paysheetDetails: VenmoPaysheetDetails
  returnUrl: URL
  venmoRiskCorrelationId: ID
  appSwitchContext: VenmoAppSwitchContext
}
```

---

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