Skip to main content
PATCH
/
api
/
v1
/
hr
/
expenses
/
claims
/
{id}
cURL
curl -sS -X PATCH "$FLUIDE_BASE_URL/api/v1/hr/expenses/claims/string" \
  -H "Authorization: Bearer $FLUIDE_ACCESS_TOKEN" \
  -H "X-Fluide-Api-Key: $FLUIDE_API_KEY" \
  -H "X-Fluide-Client-Id: fluide-developer" \
  -H "X-Workspace-Id: $FLUIDE_WORKSPACE_ID" \
  -H "X-Acting-Company-Id: $FLUIDE_COMPANY_ID" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "organizationId": "<string>",
  "companyId": "<string>",
  "hrEmployeeId": "<string>",
  "employee": {},
  "claimNumber": "<string>",
  "title": "<string>",
  "currency": "<string>",
  "totalAmount": 123,
  "submittedAt": "2023-11-07T05:31:56Z",
  "approvedAt": "2023-11-07T05:31:56Z",
  "paidAt": "2023-11-07T05:31:56Z",
  "notes": "<string>",
  "lines": [
    {
      "claimId": "<string>",
      "claim": "<unknown>",
      "expenseDate": "2023-11-07T05:31:56Z",
      "category": "<string>",
      "description": "<string>",
      "amount": 123,
      "receiptArtifactId": "<string>",
      "costCenterId": "<string>",
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Access token JWT. Use as Authorization: Bearer . In the API playground, paste the JWT only.

X-Fluide-Api-Key
string
header
default:fl_dev_your_key
required

Developer API key (fl_dev_...). Required on every API call with a machine access token.

X-Fluide-Client-Id
string
header
default:fluide-developer
required

First-party client audience. Must match the fluide_client_id claim on the JWT. Use fluide-developer for Connect.

Headers

X-Workspace-Id
string<uuid>

Partner / ISV only: UUID of the workspace that owns the client company. Required together with X-Acting-Company-Id when scoping product APIs to a merchant. See /getting-started/multi-tenancy.

X-Acting-Company-Id
string<uuid>

Partner / ISV only: UUID of the client company to act on. Must belong to the workspace in X-Workspace-Id.

Path Parameters

id
string
required

Body

application/json
title
string
currency
string
Example:

"XAF"

notes
string
lines
object[]

Response

200 - application/json
organizationId
string
required
companyId
string
required
hrEmployeeId
string
required
employee
object
required
claimNumber
string
required
title
string
required
currency
string
required
totalAmount
number
required
status
enum<string>
required
Available options:
DRAFT,
SUBMITTED,
APPROVED,
REJECTED,
PAID,
CANCELLED
submittedAt
string<date-time> | null
required
approvedAt
string<date-time> | null
required
paidAt
string<date-time> | null
required
notes
string | null
required
lines
object[]
required
id
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
deletedAt
string<date-time>