Name a card (`label`, null to clear it) or make it the default (`default: true`). 422 `payment_method_unusable` for a declined card made the default, and then nothing is changed. 404 for a card that is not one of the organization's in this mode. Each change is in the organization's activity log

patch/v1/payment-methods/{id}

Request

  • Base URL: https://api.evictionsapi.com
  • URL: https://api.evictionsapi.com/v1/payment-methods/{id}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required

Request body

labelstring nullable
defaulttrue

Response

The card as it now is.

idstring required
brandstring nullable required
lastFourstring nullable required
status'usable' | 'failed' required
labelstring nullable required

What the organization calls the card, such as "Operating account card"; null when unnamed.

isDefaultboolean required

The card charged when a case names none. One card per mode at most.

createdAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.