لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.customer_idstringمطلوبمعرّف من نوع
cus، مثلcus_01k8qs5s….
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
legal_namestring · أو nullvat_numberstring · أو nullSaudi buyers: 15 digits, first and last digit 3.
addressobjectThe buyer's address; for Saudi buyers, their National Address.
ما يُرجعه
200 Saved.
الأخطاء
- 403
forbiddenMissing permission. - 404
not_foundNo such customer. - 422
validation_failedValidation failed.