Delete a membership

How to delete an existing membership via API

To delete a membership, send a DELETE request to the /api/memberships/:id endpoint, where id is the id of the membership that you want to delete.

Request

DELETE https://provisioning.commercelayer.io/api/memberships/:id

Example

The following request tries to delete the membership identified by the ID "xYZkjABcde":

curl -g -X DELETE \
  'https://provisioning.commercelayer.io/api/memberships/xYZkjABcde' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer {{your_access_token}}'

Last updated