Retrieve configured main department record.
get
/spms/v2/ships/{shipId}/configurations/financialMainDepartments/debit/{mainDepartmentCode}
This is to retrieve the configured main department codes.
Request
Supported Media Types
- application/json
Path Parameters
-
mainDepartmentCode(required): string
Main Depatment Code
-
shipId(required): number
ship Id
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Configured main department
Type:
object
Title:
Configured main department
Configured main department record
Show Source
-
departmentType:
string
Title:
Department Type
Default Value:Credit
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Department type. Always equal to CreditExample:Credit
-
gratuityDistributionRules:
object Gratuity Distribution Rules
Title:
Gratuity Distribution Rules
Gratuity Distribution Rules -
isActive:
boolean
Activation status of the sub department: * `true` - Sub Department is active * `false` - Sub Department is inactiveExample:
true
-
lastModifiedDate:
string
Title:
Last Modified Date
Last Modified DateExample:2022-09-21 17:00:00
-
mainDepartmentCode:
string
Title:
Main Department Code
Maximum Length:10
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Main Department CodeExample:9040
-
mainDepartmentDescription:
string
Title:
Main Department Description
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Main Department DescriptionExample:Visa Card
-
mainDepartmentOtherDescription:
string
Pattern:
^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Main Department Other DescriptionExample:Makanan dan Minuman
-
payrollPayoutTagSignature:
string
Title:
Tag Signature for Payroll Payout
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Tag Signature Capture required during payroll payout * Yes * No * Not SpecifiedExample:Yes
Nested Schema : Gratuity Distribution Rules
Type:
object
Title:
Gratuity Distribution Rules
Gratuity Distribution Rules
Show Source
-
creditLimit:
integer
Pattern:
^[0-9]*$
Credit LimitExample:1
-
departmentLocation:
object Department Location
Title:
Department Location
Department Location -
percentagePoolDistribution:
integer
Pattern:
^[0-9]*$
Percentage for Pool DistributionExample:1
-
percentageTeamServer1:
integer
Pattern:
^[0-9]*$
Percentage for Team Server 1Example:1
-
percentageTeamServer2:
integer
Pattern:
^[0-9]*$
Percentage for Team Server 2Example:1
-
subDepartmentCodeAutomatic:
object Sub Department Code for Automatic Service Charge
Title:
Sub Department Code for Automatic Service Charge
Sub Department Code for Automatic Service Charge -
subDepartmentCodeManual:
object Sub Department Code for Manual Service Charge
Title:
Sub Department Code for Manual Service Charge
Sub Department Code for Manual Service Charge
Nested Schema : Department Location
Type:
object
Title:
Department Location
Department Location
Show Source
-
departmentLocationTitle:
string
Maximum Length:
10
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Department location titleExample:Adventure Trail
Nested Schema : Sub Department Code for Automatic Service Charge
Type:
object
Title:
Sub Department Code for Automatic Service Charge
Sub Department Code for Automatic Service Charge
Show Source
-
percentageToDistribute:
integer
Pattern:
^[0-9]*$
Percentage to distributeExample:1
-
subDepartmentCode:
string
Title:
Sub Department Code
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Sub Department CodeExample:9041
-
subDepartmentDescription:
string
Title:
Sub Department Description
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Sub Department DescriptionExample:Visa Card
Nested Schema : Sub Department Code for Manual Service Charge
Type:
object
Title:
Sub Department Code for Manual Service Charge
Sub Department Code for Manual Service Charge
Show Source
-
percentageToDistribute:
integer
Pattern:
^[0-9]*$
Percentage to distributeExample:1
-
subDepartmentCode:
string
Title:
Sub Department Code
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Sub Department CodeExample:9041
-
subDepartmentDescription:
string
Title:
Sub Department Description
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Sub Department DescriptionExample:Visa Card
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":"Limit must not be less than one!"
}
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":"This resource path does not exist"
}
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":"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
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