HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Delete Customer

Function

To delete customer with open API
透過 Open API 刪除客戶

URL

DELETE <<api_domain>>/v1/customers/:id

Request Example

curl --request DELETE \
     --url <<api_domain>>/v1/customers/customer_id \
     --header 'Accept: application/json'

Request Parameters

Parameter Type Description
id Required string customer id
send_notification boolean 設為 true 時,刪除顧客會發送電子郵件通知顧客。 If true, customer will receive a notification email when the account is deleted in the shop.(default: false)

Response Example

No response from the API, verify the result from the http code

200 - Success
404 - Customer not found
422 - Unprocessable Entity