Outgoing Wires

Initiate Wire

This endpoint allows users with the appropriate entitlements initiate outgoing wires.

https://cubi-sandbox-api.customersbank.com/wires/v1/outgoing

This request requires the additional data to be included in the body of the request.

Body Parameter Data Element Details:

NameTypeDescription
amountdoubleamount of transaction
processDatedate-timedate transaction processed
originatorAccountNumberstring | nullaccount number from which wire is originated
receiverRoutingNumberstring | nullrouting number of the receiving bank
receiverNamestring | nullname of the receiving bank
intermediateIdCodestring | nullidentifier code of the intermediate financial institution
intermediateIdstring | nullidentifier of the intermediate financial institution
intermediateNamestring | nullname of the intermediate financial institution
intermediateAddress1string | nullfirst line of the intermediate financial institution's address
intermediateAddress2string | nullsecond line of the intermediate financial institution's address
intermediateAddress3string | nullthird line of the intermediate financial institution's address
beneficiaryFINamestring | nullname of the beneficiary's financial institution
beneficiaryFIAddress1string | nullfirst line of the beneficiary's financial institution
beneficiaryFIAddress2string | nullsecond line of the beneficiary's financial institution
beneficiaryFIAddress3string | nullthird line of the beneficiary's financial institution
beneficiaryFIIdCodestring | nullidentifier code of the beneficiary's financial institution
beneficiaryFIIdstring | nullidentifier of the beneficiary's financial institution
beneficiaryNamestring | nullname of the beneficiary
beneficiaryAddress1string | nullfirst line of the beneficiary's address
beneficiaryAddress2string | nullsecond line of the beneficiary's address
beneficiaryAddress3string | nullthird line of the beneficiary's address
beneficiaryIdCodestring | nullidentifier code of the beneficiary
beneficiaryIdstring | nullidentifier of the beneficiary
notesstring | nullnotes or memo for the transaction

Example Request:

POST //wires/v1/outgoing HTTP/1.1
Host: cubi-sandbox-api.customersbank.com
Content-Type: application/json
Authorization: Bearer ******
Content-Length: 939
{
  "amount": "",
  "processDate": "",
  "originatorAccountNumber": "1003860",
  "beneficiaryFIName": "Senger, Brown and Watsica",
  "beneficiaryFIAddress1": "825 Grant Station",
  "beneficiaryFIAddress2": "New Rozella",
  "beneficiaryFIAddress3": "USA",
  "beneficiaryFIIdCode": "F",
  "beneficiaryFIId": "011000015",
  "beneficiaryName": "Hattie Lubowitz",
  "beneficiaryAddress1": "8152 Americo Mountains",
  "beneficiaryAddress2": "Hintzshire",
  "beneficiaryAddress3": "USA",
  "receiverRoutingNumber": "011000015",
  "receiverName":"Lowe, Moen and Feest",
  "beneficiaryIdCode": "D",
  "beneficiaryId": "42866860",
  "notes": "bypassing Plastic",
   "intermediateIdCode": "F",
  "intermediateId": "113100570",
  "intermediateName": "Tremblay, Wintheiser and Jerde",
  "intermediateAddress1": "06576 Heathcote Plaza",
  "intermediateAddress2": "Paoloside",
  "intermediateAddress3": "CHINA"
}

A successful request will generate a response of 202 – Accepted.

Error Handling:
Common errors will include:
400 – Bad Request
422 – Unprocessable Content

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.


View All Wires

A user has the ability to view details for all outgoing wires within a specified date range. To view outgoing wire details, initiate a GET request directed to the following endpoint:

https://cubi-sandbox-api.customersbank.com/wires/v1/outgoing

This request requires the additional data to be included in the query of the request.

Query Parameter Data Element Details:

NameTypeDescription
inStatusarray of strings / /status of transfer. Can be any of the following: Initiated; Pending; Accepted; Completed; Cancelled; Rejected; Returned
fromDatedate-timestarting date
toDatedate-timeending date
paginateResultsbooleanindicates whether the request should be paginated
pageint32indicates the page to return
perPageint32indicates how many items are on a page
sortOnstringindicates the attribute by which the data is sorted
sortAscendingbooleanindicates if the data is sorted in ascending or descending order

Example Request:

GET //wires/v1/outgoing?paginateResults=true HTTP/1.1
Host: cubi-sandbox-api.customersbank.com
Content-Type: application/json
Authorization: Bearer *****
Content-Length: 147
{
  "inStatus": "pending",
  "fromDate": "",
  "todate": "",
  "paginateResults":"", 
  "page":"",
  "sortOn":"",
  "sortAscending": ""
}

A successful request will generate a response of 200 – Ok.

Example Response:

Response Data Element Details:

