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":["f095f6e1-4482-493f-821c-4cdafe85b746","30fe87d7-d6cf-4149-830a-17dceac1c445","fd0218f5-a6c6-4f0a-819d-1e6402401859"],"statement_transaction_uuids":["dbf0ed66-5463-4b5d-97e4-f703ab44470b","7e50c486-94d4-4e14-a911-3814aea841b2","0872324d-6760-448b-b02b-0c27e6b8e559"]}'
Request examples
{
  "expectation_uuids": [
    "f095f6e1-4482-493f-821c-4cdafe85b746",
    "30fe87d7-d6cf-4149-830a-17dceac1c445",
    "fd0218f5-a6c6-4f0a-819d-1e6402401859"
  ],
  "statement_transaction_uuids": [
    "dbf0ed66-5463-4b5d-97e4-f703ab44470b",
    "7e50c486-94d4-4e14-a911-3814aea841b2",
    "0872324d-6760-448b-b02b-0c27e6b8e559"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}