如何使用API​​在BigCommerce中检索客户表单字段 [英] How to retrieve customer form fields in BigCommerce using the API

查看:67
本文介绍了如何使用API​​在BigCommerce中检索客户表单字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在BigCommerce中有一个客户表单字段,当客户创建帐户时会填写该字段.

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

我正在尝试使用API​​提取客户.我可以使用网站上的导出"功能提取表单字段,但是似乎找不到如何使用API​​提取表单字段数据的方法.

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.

有办法吗?我从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.

推荐答案

API调用返回与导出的内容似乎很容易进行转换.您要寻找什么具体的东西吗?

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

通过导出功能

<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>

通过API调用

 {
        "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"
        }
    }

这篇关于如何使用API​​在BigCommerce中检索客户表单字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