# Introduction

A payment method is the bank account that you (or your user) register so that funds can be withdrawn from them. To withdraw funds from the payment method, you will need to create a payment request.

Using Batch Imports?
If you're using our Batch Imports feature, we automatically create the payment method during the process.

# Payment Method Flow

When you create a payment method, its initial status depends on your payment configuration:

- `pending_validation`: Penny validation is enabled for your account. Belvo validates the account owner before you can use the payment method. For more information, see Penny validation.
- `active`: Penny validation is not enabled for your account. You can use the payment method in payment requests right away.


For every status a payment method can have, see Payment Method Statuses.

# Create a payment method

You can create a payment method using either our:

- Dashboard
- API
- Batch Imports


Batch Imports and Payment Methods
If you're using our Batch Imports functionality, the Payment Method is created automatically. For more information, see our dedicated Bulk Import Direct Debit Payments article.

## Via the dashboard

To create a payment method using our dashboard:

1. In your Direct Debit dashboard:
  1. Go to **Payment Methods**.
  2. Click **Create**.
2. In the **Create Payment Method** pop-up;
  1. Select the **Customer** that this payment method relates to.
  2. Select the **Bank** where the customer's account is located.
  3. Select the **Account** type: **Savings** for a CLABE account, or **Debit Card** for a debit card number.
  4. Provide the account identifier: if you selected **Savings**, enter the customer's **CLABE**; if you selected **Debit Card**, enter the **debit card number**.
  5. Provide your internal **Reference** for this payment method.
  6. Click **Create**.



Success
You will now need to retrieve Consent from your user for the account to be debited. For more information, see our dedicated Consent article.

## Via the API

To create a payment method using our API, you just need to make a POST Create a payment method request with the following payload:


```json
{
  "customerId": "0d1a377b-b4c5-4a94-9e2e-83e59d1f6a9c",
  "accountType": "savings",
  "accountNumber": "445566790",
  "bank": "mx_bancoppel",
  "reference": "SAVINGS_445566790"
}
```

| Parameter | Type | Required | Description | Example |
|  --- | --- | --- | --- | --- |
| `customerId` | string (uuid) | Yes | The Belvo-generated ID for the customer. | `0d1a377b-b4c5-4a94-9e2e-83e59d1f6a9c` |
| `accountType` | string (enum) | Yes | The bank account or card type. Can be either `savings` (a CLABE account) or `debit_card` (a debit card number). | `savings` |
| `accountNumber` | string | Yes | The bank account or debit card number. For `savings`, provide the CLABE account number; for `debit_card`, provide the debit card number. | `"445566790"` |
| `bank` | string (enum) | Yes | The financial institution where the bank account is held. For a full list of available institutions, see our dedicated Institutions article. | `mx_bancoppel` |
| `reference` | string | Yes | Your internal reference for the payment method. | `SAVINGS_445566790` |


`checking` account type deprecated
The `checking` (also seen as `checkings`) value for `accountType` is deprecated and should no longer be used. Use `savings` for a CLABE account or `debit_card` for a debit card number.

Success
You will now need to retrieve Consent from your user for the account to be debited. For more information, see our dedicated Consent article.

# Payment Method Statuses

A payment method can have one of the following statuses:

| Status  | Description |
|  --- | --- |
| `pending_validation` | Penny validation is in progress. You cannot use the payment method yet. |
| `active` | You can use the payment method in payment requests. |
| `error` | Penny validation was not successful, or the financial institution invalidated the account (for example, the account is closed). The `failedReason` and `failedMessage` fields describe the cause. You cannot use the payment method. |
| `canceled` | Belvo canceled the payment method. You cannot use the payment method. |
| `inactive` | You deactivated the payment method. You cannot use it in new payment requests. |


For the transitions between these statuses, what triggers each one, and the webhooks you receive, see Direct Debit entity states.