# paymentMethodCreate

Create a payment method

**Scope required:** billing:write

```graphql
mutation paymentMethodCreate ($accountId: ID!, $pluginGuid: ID!, $token: String!) {
  paymentMethodCreate (accountId: $accountId, pluginGuid: $pluginGuid, token: $token) {
      errors
      paymentMethod {
        accountId
        createdAt
        disabled
        expirationDate
        failureCode
        failureReason
        id
        isDefault
        lastSuccess
        pluginId
        updatedAt
      }
  }
}
```

## Arguments

```json
{
  "accountId": "456123",
  "pluginGuid": "456123",
  "token": ""
}
```

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| accountId  | ID     |             |
| pluginGuid | ID     |             |
| token      | String |             |

## Response

| Name          | Type                                                                                | Description |
| ------------- | ----------------------------------------------------------------------------------- | ----------- |
| errors        | List (String)                                                                       |             |
| paymentMethod | [PaymentMethod](https://docs.bunny.com/developer/api-reference/types/paymentmethod) |             |
