> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.biposervice.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.biposervice.com/_mcp/server.

# Allowance - UPSERT

POST https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76
Content-Type: application/json

Reference: https://developer.biposervice.com/bipo-portal/hrms-v-1/hrms-v-1-payroll/hrms-v-1-hrms-v-1-payroll-reference/hrms-v-1-hrms-v-1-payroll-hrms-v-1-hrms-v-1-payroll-reference-allowance/allowance-upsert

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects an object.

- `Data` (list of Api2BipoImportUpdatePostApi2BipoimportUpdate76PostRequestBodyContentApplicationJsonSchemaDataItems, required)
- `InterfaceCode` (string, required)

## Response

### 200

OK

- `ok` (boolean, required)
- `msg` (string, required)

## Types

### Api2BipoImportUpdatePostApi2BipoimportUpdate76PostRequestBodyContentApplicationJsonSchemaDataItems

- `Rate` (integer, required)
- `FixDays` (integer, required)
- `Category` (string, required)
- `Obsolete` (string, required)
- `Quantity` (integer, required)
- `WageType` (string, required)
- `CountryCode` (string, required)
- `PayslipShow` (string, required)
- `ResignMonths` (integer, required)
- `TaxExemption` (integer, required)
- `AllowanceCode` (string, required)
- `AllowanceName` (string, required)
- `AllowanceType` (string, required)
- `IDTaxCategory` (string, required)
- `ProrationType` (string, required)
- `SGTaxCategory` (string, required)
- `RoundingAmount` (integer, required)
- `PayslipSequence` (integer, required)
- `PayslipSuppress` (integer, required)
- `FinalPaySequence` (integer, required)
- `TWPayslipSequence` (integer, required)
- `TWPayslipSuppress` (integer, required)
- `CP22` (any, optional)
- `LIType` (any, optional)
- `PFType` (any, optional)
- `EPFType` (any, optional)
- `ESIType` (any, optional)
- `GLGroup` (any, optional)
- `GPFType` (any, optional)
- `HRAType` (any, optional)
- `LWFType` (any, optional)
- `MSOType` (any, optional)
- `NSGroup` (any, optional)
- `ProfTax` (any, optional)
- `SDLType` (any, optional)
- `SSFType` (any, optional)
- `SSSType` (any, optional)
- `DPLKType` (any, optional)
- `HRDFType` (any, optional)
- `NHI2Type` (any, optional)
- `FixedFlag` (any, optional)
- `RetroFlag` (any, optional)
- `SOCSOType` (any, optional)
- `BPJSKSType` (any, optional)
- `BPJSTKType` (any, optional)
- `DeleteZero` (any, optional)
- `GrossOrNet` (any, optional)
- `ArrearsFlag` (any, optional)
- `CurrMthFlag` (any, optional)
- `FormulaCode` (any, optional)
- `PagIBIGType` (any, optional)
- `PayslipUnit` (any, optional)
- `UnpaidCodes` (any, optional)
- `Avg12MthFlag` (any, optional)
- `CurrencyCode` (any, optional)
- `ExcludeSHPay` (any, optional)
- `FinalPayShow` (any, optional)
- `FinalPayUnit` (any, optional)
- `RoundingType` (any, optional)
- `TaxableGroup` (any, optional)
- `ArrearsADCode` (any, optional)
- `BackpayADCode` (any, optional)
- `HKTaxCategory` (any, optional)
- `MYTaxCategory` (any, optional)
- `PHTaxCategory` (any, optional)
- `TWPayslipShow` (any, optional)
- `TotalWageFlag` (any, optional)
- `PayslipDisplay` (any, optional)
- `PhilHealthType` (any, optional)
- `RegularPayment` (any, optional)
- `ReportingGroup` (any, optional)
- `RoundingMethod` (any, optional)
- `FinalPayDisplay` (any, optional)
- `NonFullWageFlag` (any, optional)
- `OccurenceMonths` (any, optional)
- `PayslipGrouping` (any, optional)
- `FinalPayGrouping` (any, optional)
- `RoundingQuantity` (any, optional)
- `ShowDetailPeriod` (any, optional)
- `TaxDeductionCode` (any, optional)
- `TaxExemptionCode` (any, optional)
- `TaxExemptionType` (any, optional)
- `BasisAmountMethod` (any, optional)
- `BenefitInKindCode` (any, optional)
- `TWPayslipGrouping` (any, optional)
- `YTDPayslipCategory` (any, optional)
- `InjuryTotalWageFlag` (any, optional)
- `TaxExemptionCategory` (any, optional)
- `WorkdayExcludeHoliday` (any, optional)
- `IncludeInPayrollRegister` (any, optional)