NameTypeDescription
pageSizeint32number of items displayed on a page
pageOffsetint32offset index indicating starting point for page items
totalPagesint32total number of pages
totalItemCountint32total count of items across all pages
itemsarray of objects | nullitems model
> idstringwire id
> amountdoubleamount of transaction
> processDatedate-timedate transaction is processed
> originatorAccountNumberstring | nullaccount number from which wire is originated
> originatorNamestring | nullname of the originator
> originatorAddress1string | nullfirst line of the originator's address
> originatorAddress2string | nullsecond line of the originator's address
> originatorAddress3string | nullthird line of the originator's address
> receiverRoutingNumberstring | nullrouting number of the receiving bank
> receiverNamestring | nullname of the receiving bank
> intermediateIdCodestring | nullidentifier code of the intermediate financial institution
> intermediateIdstring | nullidentifier of the intermediate financial institution
> intermediateNamestring | nullname of the intermediate financial institution
> intermediateAddress1string | nullfirst line of the intermediate institution's address
> intermediateAddress2string | nullsecond line of the intermediate institution's address
> intermediateAddress3string | nullthird line of the intermediate institution's address
> beneficiaryFINamestring | nullname of beneficiary's financial institution
> beneficiaryFIAddress1string | nullfirst line of the beneficiary's financial institution
> beneficiaryFIAddress2string | nullsecond line of the beneficiary's financial institution
> beneficiaryFIAddress3string | nullthird line of the beneficiary's financial institution
> beneficiaryIdCodestring | nullidentifier code of the beneficiary's financial institution
> beneficiaryIdstring | nullidentifier of the beneficiary's financial institution
> originatingUserstring | nulluser name that originated wire
> originatingUserIdstring | nulluser id that originated wire
> notesstring | nullnotes or memo for the transaction
> submittedAtdate-timedate and time transaction was submitted
> statusstringstatus of the transaction. Can be one of the following: Initiated; Pending; Accepted; Completed; Cancelled; Rejected; Returned
> cancelledReasonstring | nullreason transaction was cancelled
> partnerIdstringclient id
> partnerNamestring | nullclient name
> completedAtdate-timedate and time transaction was completed
> cancelledAtdate-timedate and time transaction was cancelled
> imadstring | nullsending bank trace number
> fedWireIdint64unique identifier assigned by the Fedwire system
> omadstring | nullreceiving bank trace number

Error Handling:
Common errors will include:
400 – Bad Request
422 – Unprocessable Content

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.


View a Specific Wire

Similar to the prior request, a user can obtain the same level of information for a specific wire if they know the WireId of that transaction. To get information for a specific wire, initiate a GET request directed to the following endpoint:

https://cubi-sandbox-api.customersbank.com/wires/v1/outgoing/{wireId}

This request requires the additional data to be included in the path of the request.

Path Parameter Data Element Details:

NameTypeDescription
wireIdstringwire id

Example Request:

GET //wires/v1/outgoing/ HTTP/1.1
Host: cubi-sandbox-api.customersbank.com
Content-Type: application/json
Authorization: Bearer *****

A successful request will generate a response of 200 – Ok.

Example Response:

Response Data Element Details:

NameTypeDescription
idstringwire id
amountdoubleamount of transaction
processDatedate-timedate transaction is processed
originatorAccountNumberstring | nullaccount number from which wire is originated
originatorNamestring | nullname of the originator
originatorAddress1string | nullfirst line of the originator's address
originatorAddress2string | nullsecond line of the originator's address
originatorAddress3string | nullthird line of the originator's address
receiverRoutingNumberstring | nullrouting number of the receiving bank
receiverNamestring | nullname of the receiving bank
intermediateIdCodestring | nullidentifier code of the intermediate financial institution
intermediateIdstring | nullidentifier of the intermediate financial institution
intermediateNamestring | nullname of the intermediate financial institution
intermediateAddress1string | nullfirst line of the intermediate institution's address
intermediateAddress2string | nullsecond line of the intermediate institution's address
intermediateAddress3string | nullthird line of the intermediate institution's address
beneficiaryFINamestring | nullname of beneficiary's financial institution
beneficiaryFIAddress1string | nullfirst line of the beneficiary's financial institution
beneficiaryFIAddress2string | nullsecond line of the beneficiary's financial institution
beneficiaryFIAddress3string | nullthird line of the beneficiary's financial institution
beneficiaryIdCodestring | nullidentifier code of the beneficiary's financial institution
beneficiaryIdstring | nullidentifier of the beneficiary's financial institution
originatingUserstring | nulluser name that originated wire
originatingUserIdstring | nulluser id that originated wire
notesstring | nullnotes or memo for the transaction
submittedAtdate-timedate and time transaction was submitted
statusstringstatus of the transaction. Can be one of the following: Initiated; Pending; Accepted; Completed; Cancelled; Rejected; Returned
cancelledReasonstring | nullreason transaction was cancelled
partnerIdstringclient id
partnerNamestring | nullclient name
completedAtdate-timedate and time transaction was completed
cancelledAtdate-timedate and time transaction was cancelled
imadstring | nullsending bank trace number
fedWireIdint64unique identifier assigned by the Fedwire system
omadstring | nullreceiving bank trace number

Error Handling:
Common errors will include:
400 – Bad Request
404 – Not Found
422 – Unprocessable Content

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.


Cancel Wire

In the event that a wire was initiated in error, a user may cancel the wire as long as it is still in a pending status. To cancel a wire, initiate a POST request directed to the following endpoint:

https://cubi-sandbox-api.customersbank.com/wires/v1/outgoing/{wireId}/cancel

This request requires the additional data to be included in the path and the body of the request.

Path Parameter Data Element Details:

NameTypeDescription
wireIdstringwire id

Body Parameter Data Element Details:

NameTypeDescription
reasonstringreason for declining transaction

Example Request:

POST //wires/v1/outgoing//cancel HTTP/1.1
Host: cubi-sandbox-api.customersbank.com
Authorization: Bearer *****

A successful request will generate a response of 202 – Accepted.

Error Handling:
Common errors will include:
400 – Bad Request
404 – Not Found
422 – Unprocessable Content

For guidance on troubleshooting error codes please consult the Error Code Handling section of this guide.