• Account Management/
    Using Account Management API/
    Delete an Account

    Delete an Account

    DELETE Delete by ID

    https://api.moltin.com/v2/accounts/:id
    

    Parameters

    Path parameters

    NameRequiredTypeDescription
    idRequiredstringThe ID of the account that you want to delete.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token required to get access to the API.

    Request Examples

    Curl

    curl -X DELETE https://api.moltin.com/v2/accounts/:id \
         -H "Authorization: Bearer XXXX"
    

    JavaScript SDK

    const MoltinGateway = require("@moltin/sdk").gateway;
    const Moltin = MoltinGateway({
        client_id: "X",
        client_secret: "X",
    });
    const accountId = "00000000-0000-0000-0000-000000000000";
    Moltin.Accounts.Delete(accountId).then((acc) => {
        // Do something
    });
    

    Response Example

    204 No Content

    Was this helpful?

    Previous
    Update an Account