According to the documentation i should be able to create a customer with metafields, but i can’t seem to get it working.
It creates the customer, but i can’t seem to fetch the metafields when asking for the customer by id.
And for some reason there are two identical examples.
Create a new customer with a metafield
POST /admin/customers.json
{
"customer": {
"first_name": "Steve",
"last_name": "Lastnameson",
"email": "[steve.lastnameson@example.com](mailto:steve.lastnameson@example.com)",
"phone": "+15142546011",
"verified_email": true,
"addresses": [
{
"address1": "123 Oak St",
"city": "Ottawa",
"province": "ON",
"phone": "555-1212",
"zip": "123 ABC",
"last_name": "Lastnameson",
"first_name": "Mother",
"country": "CA"
}
],
"metafields": [
{
"key": "new",
"value": "newvalue",
"value_type": "string",
"namespace": "global"
}
]
}
}