Skip to content

Older API Reference (2025-12-17)

This API Reference contains the API operations that we no longer recommend you use.

Although we do not recommend these API operations, you can continue to use these API operations if you have integrated with them. You are not required to make changes to your existing integration.

For more information about this change, see this Community post.

Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.zuora.com/_mock/v1-api-reference/older-api
https://rest.zuora.com

Actions

Actions are operations that are batch in nature. For example, the "create", "update", "delete", and other operations allow changes to up-to 50 objects at a time. The "query" operation will return up-to 2000 result records back at a time, before requiring additional pages of data to be returned via a subsequent "queryMore" operation.

The default WSDL version for Actions is 79. If you want to change the WSDL version, set the X-Zuora-WSDL-Version header. To find out in which WSDL version a particular object or field was introduced, see Zuora SOAP API Version History.

Note: Actions do not support the Invoice Settlement feature. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. Actions also do not support the Orders feature.

Operations

Accounts

Some operations in this section are similar to each other, but are provided for different use scenarios. You should choose the one that best suits your needs.

For example, the Create account operation is used to create an account with a credit card payment method, a bill-to contact, and optionally an sold-to contact or an associated subscription. If you want to create an account without creating any associated objects such as subscriptions, use CRUD: Create Account instead.

If you want to create an account and the associated subscription at the same time without providing credit card information, use the Subscribe action.

Operations

Amendments

You can use amendments to modify subscriptions. However, Zuora recommends you to use the Create an order operation to do so.

Operations

Bill Runs

Operations

Contacts

A contact defines the customer who holds an account or who is otherwise a person to contact about an account. An account requires a contact for the BillToId and SoldToId fields before the account can be active.

Operations

Catalog

The Zuora Billing product catalog is where you define your products and pricing. The product catalog's ability to handle sophisticated pricing models gives you the power to easily adapt your pricing to customer and market needs, to grow your business and drive more revenue.

Operations

Charge Metrics

Charge Metrics provides a service to access key metrics for rate plan charges in Zuora, for example, Gross MRR, Net MRR, Gross TCV, and Net TCV.

Operations

Charge Revenue Summaries

Operations

Communication Profiles

Operations

Connections

Establishes a connection to the Zuora REST API service based on a valid user credentials.

Note: This is a legacy REST API. Zuora recommends you to use OAuth for authentication instead.

Operations

Credit Balance Adjustments

A credit balance adjustment represents one adjustment made to the credit balance.

'

Operations

Document Properties

You can create, update, and retrieve custom document properties for a billing document. For example, a document property can be a custom name used for files generated for billing documents. Billing documents include invoices, credit memos, and debit memos.

Note: You can manage document properties for credit memos and debit memos only if you have the <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement" target="_blank">Invoice Settlement</a> feature enabled.

Operations

Entities

An entity represents a business unit that operates independently and can sell products to multiple countries. Each entity has its own Zuora environment in which the entity users can perform business operations independent of the other entities. In a multi-entity hierarchy, an entity can share certain business objects with the other entities. Users that are created in an entity can be granted access to the other entities with different roles and permissions.

Note: Entities are available only if you have the <a href="https://knowledgecenter.zuora.com/Billing/Tenant_Management/Multi-entity" target="_blank">Multi-entity</a> feature enabled. If you want to have access to the Multi-entity feature, submit a request at <a href=“http://support.zuora.com/” target=“_blank”>Zuora Global Support</a>.

Operations

Entity Connections

If you want to share business objects across entities, you have to set up a connection between the source entity and the target entity first.

Note: Entity connections are available only if you have the <a href="https://knowledgecenter.zuora.com/Billing/Tenant_Management/Multi-entity" target="_blank">Multi-entity</a> feature enabled. If you want to have access to the Multi-entity feature, submit a request at <a href=“http://support.zuora.com/” target=“_blank”>Zuora Global Support</a>.

Operations

Exports

You can export items from Zuora to CSV or HTML files, such as large data sets, invoices, payments, and so on. Use the Export object and Export ZOQL queries to create an export file that you can download and use for charting, reporting, accounting, or for other business intelligence uses.

When you export data from Zuora, each exported file is available for download for 7 days. Export objects older than 90 days are automatically deleted.

Operations

Features

After you have created a feature, you can add features to the products and subscriptions to enhance your product offerings.

To create features in the product catalog and use them in subscriptions and Zuora Quotes, you need to enable the following:

  • The Entitlements setting in your tenant. Access to the Entitlements feature requires a specific edition of Zuora. For more information, see <a href="https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/C_Zuora_Editions" target="_blank">Zuora Editions</a>.
  • The <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Enable_Feature_Specification_in_Products_and_Subscriptions.3F" target="_blank">Enable Feature Specification in Product and Subscriptions</a> setting in the Billing Settings.
Operations

HMAC Signatures

A Hash-based Message Authentication Code (HMAC) signature is a form of a digital signature. HMAC signatures start with a secret key that is shared between the sender and the recipient.

You can use the operation contained in this section to generate the unique signature and token values that are used to process CORS-enabled API calls.

Operations

Invoice Adjustments

An invoice adjustment modifies an existing invoice. You use an invoice adjustment to change the entire invoice. For example, you can apply a late fee to the invoice balance.

An invoice adjustment differs from an invoice item adjustment. An invoice item adjustment affects an individual charge or line item on an invoice. An invoice adjustment affects the invoice at the header-level.

Note: Invoice Adjustment is deprecated on Production in WSDL version 64.0. Zuora recommends that you use the Invoice Item Adjustment to adjust invoices. If you have the <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement" target="_blank">Invoice Settlement</a> feature enabled, this object is deprecated and only available for backward compatibility.

Operations

Invoice Item Adjustments

Invoice item adjustments allow you to adjust the invoice details, including taxes at the charge level, and have those adjustments reported in the system under the same accounting code as the items that are being adjusted.

Note: The <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement" target="_blank">Invoice Settlement</a> feature is a replacement for Invoice Item Adjustments. We recommend that you enable Invoice Settlement to take advantage of the improved functionalities. If you have the Invoice Settlement feature enabled, the Invoice Item Adjustments feature is deprecated and invoice item adjustments are not presented in the UI. If you have to export data for invoice item adjustments, use <a href="https://knowledgecenter.zuora.com/Billing/Reporting/D_Data_Sources_and_Exports/D_Generate_a_Data_Source_Export" target="_blank">Data Source</a>, <a href="https://knowledgecenter.zuora.com/Central_Platform/Query/Data_Query" target="_blank">Data Query</a>, or REST API.

Operations

Invoice Items

Invoice items are the line items contained in the invoices that you send to your customers. For more information about invoices, see <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices" target="_blank">Invoices</a>.

Operations

Invoice Payments

Use invoice payments to tie a payment to an invoice and indicate how much of the payment was applied to the invoice.

Operations

Invoice Split Items

Use invoice split items to split the original invoice into multiple invoices.

Operations

Invoice Splits

Use invoice splits to hold two or more invoice split items.

Operations

Invoices

Invoices provides information about customers' accounts for invoices, for examples, dates, status, and amounts.

For more information about invoices, see <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/A1_Invoice_Introduction" target="_blank">Invoice</a>.

Operations

Orders

Orders are contractual agreements between merchants and customers.

For more information about Orders, see <a href="https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders" target="_blank">Orders</a>.

Operations

Payment Gateway Transaction Logs

Operations

Payment Methods

Payment methods represents payment method details associated with a customer account.

Operations

Create a credit card payment method

Request

Note: This legacy API operation is no longer under active development. For more features, it is strongly recommended to use the Create a payment method operation.

You can create a credit card payment method for a customer account or an orphan credit card payment method that is not associated with any customer account.

This API call is CORS Enabled. Use client-side JavaScript to invoke the call.

If you use this operation to create credit card payment methods instead of using the iFrame of Hosted Payment Pages, you are subject to PCI-compliance audit requirements.

Headers
Idempotency-Keystring<= 255 characters

Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types.

With this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident.

Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

Bodyapplication/jsonrequired
accountKeystring

ID of the customer account. To create an orphan payment method that is not associated with any customer account, you can skip this field. As soon as the account information is available, associate the payment method with an account through the Update a payment method operation.

Example: "8ad09be48db5aba7018db604776d4854"
cardHolderInfoobject(cardHolderInfo)

