NOT FOR PUBLIC DISTRIBUTION: 2020-09-23

Create/ Add a new contract

post

/spms/v1/contracts

This is to create/ add a new contract

Request

Supported Media Types
Body ()
Required fields to create Contract
Root Schema : Contract
Type: object
Title: Contract
Legal document for guest to sign/ acknowledge
Show Source
  • Minimum Value: 1
    Maximum Value: 1
    This value is the id value obtained from Contract Category
    Example: 1
  • Minimum Value: 0
    Maximum Value: 50000
    Pattern: ^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
    This is the content of the contract
    Example: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  • Indicates whether this contract is enabled
    Example: true
  • Minimum Value: 1
    Maximum Value: 100
    Pattern: ^[a-zA-Z0-9 ]*$
    Example: Oracle Cruise Contract
  • Indicates whether the remarks textbox should be displayed or not
    Example: true
  • Indicates whether the signature is required or not. True indicates required, false indicates not required.
    Example: true
  • Minimum Value: 0
    Maximum Value: 500
    Pattern: ^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
    This is the actual terms and condition for this contract
    Example: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
  • Indicates whether the terms and condition is mandatory or optional. True indicates mandatory, false indicates optional.
    Example: true
Back to Top

Response

Supported Media Types

201 Response

Contract has been created
Body ()
Root Schema : Contract
Type: object
Title: Contract
Legal document for guest to sign/ acknowledge
Show Source
  • Minimum Value: 1
    Maximum Value: 1
    This value is the id value obtained from Contract Category
    Example: 1
  • Minimum Value: 0
    Maximum Value: 50000
    Pattern: ^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
    This is the content of the contract
    Example: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  • Indicates whether this contract is enabled
    Example: true
  • This value is the primary key for Contract
  • Minimum Value: 1
    Maximum Value: 100
    Pattern: ^[a-zA-Z0-9 ]*$
    Example: Oracle Cruise Contract
  • Indicates whether the remarks textbox should be displayed or not
    Example: true
  • Indicates whether the signature is required or not. True indicates required, false indicates not required.
    Example: true
  • Minimum Value: 0
    Maximum Value: 500
    Pattern: ^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
    This is the actual terms and condition for this contract
    Example: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
  • Indicates whether the terms and condition is mandatory or optional. True indicates mandatory, false indicates optional.
    Example: true

400 Response

Invalid parameter(s) passed in
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

401 Response

You are not authorized to use this API
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

403 Response

You are forbidden to use this API
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

405 Response

This method is not available
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

409 Response

You are trying to create a contract that exist
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

415 Response

The media supplied is not supported
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

500 Response

Error occurred while processing this request
Body ()
Root Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

502 Response

Bad Gateway

503 Response

Service not available
Back to Top