Skip to content

PaymentSource.update

PATCH /{namespace}/payment-sources/{id}

Changes the given properties of a Payment Source.

Mode
do
Event
PaymentSource.updated

Update changes the given properties of a Payment Source. It is inherited: every Noun has get, list, create, update and delete.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Payment Source.
kindstringHow it pays: a card, a bank debit from the Customer’s account, or a wallet on the Customer’s phone or browser.
labelstringWhat the Customer sees, such as the card brand and last four digits; never the full number.
expiresOndateWhen a card expires; the billing portal asks for a new one 30 days before.
defaultbooleanTrue for the one Payment Source that new Invoices and renewals charge.
removedAtdatetimeWhen the Customer removed it; nothing charges it after, and the record stays.

Outputs

OutputTypeRequiredDescription
paymentSourcePayment SourcerequiredThe Payment Source.

Effects

  • Emits PaymentSource.updated.
  • Two-way: try, send, do.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.PaymentSource.update

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.