Create or modify a contract
POST/api/v1/contracts
Allows create a new contract or modify an existing contract. The operation is determined by the 'action' parameter. If the 'action' is 'CREATE', a new contract will be created. If the 'action' is 'UPDATE', an existing contract will be modified. The request body must include the necessary contract details such as the product code, customer ID, and other related information. This operation will return a confirmation of the success or failure of the creation or modification process.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
The contract is created successfully.
Invalid request parameters
Unauthorized access
Forbidden: You do not have permission to access this resource
Resource not found
Internal server error