Create a new asset transfer
POST/asset-transfers
Create a new asset transfer
Request
- application/json
Body
Current status of the transfer
Possible values: [PENDING
, CANCELLED
, SETTLED
]
Number of units being transferred
1.0
Expected number of units to transfer
1.0
Whether this is a hot wallet transfer
Possible values: <= 255 characters
Blockchain transaction hash
Possible values: <= 255 characters
Possible values: <= 10 characters
ID of the transfer method used
ID of the account being charged
ID of the asset being transferred
ID of the associated contribution
ID of the associated disbursement
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
Asset transfer created successfully
Bad Request - Invalid input data
- application/json
- Schema
- Example (from schema)
Schema
Error message
Detailed error description
Error code
{
"message": "Invalid input data",
"description": "The request data did not pass validation",
"code": "INVALID_INPUT"
}
Unauthorized - Invalid or missing authentication token
- application/json
- Schema
- Example (from schema)
Schema
Error message
Detailed error description
Error code
{
"message": "Unauthorized",
"description": "Invalid, expired or missing bearer token",
"code": "UNAUTHORIZED"
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
Error message
Detailed error description
Error code
{
"message": "Forbidden",
"description": "You don't have permission to access this resource",
"code": "FORBIDDEN"
}
Not Found - Resource not found
- application/json
- Schema
- Example (from schema)
Schema
Error message
Detailed error description
Error code
{
"message": "Resource not found",
"description": "The requested resource could not be found",
"code": "NOT_FOUND"
}
Conflict - Resource already exists or state conflict
- application/json
- Schema
- Example (from schema)
Schema
Error message
Detailed error description
Error code
{
"message": "Resource conflict",
"description": "The resource already exists or is in an invalid state",
"code": "CONFLICT"
}
Unprocessable Entity - Validation error
- application/json
- Schema
- Example (from schema)
Schema
Error message
Detailed error description
Error code
{
"message": "Validation error",
"description": "The request data failed validation rules",
"code": "VALIDATION_ERROR"
}