Container for cardholder information. If provided, Zuora will only use this information for this card. Otherwise, Zuora will use the account''s existing bill-to contact information for this card.

creditCardNumberstringrequired

Credit card number, a string of up to 16 characters. This field can only be set when creating a new payment method; it cannot be queried or updated.

Example: "4111111111111111"
creditCardTypestringrequired

The type of the credit card.

Possible values include Visa, MasterCard, AmericanExpress, Discover, JCB, and Diners. For more information about credit card types supported by different payment gateways, see Supported Payment Gateways.

Example: "Visa"
defaultPaymentMethodboolean

Specify true to make this card the default payment method; otherwise, omit this parameter to keep the current default payment method.

expirationMonthintegerrequired

One or two digits expiration month (1-12).

Example: 10
expirationYearintegerrequired

Four-digit expiration year.

Example: 2021
gatewayOptionsobject

The field used to pass gateway-specific parameters and parameter values.

Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.

mitConsentAgreementRefstring<= 128 characters

Specifies your reference for the stored credential consent agreement that you have established with the customer. Only applicable if you set the mitProfileAction field.

mitConsentAgreementSrcstring

Required if you set the mitProfileAction field. If you do not specify the mitProfileAction field, Zuora will automatically create a stored credential profile for the payment method, with the default value External set to this field.

Value"External"
mitNetworkTransactionIdstring<= 128 characters

Specifies the ID of a network transaction. Only applicable if you set the mitProfileAction field to Persist.

mitProfileActionstring

Specifies how Zuora creates and activates a stored credential profile. If you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value Activate set to this field.

Enum"Activate""Persist"
mitProfileAgreedOnstring(date)

The date on which the profile is agreed. The date format is yyyy-mm-dd.

mitProfileTypestring

Required if you set the mitProfileAction field. Indicates the type of the stored credential profile to process recurring or unsecheduled transactions. If you do not specify the mitProfileAction field, Zuora will automatically create a stored credential profile for the payment method, with the default value Recurring set to this field.

Enum"Recurring""Unscheduled"
numConsecutiveFailuresinteger(int32)[ 0 .. 100 ]

The number of consecutive failed payments for this payment method. It is reset to 0 upon successful payment.

securityCodestring

The CVV or CVV2 security code for the credit card or debit card. Only required if changing expirationMonth, expirationYear, or cardHolderName. To ensure PCI compliance, this value isn't stored and can't be queried.

property name*anyadditional property

Custom fields of the payment method. The name of each custom field has the form <code>customField__c</code>. Custom field names are case sensitive. See Manage Custom Fields for more information.

curl -i -X POST \
  https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/payment-methods/credit-cards \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: string' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string' \
  -d '{
    "accountKey": "8ad09be48db5aba7018db604776d4854",
    "creditCardType": "Visa",
    "creditCardNumber": "4111111111111111",
    "expirationMonth": 10,
    "expirationYear": 2021
  }'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
paymentMethodIdstring

ID of the newly-created payment method.

successboolean

Returns true if the request was processed successfully.

Response
application/json
{ "paymentMethodId": "2c92c8f83dcbd8b1013dcce1d6a60", "success": true }

Update a credit card payment method

Request

Updates an existing credit card payment method.

Path
payment-method-idstringrequired

Unique ID of the payment method to update.

Headers
Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

Bodyapplication/jsonrequired
addressLine1string

First address line, 255 characters or less.

addressLine2string

Second address line, 255 characters or less.

cardHolderNamestring

The full name as it appears on the card, e.g., "John J Smith", 50 characters or less.

Example: "Amy Lawrence"
citystring

City, 40 characters or less.

countrystring

Country; must be a valid country name or abbreviation.

defaultPaymentMethodboolean

Specify "true" to make this card the default payment method; otherwise, omit this parameter to keep the current default payment method.

emailstring

Card holder's email address, 80 characters or less.

expirationMonthinteger

One or two digit(s) expiration month (1-12).

expirationYearinteger

Four-digit expiration year.

gatewayOptionsobject

The field used to pass gateway-specific parameters and parameter values.

Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.

numConsecutiveFailuresinteger(int32)[ 0 .. 100 ]

The number of consecutive failed payments for this payment method. It is reset to 0 upon successful payment.

phonestring

Phone number, 40 characters or less.

securityCodestring

The CVV or CVV2 security code for the credit card or debit card. Only required if changing expirationMonth, expirationYear, or cardHolderName. To ensure PCI compliance, this value isn't stored and can't be queried.

statestring

State; must be a valid state name or 2-character abbreviation.

zipCodestring

Zip code, 20 characters or less.

property name*anyadditional property

Custom fields of the payment method. The name of each custom field has the form <code>customField__c</code>. Custom field names are case sensitive. See Manage Custom Fields for more information.

curl -i -X PUT \
  'https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/payment-methods/credit-cards/{payment-method-id}' \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Content-Type: application/json' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string' \
  -d '{
    "cardHolderName": "Amy Lawrence"
  }'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
paymentMethodIdstring

ID of the updated payment method.

successboolean

Returns true if the request was processed successfully.

Response
application/json
{ "paymentMethodId": "2c92c8f83dcbd8b1013dcce1d6a600ce", "success": true }

List all credit card payment methods of an account

Request

This REST API reference describes how to retrieve all credit card information for the specified customer account.

Notes

The response includes details of credit or debit cards for the specified customer account. Card numbers are masked. For example:

************1234

Though you can also send requests for bank transfer, ACH, or other supported payment methods, the response will not include effective details of these payment methods.

Path
account-keystringrequired

Account number or account ID.

Query
pageinteger>= 1

The index number of the page that you want to retrieve. This parameter is dependent on pageSize. You must set pageSize before specifying page. For example, if you set pageSize to 20 and page to 2, the 21st to 40th records are returned in the response.

Default 1
pageSizeinteger<= 40

The number of records returned per page in the response.

Default 20
Headers
Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

curl -i -X GET \
  'https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/payment-methods/credit-cards/accounts/{account-key}?page=1&pageSize=20' \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
creditCardsArray of objects(creditCards)

Container for one or more credit or debit card records:

nextPagestring(URL)

URL to retrieve the next page of the response if it exists; otherwise absent.

successboolean

Returns true if the request was processed successfully.

Response
application/json
{ "nextPage": "https://rest.zuora.com/v1/payment-methods/credit-cards/accounts/A00001115?page=2&pageSize=2", "creditCards": [ {}, {} ], "success": true }

CRUD: Create a payment method

Request

Use this operation to create either a payment method associated with a specific customer account, or an orphan payment method that is not associated with any customer account.

Query
rejectUnknownFieldsboolean

Specifies whether the call fails if the request body contains unknown fields. With rejectUnknownFields set to true, Zuora returns a 400 response if the request body contains unknown fields. The body of the 400 response is:

{
    "message": "Error - unrecognised fields"
}

By default, Zuora ignores unknown fields in the request body.

Default false
Headers
Idempotency-Keystring<= 255 characters

Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types.

With this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident.

Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Bodyapplication/jsonrequired
AccountIdstring

The ID of the customer account associated with this payment method. To create an orphan payment method that is not associated with any customer account, you can skip this field. As soon as the account information is available, associate the payment method with an account through the Update a payment method operation.

Example: "8ad09be48db5aba7018db604776d4854"
AchAbaCodestring

The nine-digit routing number or ABA number used by banks. This field is only required if the Type field is set to ACH.

Character limit: 9 Values: a string of 9 characters or fewer

AchAccountNamestring

The name of the account holder, which can be either a person or a company. This field is only required if the Type field is set to ACH.

Character limit: 70 Values: a string of 70 characters or fewer

AchAccountNumberstring

The bank account number associated with the ACH payment. This field is only required if the Type field is set to ACH. Character limit: 30 Values: a string of 30 numeric characters or fewer

AchAccountTypestring

The type of bank account associated with the ACH payment. This field is only required if the Type field is set to ACH. When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, Checking preferably. Character limit: 16 Values:

  • BusinessChecking
  • BusinessSaving
  • Checking
  • Saving
AchAddress1string

Line 1 for the ACH address. This field is required for creating a payment method for the Vantiv payment gateway. Character limit: 255 Values: an address

AchAddress2string

