application/json

Body

  • expectation_uuids array[string(uuid)]

    Array of expectation UUIDs to balance.

  • statement_transaction_uuids array[string(uuid)]

    Array of statement transactions UUIDs which will balance all expectations which are linked to transactions.

Responses

  • 401 application/json
    Hide response attribute Show response attribute object
    • message string
POST /api/v1/expectation/balance
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/expectation/balance' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"expectation_uuids":["886389ed-a83f-458b-a243-e02fe0f94251","d748b2e2-c7fe-42a9-b5a6-e277c0c0addc","499fab04-85ba-4248-9f5d-d7a086e2e6f4"],"statement_transaction_uuids":["26aa921b-149b-47d6-a75f-fabfc65594dc","7874c9f1-a168-43b8-921f-b19f1b44e81e","40c3d648-fe29-4c0a-ac07-839d25f4c17f"]}'
Request examples
{
  "expectation_uuids": [
    "886389ed-a83f-458b-a243-e02fe0f94251",
    "d748b2e2-c7fe-42a9-b5a6-e277c0c0addc",
    "499fab04-85ba-4248-9f5d-d7a086e2e6f4"
  ],
  "statement_transaction_uuids": [
    "26aa921b-149b-47d6-a75f-fabfc65594dc",
    "7874c9f1-a168-43b8-921f-b19f1b44e81e",
    "40c3d648-fe29-4c0a-ac07-839d25f4c17f"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}