---
title: "Delete a GL Code"
method: DELETE
path: "/GlCodes/DeleteGlCode"
tags: ["GlCodes"]
---

# Delete a GL Code

`DELETE /GlCodes/DeleteGlCode`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/GlCodes/DeleteGlCode`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/GlCodes/DeleteGlCode/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes the specified GL Code from the subscriber’s system. You need to specify all code parameters to delete it.

## Query parameters

- `glCode` string, required
- `trade` string
- `category` string
- `location` string

## Response `200`

The deleted GL Code ID is in the response.

- SystemObject

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 401 — Invalid subsriber ID 606 — Location is not found 704 — Invalid trade value for the subscriber 705 — Invalid category value for the subscriber 707 — GL Code does not exist
- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions
- `500`: The server was unable to complete the request due to an internal error.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