Line 2 for the ACH address. This field is required for creating a payment method for the Vantiv payment gateway. Character limit: 255 Values: an address

AchBankNamestring

The name of the bank where the ACH payment account is held. This field is only required if the Type field is set to ACH. When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value. Character limit: 70 Values: a string of 70 characters or fewer

AchCitystring

The city of the ACH address. Use this field for ACH payment methods. Note: This field is only specific to the NMI payment gateway. It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing. Character limit: 40 Values: a string of 40 characters or fewer

AchCountrystring

The country of the ACH address. See Country Names and Their ISO Standard 2- and 3-Digit Codes for the list of supported country names. Use this field for ACH methods. Note: This field is only specific to the NMI payment gateway. It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing. Character limit: 40 Values: a supported country name

AchPostalCodestring

The billing address's zip code. This field is required only when you define an ACH payment method. Note: This field is only specific to the NMI payment gateway. Character limit: 20 Values: a string of 20 characters or fewer

AchStatestring

The billing address's state. Use this field is if the ACHCountry value is either Canada or the US. State names must be spelled in full. For more information, see the list of supported state names. This field is required only when you define an ACH payment method. Note: This field is only specific to the NMI payment gateway. Character limit: 50 Values: a valid state name

BankBranchCodestring

The branch code of the bank used for direct debit. This field is required for the following bank transfer payment methods:

  • Sweden Direct Debit (Autogiro)
  • Direct Debit NZ (DirectDebitNZ)
  • Pre-Authorized Debit (PAD)

Character limit: 10

BankCheckDigitstring

The check digit in the international bank account number, which confirms the validity of the account. Use this field for direct debit payment methods. Character limit: 4 Values: a string of 4 characters or fewer

BankCodestring

The sort code or number that identifies the bank. This is also known as the sort code. This field is required for the following bank transfer payment methods:

  • Direct Debit UK (Bacs)
  • Denmark Direct Debit (Betalingsservice)
  • Direct Debit NZ (DirectDebitNZ)
  • Pre-Authorized Debit (PAD)
BankTransferAccountNamestring

The name on the customer's bank account. This field is required if the Type field is set to BankTransfer.

Character limit: 60

Values: a string of 60 characters or fewer

BankTransferAccountNumberstring

The number of the customer's bank account. This field is required if the Type field is set to BankTransfer.

Character limit: 30

Values: a string of 30 characters or fewer

BankTransferAccountNumberMaskstring

This is a masked displayable version of the ACH account number, used for security purposes. For example: XXXXXXXXX54321.

Character limit: 32

Values: automatically generated

BankTransferTypestring<= 20 characters

The type of direct debit transfer. The value of this field is dependent on the country of the user. This field is only required if the Type field is set to BankTransfer.

Values:

  • SEPA

  • DirectEntryAU (Australia)

  • DirectDebitUK (UK)

  • Autogiro (Sweden)

  • Betalingsservice (Denmark)

  • DirectDebitNZ (New Zealand)

  • PAD (Canada)

  • AutomatischIncasso (Netherlands)

  • LastschriftDE (Germany)

  • LastschriftAT (Austria)

  • DemandeDePrelevement (France)

  • Domicil (Belgium)

  • LastschriftCH (Switzerland)

  • RID (Italy)

  • OrdenDeDomiciliacion (Spain)

BusinessIdentificationCodestring

The business identification code for Swiss direct payment methods that use the Global Collect payment gateway. Use this field only for direct debit payments in Switzerland with Global Collect. Character limit: 11 Values: a string of 11 characters or fewer

Citystring

The city of the customer's address. Use this field for direct debit payment methods. It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing. Character limit:80 Values: a string of 80 characters or fewer

CompanyNamestring<= 80 characters

The name of the company.

Zuora does not recommend that you use this field.

Countrystring

The two-letter country code of the customer's address. This field is required if the Type field is set to BankTransfer, and the BankTransferType field is set to any of the following values:

  • Autogiro
  • Betalingsservice
  • DirectDebitUK
  • DirectEntryAU
  • DirectDebitNZ
  • PAD

It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.

CreditCardAddress1string

The first line of the card holder's address, which is often a street address or business name. Use this field for credit card and direct debit payment methods. Character limit: 255 Values: a string of 255 characters or fewer

CreditCardAddress2string

The second line of the card holder's address. Use this field for credit card and direct debit payment methods. Character limit: 255 Values: a string of 255 characters or fewer

CreditCardCitystring

The city of the card holder's address. Use this field for credit card and direct debit payment methods. It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing. Character limit: 40 Values: a string of 40 characters or fewer

CreditCardCountrystring

The country of the card holder's address. It is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.

CreditCardExpirationMonthinteger(int32)

The expiration month of the credit card or debit card. This field is required if the Type field is set to CreditCard or DebitCard. Character limit: 2 Values: a two-digit number, 01 - 12

Example: 12
CreditCardExpirationYearinteger(int32)

The expiration month of the credit card or debit card. This field is required if the Type field is set to CreditCard or DebitCard. Character limit: 4 Values: a four-digit number

Example: 2020
CreditCardHolderNamestring

The full name of the card holder. This field is only required if the Type field is set to CreditCard or DebitCard.

Character limit: 50 Values: a string of 50 characters or fewer

Example: "Amy Lawrence"
CreditCardNumberstring

Credit card number, a string of up to 16 characters. This field is required if the Type field is set to CreditCard or DebitCard. This field can only be set when creating a new payment method; it cannot be queried or updated.

Example: "4111111111111111"
CreditCardPostalCodestring

The billing address's zip code. Character limit: 20 Values: a string of 20 characters or fewer

CreditCardSecurityCodestring
CreditCardStatestring

The billing address's state. Use this field if the CreditCardCountry value is either Canada or the US. State names must be spelled in full.

CreditCardTypestring

The type of the credit card. This field is required if the Type field is set to CreditCard or DebitCard.

Possible values include Visa, MasterCard, AmericanExpress, Discover, JCB, and Diners. For more information about credit card types supported by different payment gateways, see Supported Payment Gateways.

Example: "Visa"
DeviceSessionIdstring

The session ID of the user when the PaymentMethod was created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, then Zuora passes this field to supported gateways. Currently only Verifi supports this field. Character limit: 255 Values:

Emailstring

An email address for the payment method in addition to the bill to contact email address. Character limit: 80 Values: a string of 80 characters or fewer

ExistingMandatestring

Indicates if the customer has an existing mandate or a new mandate. A mandate is a signed authorization for UK and NL customers. When you are migrating mandates from another system, be sure to set this field correctly. If you indicate that a new mandate is an existing mandate or vice-versa, then transactions fail. This field is used only for the direct debit payment method. Character limit: 3 Values: Yes, No

FirstNamestring

The customer's first name. This field is used only for the direct debit payment method. Character limit: 30 Values: a string of 30 characters or fewer

GatewayOptionDataobject

A field used to pass gateway options. Zuora allows you to pass in special gateway-specific parameters for payments through the gateway integrations that support gateway options.

For each of these special parameters, you supply the name-value pair and Zuora passes it to the gateway. This allows you to add functionality that's supported by a specific gateway but currently not supported by Zuora.

Zuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.

IBANstring

The International Bank Account Number. This field is used only for the direct debit payment method. Character limit: 42 Values: a string of 42 characters or fewer

IPAddressstring

The IPv4 or IPv6 information of the user when the payment method was created or updated. Gateways use this field for fraud prevention. If this field is passed to Zuora, then Zuora passes this field to supported gateways. If the IP address length is beyond 45 characters, a validation error occurs.

IdentityNumberstring

The unique identity number of the customer account. This field is required for the following bank transfer payment methods:

  • Denmark Direct Debit (Betalingsservice)
  • Sweden Direct Debit (Autogiro)

It is a string of 12 characters for a Swedish identity number, and a string of 10 characters for a Denish identity number.

IsCompanyboolean

Whether the customer account is a company.

Zuora does not recommend that you use this field.

Default false
LastNamestring

The customer's last name. This field is used only for the direct debit payment method. Character limit: 70 Values: a string of 70 characters or fewer

LastTransactionDateTimestring(date-time)

The date of the most recent transaction. Character limit: 29 Values: a valid date and time value

MandateCreationDatestring(date)

