Create expectations Run in API Explorer
Ask AI
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.
POST
/api/v1/statement-transaction/create-expectations
curl \
--request POST 'https://api.plannrcrm.com/api/v1/statement-transaction/create-expectations' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{
"statement_transactions": [
"a6eebddf-705c-4e32-8bbc-2729261c8f8d",
"b1b275f6-76b4-4b51-ae9a-0bf4f7caaa19",
"98f5b315-6375-41bc-b37e-ab19806bb23e"
]
}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"statement_transactions": [
"a6eebddf-705c-4e32-8bbc-2729261c8f8d",
"b1b275f6-76b4-4b51-ae9a-0bf4f7caaa19",
"98f5b315-6375-41bc-b37e-ab19806bb23e"
]
}
Response examples (204)
{}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}