Assign a business-wide spend control

Attach a spend control to your whole business, replacing any business-wide spend control already attached. Its rules apply to every card transaction alongside any controls attached to the card, cardholder, or account.

Required permissions: spend_control:update.

Authentication

AuthorizationBearer

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

Headers

X-Penny-As-Businessstring or nullOptional

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

Request

This endpoint expects an object.
spend_control_idstringRequired
Unique identifier of the spend control to attach.

Response

The business-wide spend control association.

spend_control_idstring
Unique identifier of the spend control.
associated_object_idstring
Unique identifier of the object the spend control is associated with.
associated_object_typeenum
The type of object the spend control is associated with.

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