Charge Auth Tokens
Patch an existing charge auth token
Changed onRequired scope: charge-auth-tokens:write </br>Organization authorization: supported
patch/api/v1/charge-auth-tokens/{chargeAuthTokenId}
Request
- Base URLhttps://partner-api.monta.com
- URLhttps://partner-api.monta.com/api/v1/charge-auth-tokens/{chargeAuthTokenId}
- AuthHTTP bearer
Path parameters
chargeAuthTokenIdinteger required
Request body
Example request
{
"teamId": 42,
"userId": 1,
"vehicleId": 1,
"name": "Monta Office Charge Key",
"montaNetwork": true,
"roamingNetwork": true,
"operatorNetwork": true,
"activeUntil": "2023-01-11T00:00:00Z",
"partnerExternalId": "ACME-12345",
"partnerCustomPayload": {
"internalId": "ACME-12345",
"department": "Fleet"
},
"costCenterId": 42,
"rollingSpendLimit": 500,
"dailyChargeCountLimit": 10,
"concurrentChargesLimit": 2
}Response
Charge auth token updated
Example response
{
"id": 1,
"identifier": "38C58DB85F4",
"type": "vehicleId",
"teamId": 13,
"userId": 1,
"vehicleId": 1,
"partnerExternalId": "ACME-12345",
"partnerCustomPayload": {
"internalId": "ACME-12345",
"department": "Fleet"
},
"name": "Monta Team Key",
"operator": {
"id": 14,
"name": "Monta",
"identifier": "monta",
"partnerId": 1,
"vatNumber": "FOO-123-ABC"
},
"montaNetwork": true,
"roamingNetwork": true,
"operatorNetwork": true,
"activeUntil": "2023-01-11T00:00:00Z",
"blockedAt": "2023-01-11T00:00:00Z",
"createdAt": "2022-05-12T15:56:45.99Z",
"updatedAt": "2022-05-12T16:56:45.99Z",
"rollingSpendLimit": {
"amount": 12312,
"currency": {
"id": 1,
"master": true,
"identifier": "DKK",
"name": "Danish krone",
"decimals": 2
},
"locale": "en"
},
"dailyChargeCountLimit": 10,
"concurrentChargesLimit": 2
}Changes
- breaking
the
request property type changed fromarraytoobject - breaking
the
response's property type changed fromarraytoobjectfor status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking