Closed PrateekGoyal18 closed 3 years ago
See https://github.com/MONEI/Shopify-api-node#resources. Use
{
first_name: 'Steven',
last_name: 'Lastnameson',
email: 'steven.lastnameson@example.com',
phone: '+15142546012',
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'
}
]
}
You can also read the error details by logging error.response.body
where error
is the Error
instance.
Thanks @lpinca for the help!
My code is:
The request body is:
This is the error: