Learn how you can simulate multiple scenarios.

Simulating certain scenarios can be accomplished by setting the X-Test-Case header.

These headers are subject to change, but here are a few you can use to simulate failures.

Header ExampleSimulation
CACUserDoesntHaveAccessForOrgSimulate not having permission to use the Buyer API
CDistApiReturns403OnBatchAddSimulate not being allowed to distribute the passed segment IDs
CDistApiReturns403OnBatchDeleteSimulate not being allowed to stop distributing the passed IDs
CDistApiReturns403OnGetDestinationsSimulate not being allowed to see Data Marketplace destinations
DSSSReturns500OnSegmentSearchSimulate unexpected error while searching segments
DSSSReturns500OnSegmentDetailsSimulate unexpected error while getting segment details