Put customer buyer
PUT
/ admin/ v1/ stores/ {store_id}/ customers/ {customer_id}/ invoice-buyer- customers:write
Record the customer as a VAT-registered business: invoices of their orders issued from now on are standard tax invoices.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.customer_idstringrequiredThe customer's ID, like
cus_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
legal_namestring · or nullvat_numberstring · or nullSaudi buyers: 15 digits, first and last digit 3.
addressobjectThe buyer's address; for Saudi buyers, their National Address.
Returns
200 Saved.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such customer. - 422
validation_failedValidation failed.