## Examples

**Request**

```json
{
  "Data": [
    {
      "Rate": 1,
      "FixDays": 0,
      "Category": "XX",
      "Obsolete": "N",
      "Quantity": 0,
      "WageType": "O",
      "CountryCode": "*",
      "PayslipShow": "1",
      "ResignMonths": 0,
      "TaxExemption": 0,
      "AllowanceCode": "HF_LEADER",
      "AllowanceName": "Leadership Allowance",
      "AllowanceType": "A",
      "IDTaxCategory": "01",
      "ProrationType": "N",
      "SGTaxCategory": "010",
      "RoundingAmount": 0,
      "PayslipSequence": 0,
      "PayslipSuppress": 1,
      "FinalPaySequence": 0,
      "TWPayslipSequence": 0,
      "TWPayslipSuppress": 1
    }
  ],
  "InterfaceCode": "BIPO-AM"
}
```

**Response**

```json
{
  "ok": true,
  "msg": "Import Succeed."
}
```

**SDK Code**

```python Allowance - UPSERT
import requests

url = "https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76"

payload = {
    "Data": [
        {
            "Rate": 1,
            "FixDays": 0,
            "Category": "XX",
            "Obsolete": "N",
            "Quantity": 0,
            "WageType": "O",
            "CountryCode": "*",
            "PayslipShow": "1",
            "ResignMonths": 0,
            "TaxExemption": 0,
            "AllowanceCode": "HF_LEADER",
            "AllowanceName": "Leadership Allowance",
            "AllowanceType": "A",
            "IDTaxCategory": "01",
            "ProrationType": "N",
            "SGTaxCategory": "010",
            "RoundingAmount": 0,
            "PayslipSequence": 0,
            "PayslipSuppress": 1,
            "FinalPaySequence": 0,
            "TWPayslipSequence": 0,
            "TWPayslipSuppress": 1
        }
    ],
    "InterfaceCode": "BIPO-AM"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Allowance - UPSERT
const url = 'https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"Data":[{"Rate":1,"FixDays":0,"Category":"XX","Obsolete":"N","Quantity":0,"WageType":"O","CountryCode":"*","PayslipShow":"1","ResignMonths":0,"TaxExemption":0,"AllowanceCode":"HF_LEADER","AllowanceName":"Leadership Allowance","AllowanceType":"A","IDTaxCategory":"01","ProrationType":"N","SGTaxCategory":"010","RoundingAmount":0,"PayslipSequence":0,"PayslipSuppress":1,"FinalPaySequence":0,"TWPayslipSequence":0,"TWPayslipSuppress":1}],"InterfaceCode":"BIPO-AM"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Allowance - UPSERT
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76"

	payload := strings.NewReader("{\n  \"Data\": [\n    {\n      \"Rate\": 1,\n      \"FixDays\": 0,\n      \"Category\": \"XX\",\n      \"Obsolete\": \"N\",\n      \"Quantity\": 0,\n      \"WageType\": \"O\",\n      \"CountryCode\": \"*\",\n      \"PayslipShow\": \"1\",\n      \"ResignMonths\": 0,\n      \"TaxExemption\": 0,\n      \"AllowanceCode\": \"HF_LEADER\",\n      \"AllowanceName\": \"Leadership Allowance\",\n      \"AllowanceType\": \"A\",\n      \"IDTaxCategory\": \"01\",\n      \"ProrationType\": \"N\",\n      \"SGTaxCategory\": \"010\",\n      \"RoundingAmount\": 0,\n      \"PayslipSequence\": 0,\n      \"PayslipSuppress\": 1,\n      \"FinalPaySequence\": 0,\n      \"TWPayslipSequence\": 0,\n      \"TWPayslipSuppress\": 1\n    }\n  ],\n  \"InterfaceCode\": \"BIPO-AM\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Allowance - UPSERT
require 'uri'
require 'net/http'

url = URI("https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"Data\": [\n    {\n      \"Rate\": 1,\n      \"FixDays\": 0,\n      \"Category\": \"XX\",\n      \"Obsolete\": \"N\",\n      \"Quantity\": 0,\n      \"WageType\": \"O\",\n      \"CountryCode\": \"*\",\n      \"PayslipShow\": \"1\",\n      \"ResignMonths\": 0,\n      \"TaxExemption\": 0,\n      \"AllowanceCode\": \"HF_LEADER\",\n      \"AllowanceName\": \"Leadership Allowance\",\n      \"AllowanceType\": \"A\",\n      \"IDTaxCategory\": \"01\",\n      \"ProrationType\": \"N\",\n      \"SGTaxCategory\": \"010\",\n      \"RoundingAmount\": 0,\n      \"PayslipSequence\": 0,\n      \"PayslipSuppress\": 1,\n      \"FinalPaySequence\": 0,\n      \"TWPayslipSequence\": 0,\n      \"TWPayslipSuppress\": 1\n    }\n  ],\n  \"InterfaceCode\": \"BIPO-AM\"\n}"

response = http.request(request)
puts response.read_body
```