The date when the mandate was created, in yyyy-mm-dd format. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 29

MandateIDstring

The ID of the mandate. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 36 Values: a string of 36 characters or fewer

MandateReceivedstring

Indicates if the mandate was received. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 3 Values: Yes, No (case-sensitive)

MandateUpdateDatestring(date)

The date when the mandate was last updated, in yyyy-mm-dd format. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 29

MaxConsecutivePaymentFailuresinteger

Specifies the number of allowable consecutive failures Zuora attempts with the payment method before stopping. When the UseDefaultRetryRule field is set to false, this field is only required if the PaymentRetryWindow field is not defined. Values: a valid number

MitConsentAgreementRefstring<= 128 characters

Specifies your reference for the stored credential consent agreement that you have established with the customer. Only applicable if you set the MitProfileAction field.

MitConsentAgreementSrcstring

Required if you set the MitProfileAction field. If you do not specify the MitProfileAction field, Zuora will automatically create a stored credential profile for the payment method, with the default value External set to this field.

Value"External"
MitNetworkTransactionIdstring<= 128 characters

Specifies the ID of a network transaction. Only applicable if you set the MitProfileAction field to Persist.

MitProfileActionstring

Specifies how Zuora creates and activates a stored credential profile. If you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value Activate set to this field.

Enum"Activate""Persist"
MitProfileAgreedOnstring(date)

The date on which the profile is agreed. The date format is yyyy-mm-dd.

MitProfileTypestring

Required if you set the MitProfileAction field. If you do not specify the MitProfileAction field, Zuora will automatically create a stored credential profile for the payment method, with the default value Recurring set to this field.

Value"Recurring"
NumConsecutiveFailuresinteger(int32)[ 0 .. 100 ]

The number of consecutive failed payments for this payment method. It is reset to 0 upon successful payment.

PaymentRetryWindowinteger

The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours. When the UseDefaultRetryRule field is set to false, this field is only required if the MaxConsecutivePaymentFailures field is not defined. Character limit: 4 Values: a whole number between 1 and 1000, exclusive

PaypalBaidstring

The PayPal billing agreement ID, which is a contract between two PayPal accounts. Typically, the selling party initiates a request to create a BAID, and sends it to buying party for acceptance. The seller can keep track of the BAID and use it for future charges against the buyer. This field is only required if the Type field is set to PayPal. Character limit: 64 Values: a string of 64 characters or fewer

PaypalEmailstring

The email address associated with the account holder's PayPal account or of the PayPal account of the person paying for the service. This field is only required if the Type field is set to PayPal. Character limit: 80 Values: a string of 80 characters or fewer

PaypalPreapprovalKeystring

PayPal's Adaptive Payments API key. Zuora does not create this key, nor does it call PayPal to generate it. You must use PayPal's Adaptive Payments' API to generate this key, and then pass it to Zuora. Zuora uses this key to authorize future payments to PayPal's Adaptive Payments API. This field is only required if you use PayPal Adaptive Payments gateway. Character limit: 32 Values: a valid PayPal Adaptive Payment pre-approval key

PaypalTypestring

Specifies the PayPal gateway: PayFlow Pro (Express Checkout) or Adaptive Payments. This field is only required if you use PayPal Adaptive Payments or Payflow Pro (Express Checkout) gateways. Character limit: 32 Values: ExpressCheckout, AdaptivePayments

Phonestring

The phone number that the account holder registered with the bank. This field is used for credit card validation when passing to a gateway. Character limit: 40 Values: a string of 40 characters or fewer

PostalCodestring

The zip code of the customer's address. This field is used only for the direct debit payment method. Character limit: 20 Values: a string of 20 characters or fewer

SecondTokenIdstring

A gateway unique identifier that replaces sensitive payment method data. SecondTokenId is conditionally required only when TokenId is being used to represent a gateway customer profile. SecondTokenId is used in the CC Reference Transaction payment method. Character limit: 64 Values: a string of 64 characters or fewer

SkipValidationboolean

If you set this field to false, Zuora will send an authorization request to the payment gateway. If the authorization fails, the Create Payment Method request will fail as well. If the user knows that the card number or token is valid, we recommend disabling this feature because authorization requests to the card network incur additional processing fees. Currently, Zuora sends all authorizations as keyed entries. If you set this field to true, the authorization request is not sent. Character limit: 5 Values: true or false

Statestring

The state of the customer's address. This field is used only for the direct debit payment method. Character limit: 70 Values: a string of 70 characters or fewer

StreetNamestring

The street name of the customer's address. This field is used only for the direct debit payment method. Character limit: 100 Values: a string of 100 characters or fewer

StreetNumberstring

The street number of the customer's address. This field is used only for the direct debit payment method. Character limit: 30 Values: a string of 30 characters or fewer

TokenIdstring

A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile. When TokenId is used to represent a customer profile, SecondTokenId is conditionally required for representing the underlying tokenized payment method. TokenId is required for the CC Reference Transaction payment method. The values for the tokenId and secondTokenId fields differ for gateways. For more information, see the Knowledge Center article specific to each gateway that supports the CC Reference Transaction payment method. Character limit: 255 Values: a string of 255 characters or fewer

Typestringrequired

The type of payment method.

If you want to create an Amazon Pay payment method, specify CreditCardReferenceTransaction for this field.

If you want create a custom payment method, specify the name of the custom payment method type. This type is only available if the Universal Payment Connector and Open Payment Method services are enabled. See Set up custom payment gateways and payment methods for details.

Enum"ACH""BankTransfer""CreditCard""CreditCardReferenceTransaction""DebitCard""PayPal"
Example: "CreditCard"
UseDefaultRetryRuleboolean

Determines whether to use the default retry rules configured in the Z-Payments settings. Set this to true to use the default retry rules. Set this to false to set the specific rules for this payment method. If you set this value to false, then the fields, PaymentRetryWindow and MaxConsecutivePaymentFailures, are required. Character limit: 5 Values: true or false

currencyCodestring

The currency used for payment method authorization.

If this field is not specified, currency specified for the account is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.

property name*anyadditional property

Custom fields of the payment method. The name of each custom field has the form <code>customField__c</code>. Custom field names are case sensitive. See Manage Custom Fields for more information.

curl -i -X POST \
  'https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/object/payment-method?rejectUnknownFields=false' \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: string' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string' \
  -d '{
    "AccountId": "8ad09be48db5aba7018db604776d4854",
    "Type": "CreditCard",
    "CreditCardType": "Visa",
    "CreditCardNumber": "4111111111111111",
    "CreditCardExpirationMonth": 12,
    "CreditCardExpirationYear": 2020,
    "CreditCardHolderName": "Amy Lawrence"
  }'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
Idstring
Example: "2c93808457d787030157e030232f3748"
Successboolean
Example: true
Response
application/json
{ "Success": true, "Id": "2c93808457d787030157e03220ec4fad" }

CRUD: Retrieve a payment method

Request

Path
idstringrequired

Object id

Query
fieldsstring

Object fields to return

Headers
Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

curl -i -X GET \
  'https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/object/payment-method/{id}?fields=string' \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
AccountIdstring

The ID of the customer account associated with this payment method. This field is not required for the account ID.

AchAbaCodestring

The nine-digit routing number or ABA number used by banks. Use this field for ACH payment methods. Character limit: 9 Values: a string of 9 characters or fewer

AchAccountNamestring

The name of the account holder, which can be either a person or a company. Use this field for ACH payment methods. Character limit: 70 Values: a string of 70 characters or fewer

AchAccountNumberMaskstring

This is a masked displayable version of the ACH account number, used for security purposes. For example: XXXXXXXXX54321. Use this field for ACH payment methods. Character limit: 32 Values: automatically generated

AchAccountTypestring

The type of bank account associated with the ACH payment. Use this field for ACH payment methods. When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, Checking preferably. Character limit: 16 Values:

  • BusinessChecking
  • BusinnessSaving
  • Checking
  • Saving
AchAddress1string

Line 1 for the ACH address. Required on create for the Vantiv payment gateway. Optional for other gateways. Character limit: Values: an address

AchAddress2string

Line 2 for the ACH address. Required on create for the Vantiv payment gateway. Optional for other gateways. Character limit: Values: an address

AchBankNamestring

