DELETE
Delete by ID
https://api.moltin.com/v2/accounts/:accountId/account-memberships/:membershipId
Parameters
Path parameters
Name | Required | Type | Description |
accountId | Required | string | The ID of the account that the membership is associated with. |
membershipId | Required | string | The ID of the account membership that you want to delete. |
Headers
Name | Required | Type | Description |
Authorization | Required | string | The Bearer token required to get access to the API. |
Request examples
Curl
curl -X DELETE https://api.moltin.com/v2/accounts/:accountId/account-memberships/:membershipId \
-H "Authorization: Bearer XXXX" \
Java SDK
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X',
client_secret: 'X'
})
const accountId = '00000000-0000-1000-8000-000f00000300';
const accountMembershipId = '00000000-0000-1000-8000-000f00000301';
Moltin.AccountMemberships.Delete(accountId, accountMembershipId).then(acc => {
})
Response example
204 No Content
Last updated on 2/17/2022