Create vendor contract

POST /api/v1/vendor-contracts

Create a new vendor contract/MSA.

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

Request body

name string required

Contract/agreement name.

vendor_id string required

Vendor UUID.

status string

Contract status: draft, active, expired, terminated.

effective_date string · date

Contract start date.

expiration_date string · date

Contract end date.

contracted_amount_cents integer

Agreed amount per billing period in cents.

billing_frequency string

Billing frequency: monthly, quarterly, annually, one_time, weekly, biweekly.

terms_summary string

Summary of key contract terms (AI-extracted or manual).

s3_key string

S3 key for the original MSA/contract PDF.

Responses

201 Successful Response

name string required

Contract/agreement name.

vendor_id string required

Vendor UUID.

status string

Contract status: draft, active, expired, terminated.

effective_date string · date

Contract start date.

expiration_date string · date

Contract end date.

contracted_amount_cents integer

Agreed amount per billing period in cents.

billing_frequency string

Billing frequency: monthly, quarterly, annually, one_time, weekly, biweekly.

terms_summary string

Summary of key contract terms (AI-extracted or manual).

s3_key string

S3 key for the original MSA/contract PDF.

id string required

Contract UUID.

business_id string required

Business UUID.

vendor_name string

Vendor name (resolved).

created_at string
updated_at string

400 Bad Request - Invalid input

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