The name of the bank where the ACH payment account is held. Use this field for ACH payment methods. When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value. Character limit: 70 Values: a string of 70 characters or fewer

Activeboolean

Specifies whether a payment method is available in Zuora. This field is used to indicate if a payment method is loaded by the system or created by the customer.

  • true: System loaded payment method.
  • false: Customer created payment method.

The default value is false. Character limit: 5 Values: true, false

BankBranchCodestring

The branch code of the bank used for direct debit. Character limit: 10 Values: string of 10 characters or fewer

BankCheckDigitstring

The check digit in the international bank account number, which confirms the validity of the account. Use this field for direct debit payment methods. Character limit: 4 Values: string of 4 characters or fewer

BankCitystring

The city of the direct debit bank. Use this field for direct debit payment methods. Character limit:70 Values: string of 70 characters or fewer

BankCodestring

The sort code or number that identifies the bank. This is also known as the sort code. This field is required for direct debit payment methods. Character limit: 18 Values: string of 18 characters or fewer

BankIdentificationNumberstring

The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method. Character limit: 8 Values: string of 8 characters or fewer

BankNamestring

The name of the direct debit bank. Use this field for direct debit payment methods. Character limit:80 Values: string of 80 characters or fewer

BankPostalCodestring

The zip code or postal code of the direct debit bank. Use this field for direct debit payment methods. Character limit:20 Values: string of 20 characters or fewer

BankStreetNamestring

The name of the street of the direct debit bank. Use this field for direct debit payment methods. Character limit:60 Values: string of 60 characters or fewer

BankStreetNumberstring

The number of the direct debit bank. Use this field for direct debit payment methods. Character limit:10 Values: string of 10 characters or fewer

BankTransferAccountNamestring

The name on the customer's bank account. Use this field for bank transfer payment methods. Character limit: 60 Values: string of 60 characters or fewer

BankTransferAccountNumberstring

The number of the customer's bank account. Use this field for bank transfer payment methods.

Character limit: 30 Values: a string of 30 characters or fewer

BankTransferAccountNumberMaskstring

This is a masked displayable version of the bank account number, used for security purposes. For example: XXXXXXXXX54321. Character limit: 32 Values: automatically generated

BankTransferAccountTypestring

The type of the customer's bank account. Use this field for direct debit payment methods. Character limit: 11 Values: DirectDebit

BankTransferTypestring<= 20 characters

The type of direct debit transfer.

BusinessIdentificationCodestring

The business identification code for Swiss direct payment methods that use the Global Collect payment gateway. Use this field only for direct debit payments in Switzerland with Global Collect. Character limit: 11 Values: string of 11 characters or fewer

Citystring

The city of the customer's address. Use this field for direct debit payment methods. Character limit:80 Values: string of 80 characters or fewer

CompanyNamestring

The name of the company.

Countrystring

The two-letter country code of the customer's address. Use this field for bank transfer payment methods. Character limit: 2 Values: a valid country code

CreatedByIdstring

The user ID of the person who created the PaymentMethod object when there is a login user in the user session. In Hosted Payment Method and Zuora Checkout pages, this field is set to 3 as there is no login user to initiate a user session. Character limit: 32 Values: automatically generated

CreatedDatestring(date-time)

The date when the PaymentMethod object was created in the Zuora system. Character limit: 29 Values: automatically generated

CreditCardAddress1string

The first line of the card holder's address, which is often a street address or business name. Use this field for credit card and direct debit payment methods. Character limit: 255 Values: a string of 255 characters or fewer

CreditCardAddress2string

The second line of the card holder's address. Use this field for credit card and direct debit payment methods. Character limit: 255 Values: a string of 255 characters or fewer

CreditCardCitystring

The city of the card holder's address. Use this field for credit card and direct debit payment methods Character limit: 40 Values: a string of 40 characters or fewer

CreditCardCountrystring

The country of the card holder's address.

CreditCardExpirationMonthinteger(int32)

The expiration month of the credit card or debit card. Use this field for credit card and direct debit payment methods. Character limit: 2 Values: a two-digit number, 01 - 12

CreditCardExpirationYearinteger(int32)

The expiration month of the credit card or debit card. Use this field for credit card and direct debit payment methods. Character limit: 4 Values: a four-digit number

CreditCardHolderNamestring

The full name of the card holder. Use this field for credit card and direct debit payment methods. Character limit: 50 Values: a string of 50 characters or fewer

CreditCardMaskNumberstring

A masked version of the credit or debit card number. Character limit: 32 Values: automatically generated

CreditCardPostalCodestring

The billing address's zip code. This field is required only when you define a debit card or credit card payment. Character limit: 20 Values: a string of 20 characters or fewer

CreditCardStatestring

The billing address's state. Use this field is if the CreditCardCountry value is either Canada or the US. State names must be spelled in full.

CreditCardTypestring

The type of the credit card.

Possible values include Visa, MasterCard, AmericanExpress, Discover, JCB, and Diners. For more information about credit card types supported by different payment gateways, see Supported Payment Gateways.

DeviceSessionIdstring

The session ID of the user when the PaymentMethod was created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, then Zuora passes this field to supported gateways. Currently only Verifi supports this field. Character limit: 255

Emailstring

An email address for the payment method in addition to the bill to contact email address. Character limit: 80 Values: a string of 80 characters or fewer

ExistingMandatestring

Indicates if the customer has an existing mandate or a new mandate. A mandate is a signed authorization for UK and NL customers. When you are migrating mandates from another system, be sure to set this field correctly. If you indicate that a new mandate is an existing mandate or vice-versa, then transactions fail. This field is used only for the direct debit payment method. Character limit: 3 Values: Yes or No

FirstNamestring

The customer's first name. This field is used only for the direct debit payment method. Character limit: 30 Values: a string of 30 characters or fewer

IBANstring

The International Bank Account Number. This field is used only for the direct debit payment method. Character limit: 42 Values: a string of 42 characters or fewer

IPAddressstring

The IPv4 or IPv6 information of the user when the payment method was created or updated. Gateways use this field for fraud prevention. If this field is passed to Zuora, then Zuora passes this field to supported gateways. If the IP address length is beyond 45 characters, a validation error occurs.

Idstring

Object identifier.

IdentityNumberstring

The unique identity number of the customer account.

IsCompanyboolean

Whether the customer account is a company.

LastFailedSaleTransactionDatestring(date-time)

The date of the last failed attempt to collect payment with this payment method. Character limit: 29 Values: automatically generated

LastNamestring

The customer's last name. This field is used only for the direct debit payment method. Character limit: 70 Values: a string of 70 characters or fewer

LastTransactionDateTimestring(date-time)

The date of the most recent transaction. Character limit: 29 Values: a valid date and time value

LastTransactionStatusstring

The status of the most recent transaction. Character limit: 39 Values: automatically generated

MandateCreationDatestring(date)

The date when the mandate was created, in yyyy-mm-dd format. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 29

MandateIDstring

The ID of the mandate. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 36 Values: a string of 36 characters or fewer

MandateReceivedstring

Indicates if the mandate was received. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 3 Values: Yes or No (case-sensitive)

MandateUpdateDatestring(date)

The date when the mandate was last updated, in yyyy-mm-dd format. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 29

MaxConsecutivePaymentFailuresinteger

Specifies the number of allowable consecutive failures Zuora attempts with the payment method before stopping. Values: a valid number

Namestring

The name of the payment method.

NumConsecutiveFailuresinteger(int32)[ 0 .. 100 ]

The number of consecutive failed payments for this payment method. It is reset to 0 upon successful payment.

PaymentMethodStatusstring

This field is used to indicate the status of the payment method created within an account. It is set to Active on creation. Character limit: 6 Values: Active or Closed

PaymentRetryWindowinteger

The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours. This field is required if the UseDefaultRetryRule field value is set to false. Character limit: 4 Values: a whole number between 1 and 1000, exclusive

PaypalBaidstring

The PayPal billing agreement ID, which is a contract between two PayPal accounts. Typically, the selling party initiates a request to create a BAID, and sends it to buying party for acceptance. The seller can keep track of the BAID and use it for future charges against the buyer. This field is required when defining a PayPal payment method. Character limit: 64 Values: a string of 64 characters or fewer

PaypalEmailstring

