Skip to content
campaiDeveloper
campai.com

Crm · Contracts

POST/{organizationId}/{mandateId}/crm/contracts/recalculateFailed

Recalculate failed subscriptions

'Calculates the next collection of the matching subscriptions again whose calculation failed, such as ' + 'a failed developer app function. A few are recalculated right away and counted, more in the '…

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • contract.read
  • contract.edit
  • plan.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Body

Content-Type: application/json

  • searchTermstring
  • contactIdid
  • planIdid
  • paymentMethodTypestring
    sepaCreditTransfer sepaDirectDebit cash online
  • tagsstring[]

    at most 50 items · each at least 1 characters

  • statusstring
    collect active upcoming paused termination ended failed collecting
  • userFilterstringnullable

    A stringified json object representing a property filter

  • selectionobject
    2 properties
    • excludeIdsid[]

      1–1000 items

    • idsid[]

      1–1000 items

Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/crm/contracts/recalculateFailed' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

Content-Type: application/json

  • countinteger

    at least 0

  • backgroundboolean
  • recalculatedCountinteger

    at least 0

  • failedCountinteger

    at least 0

Response200
{
  "count": 0,
  "background": true,
  "recalculatedCount": 0,
  "failedCount": 0
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.