Skip to content

Latest commit

 

History

History
49 lines (47 loc) · 1.17 KB

edu-benefits.md

File metadata and controls

49 lines (47 loc) · 1.17 KB

Education Benefits Claims API

  • Purpose: Submit an education benefits claim
  • HTTP Method: POST
  • Path: /v0/education_benefits_claims
  • Header for converting from/to camelcase: X-Key-Inflection: camel
  • Parameters:
{
  educationBenefitsClaim: {
    // validated against education benefits schema in vets-json-schema
    // must be a JSON string otherwise the middleware will convert all
    // the keys to under_score case and it will fail the schema validation
    form: formObjectAsJsonString 
  }
}
  • Example request:
POST /v0/education_benefits_claims HTTP/1.1
Host: www.vets.gov
Content-Type: application/json
X-Key-Inflection: camel

{
  "educationBenefitsClaim": {
    "form": "{\"preferredContactMethod\":\"mail\"}"
  }
}
  • Example response:
HTTP/1.1 200 OK
Content-Type: application/json

{
  "data": {
    "id": "18",
    "type": "education_benefits_claims",
    "attributes": {
      // the form that was submitted
      "form": "{\"preferredContactMethod\":\"mail\"}",
      // when it was first submitted
      "submittedAt": "2016-09-09T23:48:07.766Z",
      // when it was sent to the VA SFTP for processing
      "processedAt": null
    }
  }
}