Delete a Customer

delete
Delete by ID

https://api.moltin.com/v2/customers/:id
Request
Response
Request
Path Parameters
id
required
string
The ID for the Customer to delete
Headers
X-Moltin-Customer-Token
optional
string
A customer token used to access customer implicitly.
Authorization
required
string
The Bearer token to grant access to the API. If there is no customer token the grant type must be client_credentials.
Response
204: No Content
cURL
JavaScript SDK
cURL
curl -X DELETE https://api.moltin.com/v2/customers/:id \
-H "Authorization: Bearer XXXX"
JavaScript SDK
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X',
client_secret: 'X'
})
const id = 'XXXX'
Moltin.Customers.Delete(id).then(response => {
// Do something
})

With customer token

cURL
cURL
curl -X GET https://api.moltin.com/v2/customers/:id \
-H "X-Moltin-Customer-Token: XXXX"
-H "Authorization: Bearer XXXX"

Without customer token

cURL
cURL
curl -X GET https://api.moltin.com/v2/customers/:id \
-H "Authorization: Bearer XXXX"