VTEX B2B GraphQL icon

VTEX B2B GraphQL

Interact with VTEX B2B Organizations GraphQL API

Actions15

Cost Center → Delete

AI-generated

Summary

Delete a cost center by ID

Inputs

  • costCenterId (required) — The ID of the cost center to delete

Output shape

a single record indicating deletion result (e.g., contains a status field)

Returns the GraphQL response; typically includes a status field; success is signaled by HTTP 200 and presence of data; errors may be reported via thrown exception or continueOnFail handling

Examples

Example 1: Delete a cost center with ID 12345

resource=costCenter,operation=delete,costCenterId=12345

Discussion