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":["7fd55111-4924-4224-8738-f3334c86dcad","c41b1092-9287-4ad3-97b7-172e113bea20","b9b6eca8-dadf-4fe5-90b8-424b745279b7"],"statement_transaction_uuids":["6b7e7af9-e0bb-4d8b-9deb-76a8f688756d","5226f3ed-bf9a-45d0-82c2-dc7be335424c","223a71c9-0586-4122-9fd2-6090e86f1a62"]}'
Request examples
{
  "expectation_uuids": [
    "7fd55111-4924-4224-8738-f3334c86dcad",
    "c41b1092-9287-4ad3-97b7-172e113bea20",
    "b9b6eca8-dadf-4fe5-90b8-424b745279b7"
  ],
  "statement_transaction_uuids": [
    "6b7e7af9-e0bb-4d8b-9deb-76a8f688756d",
    "5226f3ed-bf9a-45d0-82c2-dc7be335424c",
    "223a71c9-0586-4122-9fd2-6090e86f1a62"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}