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":["21211ff0-9671-4830-b133-7aaa2109349d","882bae11-940c-4cb0-9a44-053e04756243","880ca427-103f-44a4-aea6-cd4deeb6b813"],"statement_transaction_uuids":["cba3d7bd-cec4-46a2-8939-e6907a2fc382","aa9784a7-2f0e-4488-bd25-10635117e899","3f7abbea-ca7a-475f-b5ed-6b1dbf246147"]}'
Request examples
{
  "expectation_uuids": [
    "21211ff0-9671-4830-b133-7aaa2109349d",
    "882bae11-940c-4cb0-9a44-053e04756243",
    "880ca427-103f-44a4-aea6-cd4deeb6b813"
  ],
  "statement_transaction_uuids": [
    "cba3d7bd-cec4-46a2-8939-e6907a2fc382",
    "aa9784a7-2f0e-4488-bd25-10635117e899",
    "3f7abbea-ca7a-475f-b5ed-6b1dbf246147"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}