Deactivate a spend control

Deactivate a spend control.

Required permissions: spend_control:update.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spend_control_idstringRequired
The ID of the spend control.

Headers

X-Penny-As-Businessstring or nullOptional

Act on behalf of another business that has granted you access. Requires the business:act_as permission.

Response

The deactivated spend control.
spend_control_idstring
Penny's unique identifier for this spend control.
versioninteger
A number that increases each time this spend control's configuration changes. Use it to confirm you are looking at the latest configuration.
version_timedatetime
The date and time this spend control's configuration was last changed.
activeboolean
Whether this spend control's rules are currently being enforced against transactions.
statusenum
The current lifecycle state of the spend control. 'active' means the rules are being enforced. 'deactivated' means enforcement has been paused and can be resumed. 'deleting' means removal has been requested and is in progress. 'deleted' means the spend control has been removed and is kept only for historical reference.
Allowed values:
ruleslist of objects
The full external configuration of every rule in this spend control.
business_idstring
The identifier of the business that owns this spend control.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error