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":["4c920781-0020-4808-b69a-1995e13e4fc3","042dfa05-3213-45bc-9833-93fd319a8d84","aac31e94-0a5b-4410-943a-04528b9b5691"],"statement_transaction_uuids":["4713aead-52f8-4c10-8f82-dc02afa43317","24d865a7-d183-41c6-aeac-3e0871a0665c","8e0bf2fe-7498-4444-b89c-3b54771f71c1"]}'
Request examples
{
  "expectation_uuids": [
    "4c920781-0020-4808-b69a-1995e13e4fc3",
    "042dfa05-3213-45bc-9833-93fd319a8d84",
    "aac31e94-0a5b-4410-943a-04528b9b5691"
  ],
  "statement_transaction_uuids": [
    "4713aead-52f8-4c10-8f82-dc02afa43317",
    "24d865a7-d183-41c6-aeac-3e0871a0665c",
    "8e0bf2fe-7498-4444-b89c-3b54771f71c1"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}