Create new financial posting entry
post
/spms/v2/ships/{shipId}/financials/folios
Request
Supported Media Types
- application/json
Path Parameters
Required to create posting
Nested Schema : CreatePosting
Type:
object
Title:
Show Source
CreatePosting
-
itemDetails:
object ItemDetails
Title:
ItemDetails
-
postingComment:
string
Maximum Length:
40
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
posting commentExample:comment 1
-
postingType(required):
string
Posting type. POSTING- for generic typeExample:
POSTING
Nested Schema : ItemDetails
Type:
object
Title:
Show Source
ItemDetails
-
buyerId(required):
integer
Buyer IdExample:
3118243
-
checkServer1:
string
Maximum Length:
12
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Check server #1Example:server 1
-
checkServer2:
string
Maximum Length:
12
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Check server #2Example:server 2
-
isSkipCreditLimitCheck:
boolean
Skip credit limit checkingExample:
false
-
items:
array items
-
numberOfGuest:
integer
Number of guestExample:
2
-
posCheckNumber:
string
Maximum Length:
20
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Posting check numberExample:A123
Nested Schema : items
Type:
Show Source
array
-
Array of:
object Items
Title:
Items
Example:
[
{
"subDepartmentCode":"1001",
"totalAmount":"100",
"invoiceWindowNumber":"1",
"isPostToPreviousCruise":false
},
{
"subDepartmentCode":"1002",
"totalAmount":"20",
"invoiceWindowNumber":"2",
"isPostToPreviousCruise":false
}
]
Nested Schema : Items
Type:
object
Title:
Show Source
Items
-
invoiceWindowNumber:
number
invoice window number, null or empty or 1 - Invoice window number 1, 2 - Invoice window number 2, 3 - Invoice window number 3, 4 - Invoice window number 4Example:
1
-
isPostToPreviousCruise:
boolean
Post to previous cruiseExample:
false
-
subDepartmentCode(required):
string
Maximum Length:
10
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Sub department codeExample:1001
-
totalAmount(required):
number
total amountExample:
100
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : CreatePostingResponse
Type:
Show Source
object
-
opiStatus:
Responded error message from OPI ClearText field for not success transaction. If null means transaction succesfullyExample:
Issuer or switch inoperative(01)
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Bad Request",
"detail":"Department ID 1 is not found"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorised",
"detail":"Valid token is required to access this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource was forbidden"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Request a Mime type that is supported for this Resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type Not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service Unavailable. Try again later"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source