Create a new VAT posting split for the bookable tour
post
/spms/v2/ships/{shipId}/configurations/excursions/bookableTours/{bookableTourId}/vatPostingSplits
This is to create a new VAT posting split for the bookable tour
Request
Supported Media Types
- application/json
Path Parameters
-
bookableTourId: number
Bookable Tour Id
-
shipId: number
Ship Id
Root Schema : Create bookable tour VAT posting splits
Type:
object
Title:
Show Source
Create bookable tour VAT posting splits
Nested Schema : vatPostingSplitsCreateRequest
Type:
Show Source
object
-
bookingType:
string
Minimum Length:
0
Maximum Length:14
Pattern:^[a-zA-Z0-9 ]*$
Booking Type: Regular, Prepaid, Refund Prepaid. This is not case sensitiveExample:Regular
-
vatAmountAdult:
number
Minimum Value:
1.0E-4
Maximum Value:1.0E18
VAT Amount for adultExample:20.5
-
vatAmountChild:
number
Minimum Value:
1.0E-4
Maximum Value:1.0E18
VAT Amount for childExample:10.5
-
vatPostingDepartmentCode:
string
Minimum Length:
0
Maximum Length:10
Pattern:^[a-zA-Z0-9 ]*$
VAT Posting Department Code (must be debit department and cannot be disabled)Example:8007
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : Bookable Tour VAT Posting Splits
Type:
object
Title:
Bookable Tour VAT Posting Splits
Retrieve bookable tour VAT posting splits
Show Source
Nested Schema : vatPostingSplitsResponse
Type:
Show Source
object
-
bookingType(optional):
string
Booking Type: Regular, Prepaid, Refund Prepaid. This is not case sensitiveExample:
Regular
-
vatAmountAdult(optional):
number
VAT Amount for adultExample:
20.5
-
vatAmountChild(optional):
number
VAT Amount for childExample:
10.5
-
vatPostingDepartmentCode(optional):
string
VAT Posting Department CodeExample:
8007
-
vatPostingDepartmentName(optional):
string
VAT Posting Department NameExample:
American Express
-
vatPostingSplitId(optional):
number
VAT Posting Split IdExample:
1234567
-
vatTaxRate(optional):
number
VAT percentageExample:
3
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.1",
"title":"Bad Request",
"detail":[
{
"errorPath":"vatPostingSplits[0].vatPostingDepartmentCode",
"message":"must not be null"
}
]
}
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":"Unauthorized",
"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":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource is forbidden"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
Not Found
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.5",
"title":"Not Found",
"detail":"Ship Id could not be found"
}
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":"http://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":"System not allows officers to schedule a tour before the current date"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
409 Response
Conflict
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.10",
"title":"Conflict",
"detail":"VAT posting split creation not allowed due to this bookable tour is expired"
}
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":"HTTP://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