Skip to main content

Errors and Validation

When multiple systems connect, it's possible to end up with incorrect configurations. RevOps attempts to alleviate this by validating the pending subscription before it's approved and sent to your customer.

In the event that you run into a validation error during submission or an issue during signing, this article covers how to debug issues.

Deal Validation

When a rep goes to submit a deal to deal desk, we automatically run a series of validations to ensure the Chargebee subscription will be able to be created.

The validations that RevOps performs are:

  • A subscription estimate is able to be created based on the deal data
  • The customer lookup configuration does not return multiple existing customers

In the event that a validation error occurs, users will see a screen similar to the below. Admin users will be able to override and submit, however payment and signature will fail if the Chargebee error is not resolved.

User ViewAdmin View

API Logs

RevOps provides API logs for all operations between RevOps and Chargebee. Expand the payments card on Deal Desk to view the most recent logs. Access to logs is limited to admin users.

Here you will be able to see the HTTP method, URL, and status code. Logs can be expanded to view the full request and response body.

Headers, including authorization headers, are omitted.

PCI Compliance

RevOps uses Chargebee.js and Stripe Financial Connections for securely collecting credit card and direct debit information. In order to maintain PCI compliance, Chargebee.js and Stripe make their own API calls with in-scope data.

Chargebee.js and Stripe return a reference token to the secure information along with masked account information (card brand/bank name and last 4 of account number). RevOps never has access to direct credit card or banking information.

Any data that RevOps maintains is considered out-of-scope for PCI certification requirements.

Understanding Log Errors

Below is a list of common errors and how to resolve them.

If you require assistance debugging an error not noted below, please email support@revops.io. Please include a link to the deal and the relevant error message in your email.

note

RevOps maintains API logs for a minimum of 30 days. Logs older than 30 days may no longer be available.

All Endpoints

Status CodeError MessageSolution/Description
401api_authentication_failedThe API keys that RevOps has are invalid or do not have the correct scopes. Please contact support@revops.io for assistance in updating your connection.

Subscriptions & Estimates

Associated Endpoints

  • estimates/create_subscription_for_items
  • customers/<customer_id>/subscription_for_items
  • customers/<customer_id>/create_subscription_for_items_estimate
Status CodeError MessageSolution/Description
400plan item price must be presentA Chargebee Plan must be added to the deal.
400This param should not be sent for on_off addon typeA Chargebee Plan is present with a quantity other than 1. Update this line item to have a quantity of 1.
400duplicate_entryA Chargebee Plan is present more than once. Remove the additional entry.
400There is already a plan ItemMultiple Chargebee Plans are present. Remove the additional entries.
400subscription_items[item_price_id][i] : cannot be blankA RevOps SKU is missing an associated Chargebee Price ID. Update the SKU's Chargebee Settings to include a price.

Payment Methods

Associated Endpoints

  • payment_sources/create_using_token

Payment Method verification API calls are often expected to fail as the user may provide invalid payment details.
Most API call errors for these endpoints will display the relevant error to the user and no action is required from the sender.

Status CodeError MessageSolution/Description
400payment_method_verification_failedThis is an expected error when the user provides an invalid card. Review the error message for additional information.

Customers

Associated Endpoints

  • customers
Status CodeError MessageSolution/Description
200Duplicate CustomerIf an existing customer lookup configuration is found, Chargebee might return a 200 Success status code that has multiple results. While this is valid from Chargebee, RevOps is unable to determine which account to use. Please update Chargebee to reset the identifier field on the customers that are not the primary association.

Customer Error Codes

While deal validation tries to catch errors before they reach the customer, changes that happen after the deal is submitted for approval may impact signature.

Below you will find each of the known error codes that a user might see and how to resolve them.

User Errors

These are errors that are typically caused by direct user action. Additional information will be provided to the user.

There is typically no action needed here from your organization or the RevOps support team. Instead, the user must take appropriate action.

Error CodeDescriptionResolution
CB_FAILED_PAYMENTPayment FailedCharging the customer's payment method did not succeed. Review the API logs for additional information or have the user try an alternative payment method.
CB_FAILED_ADD_PAYMENTAdding Payment FailedVerifying the customer's payment method did not succeed. Review the API logs for additional information or have the user try an alternative payment method.

System Errors

These are errors that are a result of a specific configuration of the specific deal or the overall Chargebee integration. Your team must take action to unblock payment.

Error CodeDescriptionResolution
CB_DUP_CUSTOMERMultiple Customers FoundMultiple customers were found with your existing customer lookup configuration. Please update Chargebee to reset the identifier field on the customers that are not the primary association.
CB_SUB_INVALIDInvalid Subscription ConfigurationThe deal's configuration does not result in a valid Chargebee subscription. Update the deal to have a valid setup.
CB_API_UNAUTHORIZEDInvalid API CredentialsPlease contact support@revops.io to update your API keys.
CB_UNKNOWNUnexpected ErrorPlease contact support@revops.io for assistance.

Additional Support

In the event that you require additional support debugging an issue, please contact support@revops.io and provide the following information:

  • Link to the associated RevOps deal
  • Error Code
  • Request ID (if present)
  • Relevant Screenshots (if available)
Data Security

When contacting our support team, please do not include any sensitive information that falls into PCI scopes. This includes, but is not limited to, credit card numbers and bank account/routing numbers.

Screenshots should be cropped or redacted as appropriate.

This information should only be securely entered into the provided form.