The email address associated with the account holder's PayPal account or of the PayPal account of the person paying for the service. This field is required only when you define a PayPal payment method. Character limit: 80 Values: a string of 80 characters or fewer

PaypalPreapprovalKeystring

PayPal's Adaptive Payments API key. Zuora does not create this key, nor does it call PayPal to generate it. You must use PayPal's Adaptive Payments' API to generate this key, and then pass it to Zuora. Zuora uses this key to authorize future payments to PayPal's Adaptive Payments API. This field is required when you use PayPal Adaptive Payments gateway. Character limit: 32 Values: a valid PayPal Adaptive Payment pre-approval key

PaypalTypestring

Specifies the PayPal gateway: PayFlow Pro (Express Checkout) or Adaptive Payments. This field is required when you use PayPal Adaptive Payments or Payflow Pro (Express Checkout) gateways. Character limit: 32 Values: ExpressCheckout or AdaptivePayments

Phonestring

The phone number that the account holder registered with the bank. This field is used for credit card validation when passing to a gateway. Character limit: 40 Values: a string of 40 characters or fewer

PostalCodestring

The zip code of the customer's address. This field is used only for the direct debit payment method. Character limit: 20 Values: a string of 20 characters or fewer

SecondTokenIdstring

A gateway unique identifier that replaces sensitive payment method data. SecondTokenId is conditionally required only when TokenId is being used to represent a gateway customer profile. SecondTokenId is used in the CC Reference Transaction payment method. Character limit: 64 Values: a string of 64 characters or fewer

Statestring

The state of the customer's address. This field is used only for the direct debit payment method. Character limit: 70 Values: a string of 70 characters or fewer

StreetNamestring

The street name of the customer's address. This field is used only for the direct debit payment method. Character limit: 100 Values: a string of 100 characters or fewer

StreetNumberstring

The street number of the customer's address. This field is used only for the direct debit payment method. Character limit: 30 Values: a string of 30 characters or fewer

TokenIdstring

A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile. TokenId is required for the CC Reference Transaction payment method. Character limit: 255 Values: a string of 255 characters or fewer

TotalNumberOfErrorPaymentsinteger(int32)

The number of error payments that used this payment method. Character limit: Values: automatically generated

TotalNumberOfProcessedPaymentsinteger(int32)

The number of successful payments that used this payment method. Character limit: Values: automatically generated

Typestring

The type of payment method.

Enum"ACH""ApplePay""BankTransfer""Cash""Check""CreditCard""CreditCardReferenceTransaction""DebitCard""Other""PayPal"
UpdatedByIdstring

The ID of the user who last updated the payment method. Character limit: 32 Values: automatically generated

UpdatedDatestring(date-time)

The date when the payment method was last updated. Character limit: 29 Values: automatically generated

UseDefaultRetryRuleboolean

Determines whether to use the default retry rules configured in the Zuora Payments settings. Set this to true to use the default retry rules. Set this to false to set the specific rules for this payment method. If you set this value to false, then the fields, PaymentRetryWindow and MaxConsecutivePaymentFailures, are required. Character limit: 5 Values: t``rue, false

Response
application/json
{ "CreditCardExpirationMonth": 12, "CreditCardAddress1": "312 2nd Ave W", "Id": "2c93808457d787030157e0314e8145d7", "CreditCardExpirationYear": 2020, "UpdatedDate": "2016-10-20T05:45:10.000+02:00", "CreditCardCity": "Seattle", "CreditCardState": "Washington", "AccountId": "2c93808457d787030157e0314c0945d4", "Type": "CreditCard", "UpdatedById": "2c93808457d787030157e0312ef1445e", "CreditCardCountry": "United States", "AchAddress1": "312 2nd Ave W", "CreditCardType": "Visa", "CreatedById": "2c93808457d787030157e0312ef1445e", "CreditCardPostalCode": "98119", "CreditCardHolderName": "Somebody", "CreatedDate": "2016-10-20T05:45:10.000+02:00", "TotalNumberOfProcessedPayments": 1, "PaymentMethodStatus": "Active", "NumConsecutiveFailures": 7, "TotalNumberOfErrorPayments": 0, "CreditCardMaskNumber": "************1111", "LastTransactionStatus": "Approved", "LastTransactionDateTime": "2016-10-20T05:45:10.000+02:00", "UseDefaultRetryRule": true, "BankIdentificationNumber": "411111", "IdentityNumber": "", "IsCompany": false, "CompanyName": "", "Active": false }

CRUD: Update a payment method

Request

Updates a payment method.

Path
idstringrequired

Object id

Query
rejectUnknownFieldsboolean

Specifies whether the call fails if the request body contains unknown fields. With rejectUnknownFields set to true, Zuora returns a 400 response if the request body contains unknown fields. The body of the 400 response is:

{
    "message": "Error - unrecognised fields"
}

By default, Zuora ignores unknown fields in the request body.

Default false
Headers
Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Bodyapplication/jsonrequired
AccountIdstring

The ID of the customer account associated with this payment method.

Note: If a payment method was created without an account ID associated, you can update the payment method to specify an account ID in this operation. However, if a payment method is already associated with a customer account, you cannot update the payment method to associate it with another account ID. You cannot remove the previous account ID and leave the AccountId filed empty in this operation.

AchAbaCodestring

The nine-digit routing number or ABA number used by banks. Use this field for ACH payment methods.

Character limit: 9 Values: a string of 9 characters or fewer

AchAccountNamestring

The name of the account holder, which can be either a person or a company. Use this field for ACH payment methods.

Character limit: 70 Values: a string of 70 characters or fewer

AchAccountTypestring

The type of bank account associated with the ACH payment. Use this field for ACH payment methods. When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, Checking preferably.

Character limit: 16 Values:

  • BusinessChecking
  • BusinessSaving
  • Checking
  • Saving
AchAddress1string

Line 1 for the ACH address. Required on create for the Vantiv payment gateway. Optional for other gateways.

Character limit: Values: an address

AchAddress2string

Line 2 for the ACH address. Required on create for the Vantiv payment gateway. Optional for other gateways.

Character limit: Values: an address

AchBankNamestring

The name of the bank where the ACH payment account is held. Use this field for ACH payment methods. When creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.

Character limit: 70 Values: a string of 70 characters or fewer

AchCitystring

The city of the ACH address. Use this field for ACH payment methods. Note: This field is only specific to the NMI payment gateway. Character limit: 40 Values: a string of 40 characters or fewer

AchCountrystring
AchPostalCodestring

The billing address's zip code. This field is required only when you define an ACH payment method. Note: This field is only specific to the NMI payment gateway.

Character limit: 20 Values: a string of 40 characters or fewer

AchStatestring

The billing address's state. Use this field is if the ACHCountry value is either Canada or the US. State names must be spelled in full. For more information, see the list of supported state names. This field is required only when you define an ACH payment method. Note: This field is only specific to the NMI payment gateway.

Character limit: 50 Values: a valid state name

BankBranchCodestring

The branch code of the bank used for direct debit. Use this field for the following bank transfer payment methods:

  • Sweden Direct Debit (Autogiro)
  • Direct Debit NZ (DirectDebitNZ)
  • Pre-Authorized Debit (PAD)

Character limit: 10

BankCheckDigitstring

The check digit in the international bank account number, which confirms the validity of the account. Use this field for direct debit payment methods.

Character limit: 4 Values: string of 4 characters or fewer

BankCodestring

The sort code or number that identifies the bank. This is also known as the sort code. Use this field for the following bank transfer payment methods:

  • Direct Debit UK (Bacs)
  • Denmark Direct Debit (Betalingsservice)
  • Direct Debit NZ (DirectDebitNZ)
  • Pre-Authorized Debit (PAD)
BankTransferTypestring<= 20 characters

The type of direct debit transfer. The value of this field is dependent on the country of the user. This field is only required if the Type field is set to BankTransfer.

Values:

  • SEPA

  • DirectEntryAU (Australia)

  • DirectDebitUK (UK)

  • Autogiro (Sweden)

  • Betalingsservice (Denmark)

  • DirectDebitNZ (New Zealand)

  • PAD (Canada)

  • AutomatischIncasso (Netherlands)

  • LastschriftDE (Germany)

  • LastschriftAT (Austria)

  • DemandeDePrelevement (France)

  • Domicil (Belgium)

  • LastschriftCH (Switzerland)

  • RID (Italy)

  • OrdenDeDomiciliacion (Spain)

