Put order buyer
PUT
/ admin/ v1/ stores/ {store_id}/ orders/ {order_id}/ invoice-buyer- orders:write
Record the order's VAT-registered buyer: its invoice will be a standard tax invoice, cleared by ZATCA before it is shared.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.order_idstringrequiredThe order's ID, like
ord_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 order. - 409The order's invoice is already issued (
already_invoiced). - 422
validation_failedValidation failed.