Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • customer_idstringrequired

    The customer's ID, like cus_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • legal_namestring · or null
  • vat_numberstring · or null

    Saudi buyers: 15 digits, first and last digit 3.

  • addressobject

    The buyer's address; for Saudi buyers, their National Address.

Returns

200 Saved.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such customer.
  • 422validation_failedValidation failed.