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, invalid request parameters
- */*
- Schema
- Example (from schema)
Schema
error string
Details about the error
extras
object
object
{
"error": "Invalid input",
"extras": {
"field_foo": "field_foo is required",
"field_bar": "field_bar needs to be an integer"
}
}
Unauthorized
- */*
- 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
- */*
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Forbidden"
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Disbursement Not Found
- */*
- application/json
- Schema
- Example (from schema)
Schema
error string
extras
object
status number
message string
{
"error": "string",
"extras": {
"status": 0,
"message": "string"
}
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Resource not found"
}
}
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Resource not found"
}
}
Loading...