# LocalPaymentContext

Object · GraphQL API

The LocalPayment object.

## Fields

- `id` (`ID!`) — non-null: Unique identifier for the payment context.
- `legacyId` (`ID!`) — non-null: Legacy unique identifier.
- `type` (`LocalPaymentMethodType`): The type of the local payment.
- `approvalUrl` (`String`): The URL to which a customer should be redirected to approve the local payment.
- `amount` (`MonetaryAmount`): The amount charged in this local payment.
- `merchantAccountId` (`String`): The merchant account used to create the payment context.
- `transactedAt` (`Timestamp`): Date and time when the local payment context was used to create a transaction.
- `approvedAt` (`Timestamp`): Date and time when the local payment context was approved by the customer.
- `createdAt` (`Timestamp!`) — non-null: Date and time when the local payment context was created.
- `updatedAt` (`Timestamp!`) — non-null: Date and time when the local payment context was updated.
- `expiredAt` (`Timestamp`): Date and time when the local payment context was expired.
- `paymentId` (`String!`) — non-null: Unique identifier for the local payment.
- `orderId` (`String`): The PayPal Invoice ID.

## Used by

- [CreateLocalPaymentContextPayload](/braintree/graphql/reference/types/create-local-payment-context-payload) — Object; paymentContext
- [CreateNonInstantLocalPaymentContextPayload](/braintree/graphql/reference/types/create-non-instant-local-payment-context-payload) — Object; paymentContext
- [Node](/braintree/graphql/reference/types/node) — Interface; Possible type

## GraphQL definition

```graphql
type LocalPaymentContext implements Node {
  id: ID!
  legacyId: ID!
  type: LocalPaymentMethodType
  approvalUrl: String
  amount: MonetaryAmount
  merchantAccountId: String
  transactedAt: Timestamp
  approvedAt: Timestamp
  createdAt: Timestamp!
  updatedAt: Timestamp!
  expiredAt: Timestamp
  paymentId: String!
  orderId: String
}
```

---

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