Disable Card
Disable all fuel authorizations for a card.
POST /projects/{projectId}/cards/{cardId}/disable
Path Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | UUID | Yes | Project ID |
cardId | UUID | Yes | Card ID |
Request​
curl -X POST "https://api.maes-platform.nuvoni.eu/v1/projects/{projectId}/cards/{cardId}/disable" \
-H "Authorization: Bearer sk_live_xxxxx"
Response​
{
"id": "09c9861c-4c4b-411f-be85-c16ed7e26da4",
"status": "inactive",
"authGasoline": false,
"authDiesel": false,
"authLpg": false,
"authHeatingOil": false
}
Notes​
- Only cards with
status: activecan be disabled - In production, this triggers a background job to update the MAES portal
- All four fuel authorizations are disabled
Errors​
Card Not Active​
Status: 400 Bad Request
{
"code": "error.bad_request",
"message": "Card is not active"
}
Card Already Disabled​
Status: 400 Bad Request
{
"code": "error.bad_request",
"message": "Card is already disabled"
}
Card Not Found​
Status: 404 Not Found
{
"code": "error.card_not_found",
"message": "Card not found"
}