🛫
XClaim API Partner Docs
  • Introduction
  • Authentication
  • Claim Creation Workflows
    • Appendix
  • First Notice Of Loss (FNOL)
    • Get Claim Selector
    • Get Claim Types
    • Get Fnol
  • Claims
    • Create a new Claim
    • List of all claims
    • Update an existing Claim
    • Get Claim
    • Claim Policy Details
    • List of claims by booking reference
    • List of claims by claim type
    • Claim Files
      • Upload File
      • Upload File for an Existing Claim
      • List of Files by Claim
      • Get File
      • Delete File
  • Webhooks
    • Overview
    • Verifying signatures
    • Claim Webhooks
  • Integrations
    • Cancel For Any Reason (CFAR)
    • Claim Eligibility
      • Get Claim Eligibility Check
Powered by GitBook
On this page
  1. Claims
  2. Claim Files

Upload File

Upload a File. Use the returned Id when submitting a claim to attach it to that claim.

Upload File

POST https://staging.api.xclaim.xcover.com/partners/{partnerCode}/files

Upload a File. Use the returned Id when submitting a claim to attach it to that claim.

Path Parameters

Name
Type
Description

partnerCode*

String

eg. XYZ999

Headers

Name
Type
Description

Authorization*

String

Bearer {{JWT token}}

{
    "file": null
}
{
    "type": "exception",
    "message": "422 Unprocessable Content",
    "errors": {
        "file": [
            "The file field is required."
        ]
    }
}
{
    "file": "dummy.pdf <file-resource>"
}
{
    "data": {
        "id": "37aa1591-fb82-441e-8fd8-f8d34f2f682d",
        "claimId": null,
        "location": "claim_files/91ad816a-535f-11ee-8e0c-0bc1ac93123a.pdf",
        "meta": {
            "dirname": ".",
            "basename": "dummy.pdf",
            "extension": "pdf",
            "filename": "dummy"
        },
        "createdAt": "2023-09-15T00:34:02+00:00",
        "updatedAt": "2023-09-15T00:34:02+00:00"
    }
}
PreviousClaim FilesNextUpload File for an Existing Claim

Last updated 1 year ago