Update a funds transfer method
PATCHhttps://api.sandbox.magfi.net/v2/funds-transfer-methods/:funds-transfer-method-id
Update an existing funds transfer method
Request
Path Parameters
ID of the funds transfer method to update
- application/json
Bodyrequired
User-defined label for the transfer method
Name of contact associated with transfer method
Email of contact associated with transfer method
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
Funds transfer method updated successfully
- application/json
- Schema
- Example (auto)
Schema
ID of the associated account
Type of funds transfer (ACH, CREDIT_CARD, WIRE, WIRE_INTERNATIONAL, CHECK)
Possible values: [ACH
, CREDIT_CARD
, WIRE
, WIRE_INTERNATIONAL
, CHECK
]
Direction of the transfer (INCOMING or OUTGOING)
Possible values: [INCOMING
, OUTGOING
]
INCOMING
User-defined label for the transfer method
Whether the transfer method is inactive
false
Name of the bank
Name on the bank account
Type of bank account (CHECKING or SAVINGS)
Possible values: [CHECKING
, SAVINGS
]
Bank routing number
Last 4 digits of account number
SWIFT code for international transfers
International Bank Account Number
Name on credit card
Postal code associated with credit card
Type of credit card (VISA, MASTERCARD, AMEX, DISCOVER)
Possible values: [VISA
, MASTERCARD
, AMEX
, DISCOVER
]
Expiration date of credit card in MM/YY format
Bank Identification Number (first 6-8 digits of card)
Funding type of card (CREDIT, DEBIT, PREPAID, UNKNOWN)
Possible values: [CREDIT
, DEBIT
, PREPAID
, UNKNOWN
]
Name of check payee
Name of contact associated with transfer method
Email of contact associated with transfer method
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fundsTransferType": "ACH",
"transferDirection": "INCOMING",
"label": "string",
"inactive": false,
"bankName": "string",
"bankAccountName": "string",
"bankAccountType": "CHECKING",
"routingNumber": "string",
"last4": "string",
"swiftCode": "string",
"iban": "string",
"creditCardName": "string",
"creditCardPostalCode": "string",
"creditCardType": "VISA",
"creditCardExpirationDate": "string",
"creditCardBin": "string",
"creditCardFundingType": "CREDIT",
"checkPayee": "string",
"contactName": "string",
"contactEmail": "user@example.com",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
}
Bad Request - Invalid input data
- application/json
- Schema
- Example (auto)
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 (auto)
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 (auto)
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 (auto)
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 (auto)
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 (auto)
Schema
Error message
Detailed error description
Error code
{
"message": "Validation error",
"description": "The request data failed validation rules",
"code": "VALIDATION_ERROR"
}
- javascript
- python
- curl
- rust
- go
- java
- ruby
- FETCH
- JQUERY
- XHR
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Accept", "application/json");
const raw = JSON.stringify({
"label": "string",
"contactName": "string",
"contactEmail": "user@example.com"
});
const requestOptions = {
method: "PATCH",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://api.sandbox.magfi.net/v2/funds-transfer-methods/:funds-transfer-method-id", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));