Update a discharge voucher
PUT/v1/claims/:claim_id/discharge-voucher/:discharge_voucher_id
This endpoint allows you to update the status of a voucher
Request
Path Parameters
claim_id integerrequired
The unique identifier for the claim
discharge_voucher_id integerrequired
The unique identifier for a discharge voucher
- application/json
Body
The request body to be sent with this request
status stringrequired
Possible values: [rejected
, approved
]
Either approved or rejected. Used to update the status of a discharge voucher
comment string
The comment or reason for rejecting a voucher
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
Claim
id integer
The unique ID of the claim
status string
Current status of the claim
policy object
Policy
id integer
The unique ID of the policy
number string
The policy number
description string
The description of the policy
start_date date
The start date of the coverage
end_date date
The end date of the coverage
status string
Current status of the policy
amount_requested string
The amount requested when creating a claim
amount_approved string
The amount approved for the claim
currency string
The currency of the amount
created_at date
The date and time the claim was created
{
"data": {
"id": 8,
"status": "processing",
"policy": {
"id": 8,
"number": "PH-34243TF",
"description": "Lorem ipsum...",
"start_date": "2022-03-24",
"end_date": "2023-03-24",
"status": "active"
},
"amount_requested": "239832.00",
"amount_approved": "100000.00",
"currency": "EUR",
"created_at": "2022-03-12T14:19:50.000000Z"
}
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "400 Bad Request (Client Error)"
}
Loading...