Accept payment suggestion

POST /api/v1/invoices/suggestions/{suggestion_id}/accept

Accept an auto-detected payment suggestion. Creates an InvoicePayment record and updates the invoice status.

Operation ID: accept_suggestion_api_v1_invoices_suggestions__suggestion_id__accept_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.

Parameters

Path

suggestion_id string · uuid required

Responses

201 Successful Response

id string required

Payment record UUID.

invoice_id string required

UUID of the invoice being paid.

transaction_id string required

UUID of the bank transaction.

amount integer required

Allocated payment amount in cents.

currency string

Currency (USD, CAD, AUD, EUR, or GBP).

paid_on string · date-time required

Effective payment date.

created_at string · date-time required

Record creation timestamp.

updated_at string · date-time required

Last update timestamp.

business_id string required

Business UUID.

transaction InvoicePaymentTransactionSummary

Linked bank transaction summary. Included when listing payments.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

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