FinanceApprove or reject travel claims

Approve or reject travel claims

Needs: Finance, Read-write (travel claims and reimbursements use the Finance permission)

Approve, reject or reset travel claims to Pending, one or many, like the page's approve/reject actions. Approving charges the client where the claim says so; rejecting removes an unbilled charge. Staff are notified. Billed or paid claims can't change.

Note: Each claim is changed on its own, so the response lists updated, unchanged and failed claims.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/travel-claims/status" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "status": "Approved",
  "claims": [
    {
      "id": 115,
      "type": "with_client"
    },
    {
      "id": 71,
      "type": "between_clients"
    }
  ]
}'
{
  "status": "Approved",
  "updated": [
    {
      "id": 115,
      "type": "with_client"
    }
  ],
  "unchanged": [],
  "failed": [
    {
      "id": 71,
      "type": "between_clients",
      "error": "Billed or paid claims cannot change status."
    }
  ]
}
POST
/travel-claims/status
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
claimsarray
Required

Claims to change (up to 200), each {id, type} from GET /travel-claims.

statusstring
Required
Options: Pending, Approved, Rejected
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Body

application/json
claimsarray
Required

Claims to change (up to 200), each {id, type} from GET /travel-claims.

statusstring
Required
Allowed values:PendingApprovedRejected

Responses

OK