Delete a Customer

1
Last updated 7 months ago

delete
Delete by ID

https://api.moltin.com
/v2/customers/:id
Request
Response
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.
204: No Content
cURL
JavaScript SDK
curl -X DELETE https://api.moltin.com/v2/customers/:id \
-H "Authorization: Bearer XXXX"
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 -X GET https://api.moltin.com/v2/customers/:id \
-H "X-Moltin-Customer-Token: XXXX"
-H "Authorization: Bearer XXXX"

Without customer token

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