# createBillingAgreementJwt

Mutation · GraphQL API

Exchanges a Payment Method JWT for a Billing Agreement JWT for the View/Edit Funding Instrument workflow.

## Authentication

- CLIENT

## Input

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

## Returns [CreateBillingAgreementJwtPayload](/braintree/graphql/reference/types/create-billing-agreement-jwt-payload)

The payload containing a newly created Billing Agreement JWT for the View/Edit Funding Instrument workflow.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `jwt` (`String!`) — non-null: The signed Billing Agreement JWT containing the billing agreement ID.

## Examples

### Create billing agreement jwt

Input fields for creating a Billing Agreement JWT for the View/Edit Funding Instrument workflow.

```graphql
mutation createBillingAgreementJwt($input: CreateBillingAgreementJwtInput!) {
  createBillingAgreementJwt(input: $input) {
    clientMutationId
    jwt
  }
}
```

---

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