> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# Approve or Reject Reimbursement Requests

PUT https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/{salarybox_id}/decision
Content-Type: application/json

Approves or rejects one pending reimbursement request of a staff member. Shared rules: see [Writing data](/conventions#writing-data). Needs Payroll on your plan.

- Find the request with List Reimbursement Requests (`GET /requests/reimbursements`). Send its `reimbursement_date` as `date` and its `amount`.
- Only pending requests can be decided. Revoke is not available.
- `action` is `APPROVE` or `REJECT`. `reason` is optional, at max 500 characters, trimmed.
- `status` in the response can stay `pending` when a multi-level approval flow still needs a later level. An Admin's approval finishes all levels.
- If no pending request matches `date`, the response is `404` "Reimbursement request not found." If more than one pending request matches, the response is `400` on `date` ("Decide them in the SalaryBox app.").
- You cannot decide your own request (`400`). A request that is not pending at your approval level gives `403`. A finalised payroll month gives `400`.
- Repeating the request after it succeeded returns `404`, which is harmless.


Reference: https://docs.salarybox.in/api-reference/payroll/reimbursement-decision-update

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Request

### Path parameters

- `salarybox_id` (string, required) — SalaryBox ID of the staff member who raised the request.

### Body (application/json)

This endpoint expects a PayrollReimbursementDecisionRequest.

- `date` (date, required) — The `reimbursement_date` of the request as listed by `GET /requests/reimbursements`.
- `amount` (double, required) — The `amount` of the request as listed by `GET /requests/reimbursements`.
- `action` (enum, required)
  - Allowed values: `APPROVE`, `REJECT`
- `reason` (string, optional)

## Response

### 200

The decision was saved.

- `message` (string, optional)
- `status` (boolean, optional)
- `data` (PayrollSalaryComponentEntry, optional)

## Errors

### 400 Bad Request Error

Validation failed, more than one pending request matches `date`, it is your own request, the payroll month is finalised, or the staff member is inactive.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 403 Forbidden Error

Your plan does not include payroll, or the request is not pending at your approval level.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 404 Not Found Error

Staff not found, or no pending reimbursement request matches `date`.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

## Types

### PayrollSalaryComponentEntry

- `salarybox_id` (string, optional)
- `component_type` (enum, optional)
  - Allowed values: `incentive`, `reimbursement`
- `date` (date, optional)
- `amount` (double, optional)
- `notes` (string, optional)
- `incentive_type` (string, optional) — Present for an incentive.
- `status` (string, optional) — Present for a reimbursement. `approved`, or `pending` while it awaits a decision.

## Examples

### Example

**Response**

```json
{
  "message": "Reimbursement decision saved successfully",
  "status": true,
  "data": {
    "salarybox_id": "SBX1234567",
    "component_type": "reimbursement",
    "date": "2026-11-03",
    "amount": 1500,
    "notes": "Client visit travel",
    "status": "approved"
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision"

headers = {"Authorization": "Api-Key  <apiKey>"}

response = requests.put(url, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision';
const options = {method: 'PUT', headers: {Authorization: 'Api-Key  <apiKey>'}};

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

```go Example
package main

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

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")

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

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

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

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

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

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

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

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

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()
```

### Approve

**Request**

```json
{
  "date": "2026-11-03",
  "amount": 1500,
  "action": "APPROVE"
}
```

**Response**

```json
{
  "message": "Reimbursement decision saved successfully",
  "status": true,
  "data": {
    "salarybox_id": "SBX1234567",
    "component_type": "reimbursement",
    "date": "2026-11-03",
    "amount": 1500,
    "notes": "Client visit travel",
    "status": "approved"
  }
}
```

**SDK Code**

```python Approve
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision"

payload = {
    "date": "2026-11-03",
    "amount": 1500,
    "action": "APPROVE"
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Approve
const url = 'https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"date":"2026-11-03","amount":1500,"action":"APPROVE"}'
};

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

```go Approve
package main

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

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision"

	payload := strings.NewReader("{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"APPROVE\"\n}")

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

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	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 Approve
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"APPROVE\"\n}"

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

```java Approve
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"APPROVE\"\n}")
  .asString();
```

```php Approve
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision', [
  'body' => '{
  "date": "2026-11-03",
  "amount": 1500,
  "action": "APPROVE"
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Approve
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"APPROVE\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Approve
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "date": "2026-11-03",
  "amount": 1500,
  "action": "APPROVE"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
```

### Reject

**Request**

```json
{
  "date": "2026-11-03",
  "amount": 1500,
  "action": "REJECT",
  "reason": "Receipt missing"
}
```

**Response**

```json
{
  "message": "Reimbursement decision saved successfully",
  "status": true,
  "data": {
    "salarybox_id": "SBX1234567",
    "component_type": "reimbursement",
    "date": "2026-11-03",
    "amount": 1500,
    "notes": "Client visit travel",
    "status": "approved"
  }
}
```

**SDK Code**

```python Reject
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision"

payload = {
    "date": "2026-11-03",
    "amount": 1500,
    "action": "REJECT",
    "reason": "Receipt missing"
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Reject
const url = 'https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"date":"2026-11-03","amount":1500,"action":"REJECT","reason":"Receipt missing"}'
};

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

```go Reject
package main

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

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision"

	payload := strings.NewReader("{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"REJECT\",\n  \"reason\": \"Receipt missing\"\n}")

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

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	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 Reject
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"REJECT\",\n  \"reason\": \"Receipt missing\"\n}"

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

```java Reject
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"REJECT\",\n  \"reason\": \"Receipt missing\"\n}")
  .asString();
```

```php Reject
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision', [
  'body' => '{
  "date": "2026-11-03",
  "amount": 1500,
  "action": "REJECT",
  "reason": "Receipt missing"
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Reject
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"date\": \"2026-11-03\",\n  \"amount\": 1500,\n  \"action\": \"REJECT\",\n  \"reason\": \"Receipt missing\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Reject
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "date": "2026-11-03",
  "amount": 1500,
  "action": "REJECT",
  "reason": "Receipt missing"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/payroll/reimbursement/salarybox_id/decision")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
```