---
title: "Update payment methods from payment provider"
method: POST
path: "/customers/{customer_id}/sync_payment_methods_from_gateway"
tags: ["Customer"]
---

# Update payment methods from payment provider

`POST /customers/{customer_id}/sync_payment_methods_from_gateway`

Sync Orb's payment methods for the customer with their gateway.

This method can be called before taking an action that may cause the customer to be charged, ensuring that the most up-to-date
payment method is charged.

**Note**: This functionality is currently only available for Stripe.

## Path parameters

- `customer_id` string, nullable, required

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `413` — Content Too Large
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.dev/withorb/apis/api-reference.md) · [All operations](https://skmtc.dev/withorb/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/withorb/api-reference/revisions/816dfe734e2e/schema)
