Best answer

Error: Failed to create a subscription in Chargebee. The app returned "id: The value #Test is already present."

  • 17 October 2022
  • 5 replies
  • 216 views

Badge

Hi all,

I’m facing a problem where I want Zapier to go through this flow:

  1. AirTable record modified
  2. Filtered by Status: Pending Payment
  3. Search for existing customer in AT
    1. Create a new customer profile on ChargeBee if the above is false
    2. Create a new subscription on ChargeBee

Here is where my problem lies, ChargeBee receives the information and creates a customer.
But when it attempts to create a new subscription on ChargeBee, it tells me that the Customer ID already exists.

I am using ChargeBee 2.0, so it is supposed to find an existing customer to create a subscription to tag onto.

This is a problem for me because the same Lead can have multiple subscriptions.

Help would be greatly appreciated.
Thank y

ou

icon

Best answer by Troy Tessalone 18 October 2022, 15:57

View original

5 replies

Userlevel 7
Badge +14

Hi @champdennis 

Good question.

You are using “#Test” for both fields, so the issue could be with the Subscription ID.

 

FYI: You can use an Airtable Table View with Filters to replace the need for step 2.

 

Badge

Hi @champdennis 

Good question.

You are using “#Test” for both fields, so the issue could be with the Subscription ID.

 

FYI: You can use an Airtable Table View with Filters to replace the need for step 2.

 

Hi Troy

Unfortunately, the system on chargebee still created a blank customer and tagged the subscription to it.
I removed the subscription ID, so I don’t fully understand how this works.

The Customer ID is supposed to tag to the existing customer, correct?
 

Userlevel 7
Badge +14

@champdennis 

The Chargebee Customer ID field expects the internal system generated Chargebee Customer ID rather than a unique customer ID value you defined. (not #Test)

 

Badge

@Troy Tessalone 

How will I be able to retrieve this ID via Zapier?
I tried doing a Search Existing Customer.
In which Customer ID is still the same (#Test)
If it is an internal system generated ID, then Zapier should also be able to find it regardless since that is the linking field.
Also, the event:
 

 states that it is supposed to create a subscription for an existing customer, it is kind of odd for it to not automatically find an existing customer.
 

 

Userlevel 7
Badge +14

@champdennis 

Based on the error you may be using Catalog 1.0 in which Chargebee is attempting to create a new Customer as per the screenshot you provided.

Some options…

Use the Chargebee API instead: https://apidocs.chargebee.com/docs/api/subscriptions?prod_cat_ver=2#create_subscription_for_items

App APIs can be used in Zaps with the Webhooks app: https://zapier.com/apps/webhook/help

Open a ticket with Zapier Support for further troubleshooting: https://zapier.com/app/get-help

Make sure you are using the newest Chargebee Zap app integration: https://zapier.com/apps/chargebee/integrations

Reply