BusinessIdentificationCodestring

The business identification code for Swiss direct payment methods that use the Global Collect payment gateway. Use this field only for direct debit payments in Switzerland with Global Collect.

Character limit: 11 Values: string of 11 characters or fewer

Citystring

The city of the customer's address. Use this field for direct debit payment methods.

Character limit:80 Values: string of 80 characters or fewer

CompanyNamestring<= 80 characters

The name of the company.

Zuora does not recommend that you use this field.

Countrystring

The two-letter country code of the customer's address. Use this field for the following bank transfer payment methods:

  • Autogiro
  • Betalingsservice
  • DirectDebitUK
  • DirectEntryAU
  • DirectDebitNZ
  • PAD
CreditCardAddress1string

The first line of the card holder's address, which is often a street address or business name. Use this field for credit card and direct debit payment methods.

Character limit: 255 Values: a string of 255 characters or fewer

CreditCardAddress2string

The second line of the card holder's address. Use this field for credit card and direct debit payment methods.

Character limit: 255 Values: a string of 255 characters or fewer

CreditCardCitystring

The city of the card holder's address. Use this field for credit card and direct debit payment methods

Character limit: 40 Values: a string of 40 characters or fewer

CreditCardCountrystring

The country of the card holder's address.

Example: "United States"
CreditCardExpirationMonthinteger(int32)

The expiration month of the credit card or debit card. Use this field for credit card and direct debit payment methods.

Character limit: 2 Values: a two-digit number, 01 - 12

CreditCardExpirationYearinteger(int32)

The expiration month of the credit card or debit card. Use this field for credit card and direct debit payment methods.

Character limit: 4 Values: a four-digit number

CreditCardHolderNamestring

The full name of the card holder. Use this field for credit card and direct debit payment methods.

Character limit: 50 Values: a string of 50 characters or fewer

CreditCardPostalCodestring

The billing address's zip code. This field is required only when you define a debit card or credit card payment. Character limit: 20 Values: a string of 20 characters or fewer

CreditCardSecurityCodestring
CreditCardStatestring

The billing address's state. Use this field is if the `CreditCardCountry' value is either Canada or the US. State names must be spelled in full.

Example: "CA"
CreditCardTypestring

The type of the credit card.

Possible values include Visa, MasterCard, AmericanExpress, Discover, JCB, and Diners. For more information about credit card types supported by different payment gateways, see Supported Payment Gateways.

DeviceSessionIdstring

The session ID of the user when the PaymentMethod was created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, then Zuora passes this field to supported gateways. Currently only Verifi supports this field. Character limit: 255 Values:

Emailstring

An email address for the payment method in addition to the bill to contact email address. Character limit: 80 Values: a string of 80 characters or fewer

ExistingMandatestring

Indicates if the customer has an existing mandate or a new mandate. A mandate is a signed authorization for UK and NL customers. When you are migrating mandates from another system, be sure to set this field correctly. If you indicate that a new mandate is an existing mandate or vice-versa, then transactions fail. This field is used only for the direct debit payment method. Character limit: 3 Values: Yes, No

FirstNamestring

The customer's first name. This field is used only for the direct debit payment method. Character limit: 30 Values: a string of 30 characters or fewer

IBANstring

The International Bank Account Number. This field is used only for the direct debit payment method. Character limit: 42 Values: a string of 42 characters or fewer

IPAddressstring

The IPv4 or IPv6 information of the user when the payment method was created or updated. Gateways use this field for fraud prevention. If this field is passed to Zuora, then Zuora passes this field to supported gateways. If the IP address length is beyond 45 characters, a validation error occurs.

IdentityNumberstring

The unique identity number of the customer account.

This field is required only if the BankTransferType field is set to Autogiro or Betalingsservice. It is a string of 12 characters for a Swedish identity number, and a string of 10 characters for a Denish identity number.

IsCompanyboolean

Whether the customer account is a company.

Zuora does not recommend that you use this field.

Default false
LastNamestring

The customer's last name. This field is used only for the direct debit payment method. Character limit: 70 Values: a string of 70 characters or fewer

LastTransactionDateTimestring(date-time)

The date of the most recent transaction. Character limit: 29 Values: a valid date and time value

MandateCreationDatestring(date)

The date when the mandate was created, in yyyy-mm-dd format. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 29

MandateIDstring

The ID of the mandate. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 36 Values: a string of 36 characters or fewer

MandateReceivedstring

Indicates if the mandate was received. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 3 Values: Yes, No (case-sensitive)

MandateUpdateDatestring(date)

The date when the mandate was last updated, in yyyy-mm-dd format. A mandate is a signed authorization for UK and NL customers. This field is used only for the direct debit payment method. Character limit: 29

MaxConsecutivePaymentFailuresinteger

Specifies the number of allowable consecutive failures Zuora attempts with the payment method before stopping. Values: a valid number

NumConsecutiveFailuresinteger[ 0 .. 100 ]

The number of consecutive failed payments for this payment method. It is reset to 0 upon successful payment.

PaymentMethodStatusstring

This field is used to indicate the status of the payment method created within an account. It is set to Active on creation. Character limit: 6 Values: Active or Closed

PaymentRetryWindowinteger

The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours. This field is required if the UseDefaultRetryRule field value is set to false. Character limit: 4 Values: a whole number between 1 and 1000, exclusive

Phonestring

The phone number that the account holder registered with the bank. This field is used for credit card validation when passing to a gateway. Character limit: 40 Values: a string of 40 characters or fewer

PostalCodestring

The zip code of the customer's address. This field is used only for the direct debit payment method. Character limit: 20 Values: a string of 20 characters or fewer

SecondTokenIdstring

A gateway unique identifier that replaces sensitive payment method data. SecondTokenId is conditionally required only when TokenId is being used to represent a gateway customer profile. TokenID is being used to represent a gateway customer profile. SecondTokenId is used in the CC Reference Transaction payment method. Character limit: 64 Values: a string of 64 characters or fewer

Statestring

The state of the customer's address. This field is used only for the direct debit payment method. Character limit: 70 Values: a string of 70 characters or fewer

StreetNamestring

The street name of the customer's address. This field is used only for the direct debit payment method. Character limit: 100 Values: a string of 100 characters or fewer

StreetNumberstring

The street number of the customer's address. This field is used only for the direct debit payment method. Character limit: 30 Values: a string of 30 characters or fewer

UseDefaultRetryRuleboolean

Determines whether to use the default retry rules configured in the Zuora Payments settings. Set this to true to use the default retry rules. Set this to false to set the specific rules for this payment method. If you set this value to false, then the fields, PaymentRetryWindow and MaxConsecutivePaymentFailures, are required. Character limit: 5 Values: true or false

property name*anyadditional property

Custom fields of the payment method. The name of each custom field has the form <code>customField__c</code>. Custom field names are case sensitive. See Manage Custom Fields for more information.

curl -i -X PUT \
  'https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/object/payment-method/{id}?rejectUnknownFields=false' \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Content-Type: application/json' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string' \
  -d '{
    "CreditCardCountry": "United States",
    "CreditCardState": "CA"
  }'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
Idstring
Example: "2c93808457d787030157e030232f3748"
Successboolean
Example: true
Response
application/json
{ "Success": true, "Id": "2c93808457d787030157e02fced332a2" }

CRUD: Delete a payment method

Request

Path
idstringrequired

Object id

Headers
Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorizationstring

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Entity-Idsstring

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

curl -i -X DELETE \
  'https://developer.zuora.com/_mock/v1-api-reference/older-api/v1/object/payment-method/{id}' \
  -H 'Accept-Encoding: string' \
  -H 'Authorization: string' \
  -H 'Content-Encoding: string' \
  -H 'Zuora-Entity-Ids: string' \
  -H 'Zuora-Track-Id: string'

Responses

Headers
Content-Encodingstring

This header is returned if you specify the Accept-Encoding: gzip request header and the response contains over 1000 bytes of data.

Note that only the following MIME types support gzipped responses:

  • application/json
  • application/xml
  • text/html
  • text/csv
  • text/plain
RateLimit-Limitstring

The request limit quota for the time window closest to exhaustion. See rate limits for more information.

RateLimit-Remainingnumber

