Payment Method
The Payment Method APIs provide details about a payment method. You can retrieve, update, and delete payment methods.
End Points
Update Payment Method
Retrieve Payment Method
Delete Payment Method
Attribute
payment_method_id
string
A unique identifier for the payment method.
customer_id
string
A unique identifier for the customer.
customer_name
string
Name of the customer.
customer_email
string
Email address of the customer.
type
string
The type of payment method. (e.g.,
card
or ach_debit
) ach_debit
object
Contains ACH details
account_holder_name
string
Name of the account holder.
routing_number
string
Routing number.
account_holder_type
string
Account holder type. ( eg.,
individual
or company
) bank_name
string
Name of the bank.
account_type
string
Type of the account. (eg.,
savings
) last_four_digits
string
The last four digits.
card
object
Contains card details.
card_holder_name
string
The name of the cardholder.
last_four_digits
string
The last four digits of the card number.
expiry_month
string
The month when the card expires, formatted as MM.
expiry_year
string
The year when the card expires, formatted as YY.
card_checks
object
Contains card checks. Card check Status can be
pass
, fail
, unavailable
, or unchecked
. address_line_check
string
The result of the address line check.
postal_code_check
string
The result of the postal code check.
cvc_check
string
The result of the CVC check.
status
string
The status of the payment method. (e.g.,
active
, expired
, blocked
, processing
, or, deleted
) currency
string
The currency in which the payment method operates.
created_time
long
The timestamp (milliseconds) indicating when the payment method was created.
last_modified_time
long
The timestamp (milliseconds) indicating when the payment method was last modified.
Update Payment Method
This API endpoint allows you to update the details of a payment method.
OAuth Scope : ZohoPay.paymentmethods.UPDATE
Arguments
type
string
(Required)
The type of payment method. (e.g.,
card
or ach_debit
) ach_debit
object
account_holder_type
string
Account holder type. ( eg.,
individual
or company
) card
object
expiry_month
string
The month when the card expires, formatted as MM.
expiry_year
string
The year when the card expires, formatted as YY.
billing_address
object
Contains billing address details.
name
string
Billing name.
address_line1
string
First line of the customer’s billing address.
address_line2
string
Second line of the customer’s billing address.
city
string
City of the customer’s billing address.
state
string
State of the customer’s billing address.
country
string
(Required)
Country of the customer’s billing address.
postal_code
string
Postal Code of the customer’s billing address.
Query Parameters
account_id
(Required)
The Zoho Payments account ID.
Retrieve Payment Method
This API endpoint allows you to retrieve the details of a specific payment method.
OAuth Scope : ZohoPay.paymentmethods.READ
Query Parameters
account_id
(Required)
The Zoho Payments account ID.
Delete Payment Method
This API endpoint allows you to delete a payment method.
OAuth Scope : ZohoPay.paymentmethods.DELETE
Query Parameters
account_id
(Required)
The Zoho Payments account ID.