Skip to main content
PUT
Update CoworkerPaymentMethod
Updates an existing CoworkerPaymentMethod record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerPaymentMethod-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the CoworkerPaymentMethod record to update.
integer
required
Customer this payment method belongs to.
integer
required
Location that issued or will charge invoices using this payment method.

Optional Fields

integer
Payment provider for this method. For this entity, valid values are Stripe (2), StripeACH (11), StripeBACS (13), and GoCardless (12).. See eRegularPaymentProvider? enum above.
string
Provider payment method ID (e.g. Stripe payment method ID).
string
Provider customer ID (e.g. Stripe or GoCardless customer ID).
string
GoCardless mandate ID. Only populated for GoCardless payment methods..
string
Masked card number for display purposes only.
string
Optional notes about this payment method.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the coworkerpaymentmethod was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response