Skip to content
Start here

Payment Methods

List Payment Methods
client.Accounts.PaymentMethods.List(ctx, params) (*V4PagePaginationArray[PaymentMethodListResponse], error)
GET/accounts/{account_id}/payment-methods
Create Payment Method
client.Accounts.PaymentMethods.New(ctx, params) (*PaymentMethodNewResponse, error)
POST/accounts/{account_id}/payment-methods
Get Payment Method
client.Accounts.PaymentMethods.Get(ctx, paymentMethodID, query) (*PaymentMethodGetResponse, error)
GET/accounts/{account_id}/payment-methods/{payment_method_id}
Update Payment Method
client.Accounts.PaymentMethods.Update(ctx, paymentMethodID, params) (*PaymentMethodUpdateResponse, error)
PUT/accounts/{account_id}/payment-methods/{payment_method_id}
Delete Payment Method
client.Accounts.PaymentMethods.Delete(ctx, paymentMethodID, body) (*unknown, error)
DELETE/accounts/{account_id}/payment-methods/{payment_method_id}
Set Default Payment Method
client.Accounts.PaymentMethods.SetAsDefault(ctx, paymentMethodID, body) (*unknown, error)
POST/accounts/{account_id}/payment-methods/{payment_method_id}/set-as-default