# Sources

## Endpoints

### Create a source

- [POST /v1/sources](https://docs.stripe.com/api/sources/create.md?api-version=2024-06-20)

### Update a source

- [POST /v1/sources/:id](https://docs.stripe.com/api/sources/update.md?api-version=2024-06-20)

### Retrieve a source

- [GET /v1/sources/:id](https://docs.stripe.com/api/sources/retrieve.md?api-version=2024-06-20)

### Attach a source

- [POST /v1/customers/:id/sources](https://docs.stripe.com/api/sources/attach.md?api-version=2024-06-20)

### Detach a source

- [DELETE /v1/customers/:id/sources/:id](https://docs.stripe.com/api/sources/detach.md?api-version=2024-06-20)

`Source` objects allow you to accept a variety of payment methods. They represent a customer’s payment instrument, and can be used with the Stripe API just like a `Card` object: once chargeable, they can be charged, or can be attached to customers.

This API is deprecated. Use the [PaymentMethods API](https://docs.stripe.com/docs/api/payment_methods.md?api-version=2024-06-20) instead.

Related guides: [Sources API](https://docs.stripe.com/docs/sources.md?api-version=2024-06-20) and [Sources & Customers](https://docs.stripe.com/docs/sources/customers.md?api-version=2024-06-20).
