+49 69 83008980 service@xqueue.com
Benötigen Sie Hilfe?

Im Maileon Help-Center finden Sie umfassende Dokumentationen zu unserem System.

Beliebte Suchanfragen: Importe | Rest-API | Integrationen | SMS

Update Specific Contingent

Sie sind hier:

 

Update Specific Contingent

POST https://api.maileon.com/partner/settings/prepaids/contingents/contingent/{cid}?key={k}&nl_account_id={nlaId}

Description: Update the details of the contingent. Please note: it is not possible to update the contingent value below the used value. Only Expiry date, contingent value and name are allowed to change. If a negative contingent value is specified it will be set to 0.

Path Parameter:
– cid: string (ID of the contingent to get)

Parameters:
– key: apikey
– nl_account_id: int // the id of the newsletter account

Body:
– The new data of the contingent
{
"expiryDate": "2019-05-06T01:00:00+01:00",
"contingentValue": 1001,
"name": "Contingent 1001"
}

Returns:
– The new contingent

Response-Codes:
– 200 – OK
– 400 – Bad Request :
– invalid JSON
– invalid date
– 404 – Not found
– 409 – Conflict (contingent value < used value) Example:

200 OK
content-type: application/json
{
"expiryDate": "2019-05-06T01:00:00+01:00",
"contingentValue": 1001,
"availableValue": 991,
"newsletterAccountId": 12345,
"usedValue": 10,
"author": "PARTNER-API-bjh645sx",
"created": "2017-11-02T10:20:05+01:00",
"name": "Contingent 1001",
"id": 123,
"updated": "2018-01-02T14:05:00+01:00",
"status": "running"
}

Inhaltsverzeichnis