```java Allowance - UPSERT
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"Data\": [\n    {\n      \"Rate\": 1,\n      \"FixDays\": 0,\n      \"Category\": \"XX\",\n      \"Obsolete\": \"N\",\n      \"Quantity\": 0,\n      \"WageType\": \"O\",\n      \"CountryCode\": \"*\",\n      \"PayslipShow\": \"1\",\n      \"ResignMonths\": 0,\n      \"TaxExemption\": 0,\n      \"AllowanceCode\": \"HF_LEADER\",\n      \"AllowanceName\": \"Leadership Allowance\",\n      \"AllowanceType\": \"A\",\n      \"IDTaxCategory\": \"01\",\n      \"ProrationType\": \"N\",\n      \"SGTaxCategory\": \"010\",\n      \"RoundingAmount\": 0,\n      \"PayslipSequence\": 0,\n      \"PayslipSuppress\": 1,\n      \"FinalPaySequence\": 0,\n      \"TWPayslipSequence\": 0,\n      \"TWPayslipSuppress\": 1\n    }\n  ],\n  \"InterfaceCode\": \"BIPO-AM\"\n}")
  .asString();
```

```php Allowance - UPSERT
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76', [
  'body' => '{
  "Data": [
    {
      "Rate": 1,
      "FixDays": 0,
      "Category": "XX",
      "Obsolete": "N",
      "Quantity": 0,
      "WageType": "O",
      "CountryCode": "*",
      "PayslipShow": "1",
      "ResignMonths": 0,
      "TaxExemption": 0,
      "AllowanceCode": "HF_LEADER",
      "AllowanceName": "Leadership Allowance",
      "AllowanceType": "A",
      "IDTaxCategory": "01",
      "ProrationType": "N",
      "SGTaxCategory": "010",
      "RoundingAmount": 0,
      "PayslipSequence": 0,
      "PayslipSuppress": 1,
      "FinalPaySequence": 0,
      "TWPayslipSequence": 0,
      "TWPayslipSuppress": 1
    }
  ],
  "InterfaceCode": "BIPO-AM"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Allowance - UPSERT
using RestSharp;

var client = new RestClient("https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"Data\": [\n    {\n      \"Rate\": 1,\n      \"FixDays\": 0,\n      \"Category\": \"XX\",\n      \"Obsolete\": \"N\",\n      \"Quantity\": 0,\n      \"WageType\": \"O\",\n      \"CountryCode\": \"*\",\n      \"PayslipShow\": \"1\",\n      \"ResignMonths\": 0,\n      \"TaxExemption\": 0,\n      \"AllowanceCode\": \"HF_LEADER\",\n      \"AllowanceName\": \"Leadership Allowance\",\n      \"AllowanceType\": \"A\",\n      \"IDTaxCategory\": \"01\",\n      \"ProrationType\": \"N\",\n      \"SGTaxCategory\": \"010\",\n      \"RoundingAmount\": 0,\n      \"PayslipSequence\": 0,\n      \"PayslipSuppress\": 1,\n      \"FinalPaySequence\": 0,\n      \"TWPayslipSequence\": 0,\n      \"TWPayslipSuppress\": 1\n    }\n  ],\n  \"InterfaceCode\": \"BIPO-AM\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Allowance - UPSERT
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "Data": [
    [
      "Rate": 1,
      "FixDays": 0,
      "Category": "XX",
      "Obsolete": "N",
      "Quantity": 0,
      "WageType": "O",
      "CountryCode": "*",
      "PayslipShow": "1",
      "ResignMonths": 0,
      "TaxExemption": 0,
      "AllowanceCode": "HF_LEADER",
      "AllowanceName": "Leadership Allowance",
      "AllowanceType": "A",
      "IDTaxCategory": "01",
      "ProrationType": "N",
      "SGTaxCategory": "010",
      "RoundingAmount": 0,
      "PayslipSequence": 0,
      "PayslipSuppress": 1,
      "FinalPaySequence": 0,
      "TWPayslipSequence": 0,
      "TWPayslipSuppress": 1
    ]
  ],
  "InterfaceCode": "BIPO-AM"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://server.bipocloud.com/tenant/api2/BIPOImport/Update#postApi2BipoimportUpdate76")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```