# createLocalPaymentContext

Mutation · GraphQL API

Creates a local payment context. Your account must be enabled to use this feature.

## Authentication

- SERVER

## Input

- `input` (`CreateLocalPaymentContextInput!`) — required

## Returns [CreateLocalPaymentContextPayload](/braintree/graphql/reference/types/create-local-payment-context-payload)

The result of a request to make a local payment context.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `paymentContext` (`LocalPaymentContext`): Details about the local payment context.

## Examples

### Create local payment context

Top-level input fields for creating a local payment context.

```graphql
mutation createLocalPaymentContext($input: CreateLocalPaymentContextInput!) {
  createLocalPaymentContext(input: $input) {
    clientMutationId
    paymentContext {
      __typename
      id
      legacyId
      type
      approvalUrl
      amount {
        value
        currencyCode
      }
      merchantAccountId
      transactedAt
      approvedAt
      createdAt
      updatedAt
      expiredAt
      paymentId
      orderId
    }
  }
}
```

---

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