AI credit memo suggestions

POST /api/v1/credit-memos/suggest

Get AI-powered credit memo suggestions based on customer patterns.

Operation ID: suggest_credit_memos_api_v1_credit_memos_suggest_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

201 Successful Response

suggestions array · CreditMemoSuggestionItem CreditMemoSuggestionItem
6 fields
customer_id string required

Customer ID

customer_name string required

Customer name

invoice_id string

Related invoice ID

reason string required

Reason for credit memo

suggested_amount integer required

Suggested amount in cents

pattern string

Pattern detected

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object