Create a Vendor with optional contractor (workforce + portal user)
POST/vendor/with-contractor
Create a vendor and optionally create a workforce record and invite the vendor's contact to the portal as a user. The request wraps a Vendor payload plus REST-only ContractorOptions; the response is a REST-only composite (handler purchase.go:48; models/purchase_dto.go).
Request
Responses
- 200
- 400
- 401
- 403
- 500
Vendor (with optional workforce + portal invite info)
Bad request error
Unauthorized error
Token issue like Expired or corrupted
Internal Server error