> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AttachCustomerPaymentMethodInput

> Input for attaching a payment method to a customer



**Kind**: `input`

## Fields

**`billingCurrency`**: `Currency`

The currency to use for this payment method (only used for Zuora)

---

**`customerId`**: `String`

Customer slug

---

**`environmentId`**: `UUID`

The unique identifier for the environment

---

**`integrationId`**: `String`

The billing integration to use for this payment method

---

**`paymentMethodId`**: `String!` (required)

Billing provider payment method id. Attaching it makes it the customer's new default payment method for future charges; any previously attached payment method is no longer used as the default, though it is not removed from the billing provider.

---

**`refId`**: `String`

Customer slug

---

**`vendorIdentifier`**: `VendorIdentifier!` (required)

The integration type to attach the payment method to



## Related topics

- [attachCustomerPaymentMethod](https://docs.stigg.io/graphql-reference/mutations/attachCustomerPaymentMethod.md)
- [DetachCustomerPaymentMethodInput](https://docs.stigg.io/graphql-reference/types/DetachCustomerPaymentMethodInput.md)
- [InitAddStripeCustomerPaymentMethodInput](https://docs.stigg.io/graphql-reference/types/InitAddStripeCustomerPaymentMethodInput.md)
- [Attach payment method](https://docs.stigg.io/api-reference/customers/attach-payment-method.md)
- [PreparePaymentMethodFormInput](https://docs.stigg.io/graphql-reference/types/PreparePaymentMethodFormInput.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.