POST /commandomodes, PUT /commandomodes/{token}, and POST /commandomodes/transitions operations. For other reference documentation on working with Commando Mode control sets, see Commando Mode.
Note
You must be a Powered By Marqeta (PxM) customer with the Program Manager role enabled to send calls to the
You must be a Powered By Marqeta (PxM) customer with the Program Manager role enabled to send calls to the
POST /commandomodes, PUT /commandomodes/{token}, and POST /commandomodes/transitions operations. Managed by Marqeta (MxM) customers who do not have the Program Manager role enabled cannot access these endpoints.For more information about MxM and PxM programs, see Understanding Card Program Differences.Create Commando Mode control set
Action:POSTEndpoint:
/commandomodes
Create a Commando Mode control set to define the conditions that programmatically enable Commando Mode and what happens when Commando Mode is enabled. When enabled, Commando Mode switches your program gateway funding source to a non-gateway program funding source and enables any authorization or velocity controls you specify.
Commando Mode control sets are associated with program gateway funding sources. Each program gateway funding source can have a single associated commandomode object.
Note
The conditions for automatically enabling Commando Mode defined in the
The conditions for automatically enabling Commando Mode defined in the
real_time_standin_criteria object function whether the Commando Mode is enabled or disabled. For example, if real_time_standin_criteria.enabled and real_time_standin_criteria.include_connection_errors are both true, a connection error will enable Commando Mode whether current_state.commando_enabled is true or false.Body field details
The commando_mode_enables object
The real_time_standin_criteria object
The current_state object (response)
The Marqeta platform returns thecurrent_state object of the Commando Mode control set in the response.
Sample request body
JSON
Sample response body
JSON
Update Commando Mode control set
Action:PUTEndpoint:
/commandomodes/{token}
Update a specific Commando Mode control set.
Include the modified details in JSON format in the body of the request. Only values of parameters included in the request are modified; all others are left unchanged.
URL path parameters
Body field details
The commando_mode_enables object
The real_time_standin_criteria object
The current_state object (response)
The Marqeta platform returns thecurrent_state object of the Commando Mode control set in the response.
Sample request body
JSON
Sample response body
JSON
Create Commando Mode transition
Action:POSTEndpoint:
/commandomodes/transitions
Create a Commando Mode transition.
A Commando Mode transition enables/disables a given Commando Mode control set. You must have an existing Commando Mode control set to enable/disable Commando Mode.
Body field details
The transition object
Sample request body
JSON
Sample response body
JSON