---
title: "Update a Payment Source"
method: PATCH
path: "/2024-09/payment_sources/{payment_source_id}"
tags: ["Payment Sources"]
---

# Update a Payment Source

`PATCH /2024-09/payment_sources/{payment_source_id}`

Update a card payment source.

Required authorization scope: `public.payment_source:write`

## Request body

- PaymentSourceUpdate
  - `set_default_for` 'shipment', required — Set current payment source as the default for selected property

## Response `200`

payment source successfully updated

- PaymentSourceSingle — Payment source details
  - `payment_source` PaymentSource
    - `id` string, uuid — Payment source id in Easyship
    - `third_party_source_id` string — Third party payment source id
    - `payment_method_type` 'card' | 'bank_account'
    - `bank_account` object
      - `bank_name` string — Bank name
      - `holder_name` string — Account holder name
      - `last_four_digits` string — Last four digits of bank account number
      - `routing_number` string — Routing number
      - `is_verified` boolean — Whether the bank account is verified by Stripe
    - `card` object
      - `brand` string — Credit card brand
      - `expiration_year` string — The expiration year of the card
      - `expiration_month` string — The expiration month of the card
      - `last_four_digits` string — Last four digits of credit card
      - `holder_name` string, nullable — Card holder name
  - `meta` Meta
    - `request_id` string — An unique ID represent the request.

## Other responses

- `404` — No record found

---

[API](https://skmtc.net/easyship/apis/easyship-public-api.md) · [All operations](https://skmtc.net/easyship/apis/easyship-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/easyship/easyship-public-api/revisions/71d737a5fcbf/schema)
