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":["c5b20cfb-d164-4db5-902b-8e0bfa1abb06","43eefa2a-d139-4291-b215-0fdc7d2307cc","21f042f9-5794-4b6c-8d60-ab02c09200b9"],"statement_transaction_uuids":["1c8188d7-72d1-4c0c-a7f5-a590ed23eb51","97735552-7a81-482c-a2db-f6dd1cb3eee6","fbc5288f-917f-486f-99ee-8dd0236dc909"]}'
Request examples
{
  "expectation_uuids": [
    "c5b20cfb-d164-4db5-902b-8e0bfa1abb06",
    "43eefa2a-d139-4291-b215-0fdc7d2307cc",
    "21f042f9-5794-4b6c-8d60-ab02c09200b9"
  ],
  "statement_transaction_uuids": [
    "1c8188d7-72d1-4c0c-a7f5-a590ed23eb51",
    "97735552-7a81-482c-a2db-f6dd1cb3eee6",
    "fbc5288f-917f-486f-99ee-8dd0236dc909"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}