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
- application/json
Required fields to create Contract
Root Schema : Contract
Type:
object
Title:
Contract
Legal document for guest to sign/ acknowledge
Show Source
-
category:
integer
Minimum Value:
1
Maximum Value:1
This value is the id value obtained from Contract CategoryExample:1
-
content(optional):
string
Minimum Value:
0
Maximum Value:50000
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
This is the content of the contractExample: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.
-
enabled(optional):
boolean
Indicates whether this contract is enabledExample:
true
-
name:
string
Minimum Value:
1
Maximum Value:100
Pattern:^[a-zA-Z0-9 ]*$
Example:Oracle Cruise Contract
-
remarks(optional):
boolean
Indicates whether the remarks textbox should be displayed or notExample:
true
-
signature(optional):
boolean
Indicates whether the signature is required or not. True indicates required, false indicates not required.Example:
true
-
termsAndCondition(optional):
string
Minimum Value:
0
Maximum Value:500
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
This is the actual terms and condition for this contractExample: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.
-
termsAndConditionStatus(optional):
boolean
Indicates whether the terms and condition is mandatory or optional. True indicates mandatory, false indicates optional.Example:
true
Response
Supported Media Types
- application/json
201 Response
Contract has been created
Root Schema : Contract
Type:
object
Title:
Contract
Legal document for guest to sign/ acknowledge
Show Source
-
category:
integer
Minimum Value:
1
Maximum Value:1
This value is the id value obtained from Contract CategoryExample:1
-
content(optional):
string
Minimum Value:
0
Maximum Value:50000
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
This is the content of the contractExample: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.
-
enabled(optional):
boolean
Indicates whether this contract is enabledExample:
true
-
id(optional):
integer
This value is the primary key for Contract
-
name:
string
Minimum Value:
1
Maximum Value:100
Pattern:^[a-zA-Z0-9 ]*$
Example:Oracle Cruise Contract
-
remarks(optional):
boolean
Indicates whether the remarks textbox should be displayed or notExample:
true
-
signature(optional):
boolean
Indicates whether the signature is required or not. True indicates required, false indicates not required.Example:
true
-
termsAndCondition(optional):
string
Minimum Value:
0
Maximum Value:500
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\":;@`]*$
This is the actual terms and condition for this contractExample: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.
-
termsAndConditionStatus(optional):
boolean
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
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
401 Response
You are not authorized to use this API
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
403 Response
You are forbidden to use this API
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
405 Response
This method is not available
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
409 Response
You are trying to create a contract that exist
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
415 Response
The media supplied is not supported
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
500 Response
Error occurred while processing this request
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
502 Response
Bad Gateway
503 Response
Service not available