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":["d9b8be77-8b89-48dc-ad5b-341e89c691a9","2b88e58d-1754-4dab-8b38-0de056790a3c","897ea3fe-1acf-4564-acb2-c3bf70e74dc7"],"statement_transaction_uuids":["81d4300c-04d1-48e3-8c7c-69ce187037a8","e8ad8d2d-f4d1-49a9-bf95-851fbd772054","c9b9e791-2106-4dca-9b29-38ee2415a3d8"]}'
Request examples
{
  "expectation_uuids": [
    "d9b8be77-8b89-48dc-ad5b-341e89c691a9",
    "2b88e58d-1754-4dab-8b38-0de056790a3c",
    "897ea3fe-1acf-4564-acb2-c3bf70e74dc7"
  ],
  "statement_transaction_uuids": [
    "81d4300c-04d1-48e3-8c7c-69ce187037a8",
    "e8ad8d2d-f4d1-49a9-bf95-851fbd772054",
    "c9b9e791-2106-4dca-9b29-38ee2415a3d8"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}