> ## 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"
> ```

# Raise Reimbursement Request

POST https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements
Content-Type: application/json

Raises a reimbursement request (an expense claim) for a staff member, as they would in the SalaryBox app. Shared rules: see [Writing data](/conventions#writing-data). Requires Payroll on your plan.

* The claim is not approved by this call. It waits on the staff member's reimbursement approval flow, or on an admin, and the response `status` is `pending`. It is `approved` straight away when an Admin key raises it, or in the rare case an approval flow has nobody at any level to act.
* Approvers get the usual notifications and email, as if the staff member had raised it. The claim appears in List Reimbursement Requests (`GET /requests/reimbursements`), and reaches payroll only once approved.
* `date` is the day of the expense, `YYYY-MM-DD`. A date in the future or in a finalised payroll month is refused with `400` on `date`.
* `amount` is a JSON number from 0.01 to 10000000 with up to 2 decimals. `notes` is optional, at max 500 characters, trimmed.
* Proof such as receipts can't be attached through the API. The staff member adds it in the SalaryBox app.
* SalaryBox does not de-duplicate this call: repeating it raises a second claim. If a call failed or timed out, check List Reimbursement Requests before sending it again.
* To decide a claim, see Approve or Reject Reimbursement Requests (`PUT /payroll/reimbursement/{salarybox_id}/decision`).

API keys need no extra permission.

Reference: https://docs.salarybox.in/api-reference/payroll/requests-reimbursements-create

## Authentication

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

## Request

### Body (application/json)

This endpoint expects a RaiseReimbursementRequest.

- `salarybox_id` (string, required) — SalaryBox ID of an active staff member.
- `date` (date, required) — Day of the expense, `YYYY-MM-DD`. Not in the future or in a finalised payroll month.
- `amount` (double, required) — Claim amount, a JSON number with up to 2 decimals.
- `notes` (string, optional) — What the expense was for. Outer spaces are trimmed.

## Response

### 201

The reimbursement request was raised.

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

## Errors

### 400 Bad Request Error

Validation failed, the date is in the future or in a finalised payroll month, 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 key owner lost access.

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

### 404 Not Found Error

No eligible active staff member with this `salarybox_id` exists in your company.

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

## Types

### RaiseReimbursementResponseData

- `salarybox_id` (string, optional)
- `staff_name` (string, optional)
- `amount` (string, optional)
- `notes` (string, optional, nullable)
- `reimbursement_date` (date, optional)
- `status` (enum, optional) — `pending` while it waits for a decision; `approved` when an Admin key raised it or the approval flow had nobody to act.
  - Allowed values: `pending`, `approved`
- `created_on` (datetime, optional)
- `action_by` (LeaveApprovalPerson, optional, nullable) — Who approved it when it was approved straight away, otherwise `null`.
- `action_on` (datetime, optional, nullable)
- `action_reason` (string, optional, nullable)
- `approval_flow` (RequestApprovalFlow, optional, nullable) — The staff member's multi-level approval flow, with the level the claim now waits on. `null` when they are not on one.

### LeaveApprovalPerson

A named person.

- `salarybox_id` (string, required) — SalaryBox ID of the person.
- `name` (string, required) — Full name.

### RequestApprovalFlow

The multi-level approval flow a leave or reimbursement request followed, level by level. A request with no log entries yet uses the staff member's currently active flow. For reimbursements above the flow's threshold amount, the levels are the flow's threshold levels.

- `name` (string, required) — Name of the approval flow.
- `levels` (list of RequestApprovalFlowLevel, required)

### RequestApprovalFlowLevel

One level of a multi-level approval flow, as it stands for a particular request.

- `level` (integer, required) — Level number, starting at 1. Levels are listed in order.
- `approvers` (list of LeaveApprovalPerson, required) — People currently eligible to act at this level, resolved from the level's roles or named people and limited to the staff member's branch and department, the same as in the SalaryBox app. Empty if nobody currently qualifies.
- `action` (enum, required, nullable) — What happened at this level. `SKIPPED` and `AUTO_APPROVED` are applied by SalaryBox without an approver. `null` if this level has not acted yet.
  - Allowed values: `APPROVED`, `REJECTED`, `SKIPPED`, `AUTO_APPROVED`
- `action_by` (LeaveApprovalPerson, required, nullable) — Who acted at this level. `null` if the level has not acted, or was skipped or auto-approved.
- `action_on` (datetime, required, nullable) — When this level acted. `null` if it has not acted yet.
- `action_reason` (string, required, nullable) — Reason or comment recorded at this level. `null` if none.
- `is_current` (boolean, required) — True only on the level a pending request is waiting on. Always false once the request is settled.

## Examples

**Request**

```json
{
  "salarybox_id": "SBX1234567",
  "date": "2026-11-03",
  "amount": 850,
  "notes": "Cab to client office"
}
```

**Response**

```json
{
  "message": "Reimbursement request raised successfully",
  "status": true,
  "data": {
    "salarybox_id": "SBX1234567",
    "staff_name": "Ravi Kumar",
    "amount": "850.00",
    "notes": "Cab to client office",
    "reimbursement_date": "2026-11-03",
    "status": "pending",
    "created_on": "2026-11-13T09:30:00Z",
    "action_by": null,
    "action_on": null,
    "action_reason": null,
    "approval_flow": null
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements"

payload = {
    "salarybox_id": "SBX1234567",
    "date": "2026-11-03",
    "amount": 850,
    "notes": "Cab to client office"
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements';
const options = {
  method: 'POST',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"salarybox_id":"SBX1234567","date":"2026-11-03","amount":850,"notes":"Cab to client office"}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements"

	payload := strings.NewReader("{\n  \"salarybox_id\": \"SBX1234567\",\n  \"date\": \"2026-11-03\",\n  \"amount\": 850,\n  \"notes\": \"Cab to client office\"\n}")

	req, _ := http.NewRequest("POST", 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 Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"salarybox_id\": \"SBX1234567\",\n  \"date\": \"2026-11-03\",\n  \"amount\": 850,\n  \"notes\": \"Cab to client office\"\n}"

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.post("https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"salarybox_id\": \"SBX1234567\",\n  \"date\": \"2026-11-03\",\n  \"amount\": 850,\n  \"notes\": \"Cab to client office\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements', [
  'body' => '{
  "salarybox_id": "SBX1234567",
  "date": "2026-11-03",
  "amount": 850,
  "notes": "Cab to client office"
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"salarybox_id\": \"SBX1234567\",\n  \"date\": \"2026-11-03\",\n  \"amount\": 850,\n  \"notes\": \"Cab to client office\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "salarybox_id": "SBX1234567",
  "date": "2026-11-03",
  "amount": 850,
  "notes": "Cab to client office"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/requests/reimbursements")! 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()
```