Payment Sources

Update a Payment Source

Update a card payment source.

Required authorization scope: public.payment_source:write

patch/2024-09/payment_sources/{payment_source_id}

Request

  • Base URL
    https://public-api.easyship.com
  • URL
    https://public-api.easyship.com/2024-09/payment_sources/{payment_source_id}
  • Auth
    HTTP bearer

Request body

set_default_for'shipment' required

Set current payment source as the default for selected property

Response

payment source successfully updated

Example response

{
  "payment_source": {
    "card": {
      "brand": "visa",
      "expiration_year": "2023",
      "expiration_month": "01"
    }
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.