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":["1aabeb33-35fa-4056-84d1-0e8f4e8a8b70","847a7ef2-6001-4362-ba40-7b98571ba4ab","c2f64684-9228-4438-972d-19cb814d8222"],"statement_transaction_uuids":["07464408-dadc-47d0-87f7-c22932951476","69e3c0be-ccea-4afc-8352-f0d9f46a396e","ff4b8632-170f-4f0a-85b0-be9c8ebba481"]}'
Request examples
{
  "expectation_uuids": [
    "1aabeb33-35fa-4056-84d1-0e8f4e8a8b70",
    "847a7ef2-6001-4362-ba40-7b98571ba4ab",
    "c2f64684-9228-4438-972d-19cb814d8222"
  ],
  "statement_transaction_uuids": [
    "07464408-dadc-47d0-87f7-c22932951476",
    "69e3c0be-ccea-4afc-8352-f0d9f46a396e",
    "ff4b8632-170f-4f0a-85b0-be9c8ebba481"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}