Mark a pile as paid
POST/v1/piles/:pileId/mark-as-paid
Marks a specific pile as paid for an insurer.
Request
Path Parameters
pileId stringrequired
The ID of the pile to be marked as paid
- application/json
Body
metadata object
Metadata containing any additional information about the payment made
Responses
- 200
- 400
- 404
- 500
Pile marked as paid successfully
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "Pile marked as paid successfully."
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "Invalid request."
}
Pile not found
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "Pile not found."
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "An error occurred while marking the pile as paid."
}
Loading...