The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.

RateLimit-Resetnumber

The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.

Zuora-Request-Idstring= 36 characters

The Zuora internal identifier of the API call. You cannot control the value of this header.

Zuora-Track-Idstring<= 64 characters

A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.

Bodyapplication/json
idstring
successboolean
Response
application/json
{ "success": true, "id": "2c93808457d787030157e02fcc8e329f" }

Payments

Use payments to process payments, for example, automate recurring payments, manage overpayments, and create refunds. For more information about payments, see <a href="https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/K_Payment_Operations" target="_blank">Payments</a>.

Operations

Product Features

You can add features to products through the Zuora UI. However, you can retrieve or delete product features through the UI or API.

Operations

Quotes Document

This section contains the Generate a quote document operation that should be only used from Zuora Quotes.

This operation generates a quote document and returns the generated document URL. You can directly access the generated quote file through the returned URL.

Operations

Rate Plan Charge Tiers

A rate plan charge tier is part of a subscription or an amendment to a subscription, and it comes from a product rate plan charge tier. A rate plan charge tier holds the prices for a rate plan charge. Each rate plan charge has at least one tier associated with it.

Rate plan charge tiers are sometimes called subscription rate plan charge tiers to distinguish them from product rate plan charge tiers. Rate plan charge tiers that are part of an amendment are sometimes called amendment rate plan charge tiers for the same reason. However, the object name is RatePlanChargeTier, not SubscriptionRatePlanChargeTier nor AmendmentRatePlanChargeTier: these latter two names don't exist.

Operations

Rate Plan Charges

A rate plan charge is part of a subscription or an amendment to a subscription, and it comes from a product rate plan charge. Like a product and its product rate plan charges, a subscription can have one or more rate plan charges. Rate plan charges represent the actual charges for the rate plans or services that you sell.

Rate plan charges are sometimes called subscription rate plan charges to distinguish them from product rate plan charges. Rate plan charges that are part of an amendment are sometimes called amendment rate plan charges for the same reason. The object name is RatePlanCharge – not SubscriptionRatePlanCharge nor AmendmentRatePlanCharge.

Operations

Rate Plans

A rate plan is part of a subscription or an amendment to a subscription, and it comes from a product rate plan. Like a product and its product rate plans, a subscription can have one or more rate plans. Rate plans are sometimes called subscription rate plans. Rate plans that are part of an amendment are sometimes called amendment rate plans.

Rate plans represent a price or a collection of prices for a service you sell. An individual rate plan contains all charges specific to a particular subscription.

Operations

Refund Invoice Payments

This section contains the CRUD: Retrieve a refund invoice payment operation. You can use this operation to retrieve information from Refund Invoice Payment and associated invoices, payments, and accounts.

Operations

Refund Transaction Logs

Operations

Refunds

Zuora allows you to issue and track refunds on payments. Similar to external payments, users can enter external refunds to track refunds that have been performed outside of Zuora Payments (for example, by issuing a check). In addition, you can make electronic refunds using our supported payment gateways, which will automatically refund money to the customer.

Operations

Reporting

The Zuora Reporting API enables you to access reports that you have created in the Zuora UI, manage report runs, and export the results of report runs.

The endpoints of the Reporting API are the same as the endpoints of Zuora REST API. The following table provides some endpoints as reference:

EnvironmentAPI Endpoint
API Sandbox (US Cloud Data Center 1)https://rest.sandbox.na.zuora.com
Production (US Cloud Data Center 1)https://rest.na.zuora.com
API Sandbox (US Cloud Data Center 2)https://rest.apisandbox.zuora.com
Production (US Cloud Data Center 2)https://rest.zuora.com
API Sandbox (EU Data Center)https://rest.sandbox.eu.zuora.com
Production (EU Data Center)https://rest.eu.zuora.com
US Central Sandboxhttps://rest.test.zuora.com
EU Central Sandboxhttps://rest.test.eu.zuora.com
APAC Developer & Central Sandboxhttps://rest.test.ap.zuora.com
APAC Productionhttps://rest.ap.zuora.com

Historically, the endpoints of the Reporting API were different from the endpoints of the Zuora REST API.

Note that you are still able to use the following endpoints, but it is unrecommended and you can only use username and password to authenticate to the Reporting API. We recommend you to use OAuth to authenticate to the Reporting API. OAuth only works with new endpoints. The endpoints of the Reporting API were:

EnvironmentAPI Endpoint
API Sandbox (US Cloud Data Center 1)https://zconnect.sandbox.na.zuora.com/api/rest/v1
Production (US Cloud Data Center 1)https://zconnect.na.zuora.com/api/rest/v1
API Sandbox (US Cloud Data Center 2)https://zconnectsandbox.zuora.com/api/rest/v1
Production (US Cloud Data Center 2)https://zconnect.zuora.com/api/rest/v1
API Sandbox (EU Data Center)https://zconnect.sandbox.eu.zuora.com/api/rest/v1
Production (EU Data Center)https://zconnect.eu.zuora.com/api/rest/v1
US Central Sandboxhttps://zconnect-services0001.test.zuora.com/api/rest/v1
EU Central Sandboxhttps://zconnect-services0002.test.eu.zuora.com/api/rest/v1
APAC Developer & Central Sandboxhttps://zconnect-services0003.test.ap.zuora.com
APAC Productionhttp://zconnect-prod05.ap.zuora.com
Operations

Revenue Events

A revenue event is a record or audit trail about a change to a revenue schedule. When you manually distribute revenue schedule, if no change is made to the revenue schedule, no revenue events will not be created.

A revenue event is comprised of:

  • Date: The date when the event occurred.
  • Revenue Event Type: The action or activity triggering the revenue event.
  • Recognition Start and Recognition End: The start and end dates for the revenue recognition period.
  • Revenue Item: The distribution of revenue (or adjustments) into accounting periods.
Operations

Revenue Items

Revenue Item is a component of a revenue event, representing the distribution of revenue (or adjustments) into accounting periods.

Operations

Revenue Rules

Revenue rules are instances of revenue rule models. These rules are associated with product rate plan charges. Rules help manage revenue recognition on subscription charges.

Operations

Revenue Schedules

A revenue schedule represents how revenue amounts from a single charge are distributed over time and recognized in accounting periods. Revenue schedules maintain consistency with the currency used.

Operations

Subscription Product Features

The Entitlements settings must be enabled to use this operation. Access to the Entitlements feature requires a specific edition of Zuora. See Zuora Editions for details.

Operations

Subscriptions

A subscription is a product or service that has recurring charges, such as a monthly flat fee or charges based on usage. Subscriptions can also include one-time charges, such as activation fees. Every subscription must be associated with an account. At least one active account must exist before any subscriptions can be created.

For more information, see <a href="https://knowledgecenter.zuora.com/Billing/Subscriptions/Subscriptions" target="_blank">Subscriptions</a>.

Operations

Taxation Items

The TaxationItem object is used to add a tax amount to an invoice item. In the typical use case, the tax amount that you specify in the object is calculated by <a href="https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax" target="_blank">Z-Tax</a> or a third-party tax engine such as <a href="https://knowledgecenter.zuora.com/Billing/Taxes/Direct_Avalara_Integration" target="_blank">Avalara</a> or <a href="https://knowledgecenter.zuora.com/Billing/Taxes/Additional_resources_on_taxes/AA_Connect_Tax_Engines" target="_blank">Connect tax engine</a>.

Changes that you make with this object affect the product charges in your product catalog, but not the charges in existing subscriptions.

Operations

Transactions

Operations

Unit Of Measure

A unit of measure (UOM) is the definable unit that you measure when determining charges. For example, if a customer's subscription rate plan includes 20 licenses, then 20 is the quantity and license is the unit that the quantity measures.

You can customize the units of measure (UOM) your company uses to measure the use of your services; for example, minutes, people, seats, and licenses can all be units of measure.

Operations

Usage

This section contains the legacy API operations for Usage.

For the "Retrieve a usage record" operation, we recommend that you use the following Object Query operations instead:

Operations

Users

You can use the Users operations only if you have the Multi-entity feature enabled.

For detailed information about the Multi-entity feature, see <a href="https://knowledgecenter.zuora.com/Billing/Tenant_Management/Multi-entity" target="_blank">Multi-entity</a>.

Operations