How can I import existing Braintree customers from a CSV?

Modified on: Fri, 29 Jul, 2022 at 2:38 PM

Scope

I want import existing Braintree customers into Chargebee.

Summary


You can import existing Braintree customers by performing a bulk operation to import customers using Import & Export Data. 

While importing Braintree customers, on the payment source section, there are 4 parameters that need to be updated, they are:

  • payment_source[customer_id]

  • payment_source[type]

  • payment_source[gateway_account_id]

  • payment_source[reference_id]


Solution


Step 1: You can perform this action from Settings > Configure Chargebee > Import & Export Data > Choose a Bulk Operation > Customers > Create Customers



Step 2: Download the sample CSV file


 


Step 3: Upon downloading the CSV ‘create_customers_sample_data.csv’.  You can update the Braintree customer records on this file. Note that the data that needs to be added to the sheet should be in the same format as the sample data.

Note: 
- Your CSV data file should contain all the columns specific to the operation you are performing. The sample CSV file has most of the columns required for the operation
- Do not edit the column labels in the sample file and make sure the file extension is .csv. Click here to read more
- You can update this sheet with the data exported from the Customer Index Page


Step 5: Drag and drop your data file into the web interface or upload it:



Once you've added all the information and the data file is ready, upload it.


Exclusive for Braintree customers:

 While importing Braintree customers, on the payment source section, there are 4 parameters that need to be updated on Chargebee, they are:

  • payment_source[customer_id]

  • payment_source[type]

  • payment_source[gateway_account_id]

  • payment_source[reference_id]


Specific to payment_source[reference_id] the reference_id consists of a combination of Braintree Customer ID and Braintree Payment Method Token separated by the forward-slash (e.g. cus_63MnDn0t6kfDW7/card_6WjCF20vT9WN1G ). If you are passing Braintree Customer ID alone, then Chargebee will store the card marked as default for that customer in Braintree. Refer to this link Update payment method for a customer for more information.


Please refer to this link Bulk operations if you have received any errors while uploading the file. 


Related Articles

Bulk apply coupons to subscriptions

How to send invoices in bulk?

What bulk operations can I perform in Chargebee?

How to reactivate subscriptions in bulk?

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×