Robert
Robert

Reputation: 137

Custom fields when creating Shopify accounts using the API

I want to add some custom fields to the customer accounts in shopify using the API and then access them on the account page, how can I do that? I see how to create accounts at http://wiki.shopify.com/Customer_%28API%29#Create_a_new_customer_account but can I add an arbitrary field to the request body somewhere? Thank you

Upvotes: 1

Views: 2831

Answers (1)

Robert
Robert

Reputation: 137

AHA! I found where the custom metafields are described - http://www.shopify.com/technology/3032322-new-feature-metafields. On that page is where the syntax for retrieving them in a liquid template is described, and the specifics for creating them from the API are at api.shopify.com/customer.html#create under the example labeled "Create a new customer with a metafield".

Upvotes: 1

Related Questions