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":["292df174-7061-4f6c-b902-f565abfb6992","8068c529-bc75-454c-988e-7581ea526532","96b9942a-8fa0-4e68-a82d-10458aa7699b"],"statement_transaction_uuids":["ce3db0d4-417b-44ab-9ea0-a00d1819b87d","a7469264-0ba1-48cd-a367-ddf02c9f6320","af8ce147-7d29-4944-a4ea-793add06a978"]}'
Request examples
{
  "expectation_uuids": [
    "292df174-7061-4f6c-b902-f565abfb6992",
    "8068c529-bc75-454c-988e-7581ea526532",
    "96b9942a-8fa0-4e68-a82d-10458aa7699b"
  ],
  "statement_transaction_uuids": [
    "ce3db0d4-417b-44ab-9ea0-a00d1819b87d",
    "a7469264-0ba1-48cd-a367-ddf02c9f6320",
    "af8ce147-7d29-4944-a4ea-793add06a978"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}