Create expectations

POST /api/v1/statement-transaction/create-expectations

Bulk action create expectations for incoming statement transactions. Useful when a provider statement has historic transactions which Plannr has not generated the expectations for. The client and policy for this transactions must exist within Plannr.

Headers

application/json

Body Required

  • statement_transactions array[string] Required

    Array of unreconciled statement transactions to bulk create matching expectations.

Responses

POST /api/v1/statement-transaction/create-expectations
curl \
 -X POST https://api.plannrcrm.com/api/v1/statement-transaction/create-expectations \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 -d '{"statement_transactions":["d0bb94fc-89c6-44b3-82bd-3294213fee0a","f305dd85-2202-4e5e-a377-a7cb55a3d16d"]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "statement_transactions": [
    "d0bb94fc-89c6-44b3-82bd-3294213fee0a",
    "f305dd85-2202-4e5e-a377-a7cb55a3d16d"
  ]
}