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

namestringrequired

Contract/agreement name.

vendor_idstringrequired

Vendor UUID.

statusstring

Contract status: draft, active, expired, terminated.

effective_datestring · date

Contract start date.

expiration_datestring · date

Contract end date.

contracted_amount_centsinteger

Agreed amount per billing period in cents.

billing_frequencystring

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

terms_summarystring

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

s3_keystring

S3 key for the original MSA/contract PDF.

Responses

201Successful Response

successboolean
messagestring
codestring
dataVendorContractResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject