How to retrieve customer form fields in BigCommerce using the API

强颜欢笑 提交于 2020-01-02 07:36:45

问题


I have customer form fields in BigCommerce that are filled out when a customer creates an account.

I am trying to extract customers using the API. I can extract the form fields using the Export functionality on the site, however I can't seem to find how to extract the form field data using the API.

Is there a way? I'm guessing from the lack of information in the API docs that the answer is no, and I realise it would be difficult to implement, but it sort of defeats the purpose of having the fields if we can't extract them, and I'd rather not go back to text files.


回答1:


the stuff that API call returns vs export seem to be pretty straight forward for conversion. Is there anything specific you are looking for.

From the export functionality

<Customer_ID><![CDATA[1]]></Customer_ID>
<First_Name><![CDATA[Random ]]></First_Name>
<Last_Name><![CDATA[Joe Bob]]></Last_Name>
 <Company><![CDATA[]]></Company>
<Email><![CDATA[random.joebob@example.com]]></Email>
<Phone><![CDATA[252-101-2010]]></Phone>
<Notes><![CDATA[]]></Notes>
<Store_Credit><![CDATA[0.00]]></Store_Credit>
 <Customer_Group><![CDATA[]]></Customer_Group>
<Date_Joined><![CDATA[13/11/2012]]></Date_Joined>
<Addresses>
</Addresses>
<Receive_Marketing_Emails><![CDATA[0]]></Receive_Marketing_Emails>

From the API call

 {
        "id": 1,
        "company": "",
        "first_name": "Random ",
        "last_name": "Joe Bob",
        "email": "random.joebob@example.com",
        "phone": "252-101-2010",
        "date_created": "Tue, 13 Nov 2012 21:16:41 +0000",
        "date_modified": "Tue, 13 Nov 2012 21:16:41 +0000",
        "store_credit": "0.0000",
        "registration_ip_address": "50.58.18.2",
        "customer_group_id": 0,
        "notes": "",
        "addresses": {
            "url": "https://store-bwvr466.mybigcommerce.com/api/v2/customers/1/addresses.json",
            "resource": "/customers/1/addresses"
        }
    }


来源:https://stackoverflow.com/questions/17017893/how-to-retrieve-customer-form-fields-in-bigcommerce-using-the-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!