Update Wallet
PATCH/wallets/:id
This endpoint is used to enable or disable a wallet provider. Note: the organization should coordinate with the wallet provider before selecting a particular wallet provider for a disbursement.
Request
Path Parameters
id stringrequired
ID of the wallet to update
- application/json
Body
required
Wallet to be updated
enabled booleanrequired
The enabled status of the wallet
Responses
- 200
- 400
- 404
Wallet updated successfully
- */*
- Schema
- Example (from schema)
Schema
message stringrequired
{
"message": "string"
}
Bad request, usually caused by the enabled
field missing from the request body.
- */*
- 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"
}
}
Wallet 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...