Get the spend control governing an object
Retrieve the spend control currently associated with a Penny object, given the object’s ID.
Required permissions: spend_control:read.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
associated_object_id
The ID of the object the spend control is assigned to.
Headers
X-Penny-As-Business
Act on behalf of another business that has granted you access. Requires the business:act_as permission.
Response
The spend control associated with the object.
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