Developers
API referenceReferenceExpense claims

Submit an expense claim

Sends the caller's own draft to the approvers.

POST
/v1/business/{business_slug}/expense_claims/{claim_id}/submit/

Path Parameters

business_slug*string

Business slug that scopes this request. If you do not have one yet, call common_accessible_businesses_list and pick a slug from the response.

claim_id*integer

Identifier of the target claim. If the ID is not known, use the corresponding list endpoint with relevant filters and/or the search parameter to discover valid IDs.

Response Body

application/json

curl -X POST "https://example.com/v1/business/string/expense_claims/0/submit/"
{  "id": 0,  "number": "string",  "name": "string",  "status": "DRAFT",  "message_to_approver": "string",  "total_amount": 0.1,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "claimant": {    "id": 0,    "first_name": "string",    "last_name": "string"  },  "claimant_profile": {    "name": "string",    "iban": "string",    "home_address": "string"  },  "tags": [    {      "id": 0,      "name": "string",      "color": "string"    }  ],  "status_reason": "string",  "status_reason_kind": "REJECTED",  "payee_name": "string",  "payee_iban": "string",  "booking_date": "2019-08-24",  "approved_as_accrual_based": true,  "submitted_at": "2019-08-24T14:15:22Z",  "submitted_by_name": "string",  "list_title": "string",  "list_title_month": 0,  "approved_at": "2019-08-24T14:15:22Z",  "approved_by": {    "id": 0,    "first_name": "string",    "last_name": "string",    "name": "string"  },  "purchase_invoice_id": 0,  "iban_changed": true,  "accrual_based": true,  "can_approve": true,  "can_cancel": true,  "lines": [    {      "id": 0,      "kind": "MILEAGE",      "description": "string",      "basis": "string",      "amount": 0.1,      "vat_rate": "string",      "vat_amount": 0.1,      "vat_code": 1,      "account": {        "id": 0,        "number": "string",        "name": "string"      },      "tags": [        {          "id": 0,          "name": "string",          "color": "string"        }      ],      "distance_source": "ROUTE",      "route_distance_km": "string",      "expense_id": 0,      "trip_id": 0,      "day_index": 0,      "starts_at": "2019-08-24T14:15:22Z",      "ends_at": "2019-08-24T14:15:22Z",      "allowance_type": "NONE"    }  ]}