Get a spend control
Retrieve a spend control by its ID.
Required permissions: spend_control:read.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
spend_control_id
The ID of the spend control.
Headers
X-Penny-As-Business
Act on behalf of another business that has granted you access. Requires the business:act_as permission.
Query parameters
version
Resource version to return; 0 returns the latest.
Response
The spend control.
spend_control_id
Penny's unique identifier for this spend control.
version
A number that increases each time this spend control's configuration changes. Use it to confirm you are looking at the latest configuration.
version_time
The date and time this spend control's configuration was last changed.
active
Whether this spend control's rules are currently being enforced against transactions.
status
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:
rules
The full external configuration of every rule in this spend control.
business_id
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