Download Disbursement Instructions
GET/disbursements/:id/instructions
Allows an SDP user to download the raw CSV file that was uploaded when creating the disbursement. This will only return results after instructions have been attached to a draft disbursement.
Request
Path Parameters
id stringrequired
ID of the Disbursement
Responses
- 200
- 400
- 401
- 403
- 404
Disbursement CSV file
Response Headers
Content-Disposition
string
The filename of the returned CSV file.
Content-Type
string
text/csv
- text/csv
- Schema
Schema
any
Bad Request
- text/csv
- application/json
- Schema
- Example (from schema)
Schema
error string
extras
object
foo string
message string
{
"error": "Invalid request",
"extras": {
"foo": "bar",
"message": "Invalid request parameters"
}
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Invalid request",
"extras": {
"foo": "bar",
"message": "Invalid request parameters"
}
}
{
"error": "Invalid request",
"extras": {
"foo": "bar",
"message": "Invalid request parameters"
}
}
Unauthorized
- text/csv
- application/json
- Schema
- Example (from schema)
Schema
error string
extras
object
status number
message string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
- text/csv
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Forbidden"
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Not Found
- text/csv
- application/json
- Schema
- Example (from schema)
Schema
error string
extras
object
status number
message string
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Disbursement not found"
}
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Disbursement not found"
}
}
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Disbursement not found"
}
}
Loading...