Reading Transfers and Transfer events
API reference for Transfer read and Transfer event endpoints and webhooks
Reading Transfers | |
---|---|
/transfer/get | Retrieve information about a transfer |
/transfer/list | Retrieve a list of transfers and their statuses |
/transfer/event/list | Retrieve a list of transfer events |
/transfer/event/sync | Sync transfer events |
/transfer/sweep/get | Retrieve information about a sweep |
/transfer/sweep/list | Retrieve a list of sweeps |
Webhooks | |
---|---|
TRANSFER_EVENTS_UPDATE | New transfer events available |
Endpoints
/transfer/get
Retrieve a transfer
The /transfer/get
endpoint fetches information about the transfer corresponding to the given transfer_id
or authorization_id
. One of transfer_id
or authorization_id
must be populated but not both.
client_id
client_id
. The client_id
is required and may be provided either in the PLAID-CLIENT-ID
header or as part of a request body.secret
secret
. The secret
is required and may be provided either in the PLAID-SECRET
header or as part of a request body.transfer_id
authorization_id
1const request: TransferGetRequest = {2 transfer_id: '460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9',3};4try {5 const response = await plaidClient.transferGet(request);6 const transfer = response.data.transfer;7} catch (error) {8 // handle error9}
Response fields and example
transfer
id
authorization_id
ach_class
Codes supported for credits:
ccd
, ppd
Codes supported for debits: ccd
, tel
, web
"ccd"
- Corporate Credit or Debit - fund transfer between two corporate bank accounts"ppd"
- Prearranged Payment or Deposit - the transfer is part of a pre-existing relationship with a consumer, e.g. bill payment"tel"
- Telephone-Initiated Entry"web"
- Internet-Initiated Entry - debits from a consumer’s account where their authorization is obtained over the Internetccd
, ppd
, tel
, web
account_id
account_id
corresponding to the end-user account that will be debited or credited.funding_account_id
ledger_id
type
debit
or credit
. A debit
indicates a transfer of money into the origination account; a credit
indicates a transfer of money out of the origination account.debit
, credit
user
legal_name
phone_number
email_address
address
street
city
region
postal_code
country
amount
/transfer/authorization/create
, specify the maximum amount to authorize. When calling /transfer/create
, specify the exact amount of the transfer, up to a maximum of the amount authorized. If this field is left blank when calling /transfer/create
, the maximum amount authorized in the authorization_id
will be sent.description
created
2006-01-02T15:04:05Z
date-time
status
pending
: A new transfer was created; it is in the pending state.
posted
: The transfer has been successfully submitted to the payment network.
settled
: Credits are available to be withdrawn or debits have been deducted from the Plaid linked account.
funds_available
: Funds from the transfer have been released from hold and applied to the ledger's available balance. (Only applicable to ACH debits.)
cancelled
: The transfer was cancelled by the client.
failed
: The transfer failed, no funds were moved.
returned
: A posted transfer was returned.pending
, posted
, settled
, funds_available
, cancelled
, failed
, returned
sweep_status
unswept
: The transfer hasn't been swept yet.
swept
: The transfer was swept to the sweep account.
swept_settled
: Credits are available to be withdrawn or debits have been deducted from the customer’s business checking account.
return_swept
: The transfer was returned, funds were pulled back or pushed back to the sweep account.
null
: The transfer will never be swept (e.g. if the transfer is cancelled or returned before being swept)null
, unswept
, swept
, swept_settled
, return_swept
network
For transfers submitted as
ach
, the next-day cutoff is 8:30 PM Eastern Time.For transfers submitted as
same-day-ach
, the same-day cutoff is 3:30 PM Eastern Time. If the transfer is submitted after this cutoff but before the next-day cutoff, it will be sent over next-day rails and will not incur same-day charges; this will apply to both legs of the transfer if applicable.For transfers submitted as
rtp
, Plaid will automatically route between Real Time Payment rail by TCH or FedNow rails as necessary. If a transfer is submitted as rtp
and the counterparty account is not eligible for RTP, the /transfer/authorization/create
request will fail with an INVALID_FIELD
error code. To pre-check to determine whether a counterparty account can support RTP, call /transfer/capabilities/get
before calling /transfer/authorization/create
.Wire transfers are currently in early availability. To request access to
wire
as a payment network, contact your Account Manager. For transfers submitted as wire
, the type
must be credit
; wire debits are not supported.ach
, same-day-ach
, rtp
, wire
wire_details
message_to_beneficiary
cancellable
true
, you can still cancel this transfer.failure_reason
"failed"
or "returned"
. Null value otherwise.ach_return_code
R01
. A return code will be provided if and only if the transfer status is returned
. For a full listing of ACH return codes, see Transfer errors.description
metadata
iso_currency_code
standard_return_window
date
unauthorized_return _window
date
expected_settlement _date
null
for non-ACH transfers. This will be of the form YYYY-MM-DD.date
originator_client_id
refunds
id
transfer_id
amount
status
pending
: A new refund was created; it is in the pending state.
posted
: The refund has been successfully submitted to the payment network.
settled
: Credits have been refunded to the Plaid linked account.
cancelled
: The refund was cancelled by the client.
failed
: The refund has failed.
returned
: The refund was returned.pending
, posted
, cancelled
, failed
, settled
, returned
failure_reason
"failed"
or "returned"
. Null value otherwise.ach_return_code
R01
. A return code will be provided if and only if the refund status is returned
. For a full listing of ACH return codes, see Transfer errors.description
ledger_id
created
2006-01-02T15:04:05Z
date-time
network_trace_id
For
ach
or same-day-ach
transfers, this is the ACH trace number.
For rtp
transfers, this is the Transaction Identification number.
For wire
transfers, this is the IMAD (Input Message Accountability Data) number.recurring_transfer_id
expected_sweep _settlement_schedule
returned
. Only applies to ACH debit transfers.sweep_settlement_date
date
swept_settled_amount
sweep_settlement_date
.credit_funds_source
Specifies the source of funds for the transfer. Only valid for
credit
transfers, and defaults to sweep
if not specified. This field is not specified for debit
transfers.sweep
- Sweep funds from your funding account
prefunded_rtp_credits
- Use your prefunded RTP credit balance with Plaid
prefunded_ach_credits
- Use your prefunded ACH credit balance with Plaidsweep
, prefunded_rtp_credits
, prefunded_ach_credits
, null
facilitator_fee
transfer.amount
and distribute to the platform’s Ledger balance as a facilitator fee (decimal string with two digits of precision e.g. "10.00"). The remainder will go to the end-customer’s Ledger balance. This must be less than or equal to the transfer.amount
.network_trace_id
For
ach
or same-day-ach
transfers, this is the ACH trace number.
For rtp
transfers, this is the Transaction Identification number.
For wire
transfers, this is the IMAD (Input Message Accountability Data) number.request_id
1{2 "transfer": {3 "account_id": "3gE5gnRzNyfXpBK5wEEKcymJ5albGVUqg77gr",4 "funding_account_id": "8945fedc-e703-463d-86b1-dc0607b55460",5 "ledger_id": "563db5f8-4c95-4e17-8c3e-cb988fb9cf1a",6 "ach_class": "ppd",7 "amount": "12.34",8 "cancellable": true,9 "created": "2020-08-06T17:27:15Z",10 "description": "Desc",11 "guarantee_decision": null,12 "guarantee_decision_rationale": null,13 "failure_reason": {14 "ach_return_code": "R13",15 "description": "Invalid ACH routing number"16 },17 "id": "460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9",18 "authorization_id": "c9f90aa1-2949-c799-e2b6-ea05c89bb586",19 "metadata": {20 "key1": "value1",21 "key2": "value2"22 },23 "network": "ach",24 "origination_account_id": "",25 "originator_client_id": null,26 "refunds": [],27 "status": "pending",28 "type": "credit",29 "iso_currency_code": "USD",30 "standard_return_window": "2020-08-07",31 "unauthorized_return_window": "2020-10-07",32 "expected_settlement_date": "2020-08-04",33 "user": {34 "email_address": "acharleston@email.com",35 "legal_name": "Anne Charleston",36 "phone_number": "510-555-0128",37 "address": {38 "street": "123 Main St.",39 "city": "San Francisco",40 "region": "CA",41 "postal_code": "94053",42 "country": "US"43 }44 },45 "recurring_transfer_id": null,46 "credit_funds_source": "sweep",47 "facilitator_fee": "1.23",48 "network_trace_id": null49 },50 "request_id": "saKrIBuEB9qJZno"51}
Was this helpful?
/transfer/list
List transfers
Use the /transfer/list
endpoint to see a list of all your transfers and their statuses. Results are paginated; use the count
and offset
query parameters to retrieve the desired transfers.
client_id
client_id
. The client_id
is required and may be provided either in the PLAID-CLIENT-ID
header or as part of a request body.secret
secret
. The secret
is required and may be provided either in the PLAID-SECRET
header or as part of a request body.start_date
2019-12-06T22:35:49Z
)date-time
end_date
2019-12-06T22:35:49Z
)date-time
count
1
25
25
offset
0
0
originator_client_id
funding_account_id
funding_account_id
.1const request: TransferListRequest = {2 start_date: '2019-12-06T22:35:49Z',3 end_date: '2019-12-12T22:35:49Z',4 count: 14,5 offset: 2,6 origination_account_id: '8945fedc-e703-463d-86b1-dc0607b55460',7};8try {9 const response = await plaidClient.transferList(request);10 const transfers = response.data.transfers;11 for (const transfer of transfers) {12 // iterate through transfers13 }14} catch (error) {15 // handle error16}
Response fields and example
transfers
id
authorization_id
ach_class
Codes supported for credits:
ccd
, ppd
Codes supported for debits: ccd
, tel
, web
"ccd"
- Corporate Credit or Debit - fund transfer between two corporate bank accounts"ppd"
- Prearranged Payment or Deposit - the transfer is part of a pre-existing relationship with a consumer, e.g. bill payment"tel"
- Telephone-Initiated Entry"web"
- Internet-Initiated Entry - debits from a consumer’s account where their authorization is obtained over the Internetccd
, ppd
, tel
, web
account_id
account_id
corresponding to the end-user account that will be debited or credited.funding_account_id
ledger_id
type
debit
or credit
. A debit
indicates a transfer of money into the origination account; a credit
indicates a transfer of money out of the origination account.debit
, credit
user
legal_name
phone_number
email_address
address
street
city
region
postal_code
country
amount
/transfer/authorization/create
, specify the maximum amount to authorize. When calling /transfer/create
, specify the exact amount of the transfer, up to a maximum of the amount authorized. If this field is left blank when calling /transfer/create
, the maximum amount authorized in the authorization_id
will be sent.description
created
2006-01-02T15:04:05Z
date-time
status
pending
: A new transfer was created; it is in the pending state.
posted
: The transfer has been successfully submitted to the payment network.
settled
: Credits are available to be withdrawn or debits have been deducted from the Plaid linked account.
funds_available
: Funds from the transfer have been released from hold and applied to the ledger's available balance. (Only applicable to ACH debits.)
cancelled
: The transfer was cancelled by the client.
failed
: The transfer failed, no funds were moved.
returned
: A posted transfer was returned.pending
, posted
, settled
, funds_available
, cancelled
, failed
, returned
sweep_status
unswept
: The transfer hasn't been swept yet.
swept
: The transfer was swept to the sweep account.
swept_settled
: Credits are available to be withdrawn or debits have been deducted from the customer’s business checking account.
return_swept
: The transfer was returned, funds were pulled back or pushed back to the sweep account.
null
: The transfer will never be swept (e.g. if the transfer is cancelled or returned before being swept)null
, unswept
, swept
, swept_settled
, return_swept
network
For transfers submitted as
ach
, the next-day cutoff is 8:30 PM Eastern Time.For transfers submitted as
same-day-ach
, the same-day cutoff is 3:30 PM Eastern Time. If the transfer is submitted after this cutoff but before the next-day cutoff, it will be sent over next-day rails and will not incur same-day charges; this will apply to both legs of the transfer if applicable.For transfers submitted as
rtp
, Plaid will automatically route between Real Time Payment rail by TCH or FedNow rails as necessary. If a transfer is submitted as rtp
and the counterparty account is not eligible for RTP, the /transfer/authorization/create
request will fail with an INVALID_FIELD
error code. To pre-check to determine whether a counterparty account can support RTP, call /transfer/capabilities/get
before calling /transfer/authorization/create
.Wire transfers are currently in early availability. To request access to
wire
as a payment network, contact your Account Manager. For transfers submitted as wire
, the type
must be credit
; wire debits are not supported.ach
, same-day-ach
, rtp
, wire
wire_details
message_to_beneficiary
cancellable
true
, you can still cancel this transfer.failure_reason
"failed"
or "returned"
. Null value otherwise.ach_return_code
R01
. A return code will be provided if and only if the transfer status is returned
. For a full listing of ACH return codes, see Transfer errors.description
metadata
iso_currency_code
standard_return_window
date
unauthorized_return _window
date
expected_settlement _date
null
for non-ACH transfers. This will be of the form YYYY-MM-DD.date
originator_client_id
refunds
id
transfer_id
amount
status
pending
: A new refund was created; it is in the pending state.
posted
: The refund has been successfully submitted to the payment network.
settled
: Credits have been refunded to the Plaid linked account.
cancelled
: The refund was cancelled by the client.
failed
: The refund has failed.
returned
: The refund was returned.pending
, posted
, cancelled
, failed
, settled
, returned
failure_reason
"failed"
or "returned"
. Null value otherwise.ach_return_code
R01
. A return code will be provided if and only if the refund status is returned
. For a full listing of ACH return codes, see Transfer errors.description
ledger_id
created
2006-01-02T15:04:05Z
date-time
network_trace_id
For
ach
or same-day-ach
transfers, this is the ACH trace number.
For rtp
transfers, this is the Transaction Identification number.
For wire
transfers, this is the IMAD (Input Message Accountability Data) number.recurring_transfer_id
expected_sweep _settlement_schedule
returned
. Only applies to ACH debit transfers.sweep_settlement_date
date
swept_settled_amount
sweep_settlement_date
.credit_funds_source
Specifies the source of funds for the transfer. Only valid for
credit
transfers, and defaults to sweep
if not specified. This field is not specified for debit
transfers.sweep
- Sweep funds from your funding account
prefunded_rtp_credits
- Use your prefunded RTP credit balance with Plaid
prefunded_ach_credits
- Use your prefunded ACH credit balance with Plaidsweep
, prefunded_rtp_credits
, prefunded_ach_credits
, null
facilitator_fee
transfer.amount
and distribute to the platform’s Ledger balance as a facilitator fee (decimal string with two digits of precision e.g. "10.00"). The remainder will go to the end-customer’s Ledger balance. This must be less than or equal to the transfer.amount
.network_trace_id
For
ach
or same-day-ach
transfers, this is the ACH trace number.
For rtp
transfers, this is the Transaction Identification number.
For wire
transfers, this is the IMAD (Input Message Accountability Data) number.request_id
1{2 "transfers": [3 {4 "account_id": "3gE5gnRzNyfXpBK5wEEKcymJ5albGVUqg77gr",5 "funding_account_id": "8945fedc-e703-463d-86b1-dc0607b55460",6 "ledger_id": "563db5f8-4c95-4e17-8c3e-cb988fb9cf1a",7 "ach_class": "ppd",8 "amount": "12.34",9 "cancellable": true,10 "created": "2019-12-09T17:27:15Z",11 "description": "Desc",12 "guarantee_decision": null,13 "guarantee_decision_rationale": null,14 "failure_reason": {15 "ach_return_code": "R13",16 "description": "Invalid ACH routing number"17 },18 "id": "460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9",19 "authorization_id": "c9f90aa1-2949-c799-e2b6-ea05c89bb586",20 "metadata": {21 "key1": "value1",22 "key2": "value2"23 },24 "network": "ach",25 "origination_account_id": "",26 "originator_client_id": null,27 "refunds": [],28 "status": "pending",29 "type": "credit",30 "iso_currency_code": "USD",31 "standard_return_window": "2020-08-07",32 "unauthorized_return_window": "2020-10-07",33 "expected_settlement_date": "2020-08-04",34 "user": {35 "email_address": "acharleston@email.com",36 "legal_name": "Anne Charleston",37 "phone_number": "510-555-0128",38 "address": {39 "street": "123 Main St.",40 "city": "San Francisco",41 "region": "CA",42 "postal_code": "94053",43 "country": "US"44 }45 },46 "recurring_transfer_id": null,47 "credit_funds_source": "sweep",48 "facilitator_fee": "1.23",49 "network_trace_id": null50 }51 ],52 "request_id": "saKrIBuEB9qJZno"53}
Was this helpful?
/transfer/event/list
List transfer events
Use the /transfer/event/list
endpoint to get a list of transfer events based on specified filter criteria.
client_id
client_id
. The client_id
is required and may be provided either in the PLAID-CLIENT-ID
header or as part of a request body.secret
secret
. The secret
is required and may be provided either in the PLAID-SECRET
header or as part of a request body.start_date
2019-12-06T22:35:49Z
)date-time
end_date
2019-12-06T22:35:49Z
)date-time
transfer_id
account_id
transfer_type
debit
or credit
. A debit
indicates a transfer of money into your origination account; a credit
indicates a transfer of money out of your origination account.debit
, credit
, null
event_types
pending
, cancelled
, failed
, posted
, settled
, funds_available
, returned
, swept
, swept_settled
, return_swept
, sweep.pending
, sweep.posted
, sweep.settled
, sweep.returned
, sweep.failed
, refund.pending
, refund.cancelled
, refund.failed
, refund.posted
, refund.settled
, refund.returned
, refund.swept
, refund.return_swept
sweep_id
count
count
, the most recent events will be returned.25
25
1
offset
count
=25 and offset
=0, the first 25 events will be returned. When count
=25 and offset
=25, the next 25 events will be returned.0
0
originator_client_id
funding_account_id
funding_account_id
.1const request: TransferEventListRequest = {2 start_date: '2019-12-06T22:35:49Z',3 end_date: '2019-12-12T22:35:49Z',4 transfer_id: '460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9',5 account_id: '3gE5gnRzNyfXpBK5wEEKcymJ5albGVUqg77gr',6 transfer_type: 'credit',7 event_types: ['pending', 'posted'],8 count: 14,9 offset: 2,10 origination_account_id: '8945fedc-e703-463d-86b1-dc0607b55460',11};12try {13 const response = await plaidClient.transferEventList(request);14 const events = response.data.transfer_events;15 for (const event of events) {16 // iterate through events17 }18} catch (error) {19 // handle error20}
Response fields and example
transfer_events
event_id
0
timestamp
2006-01-02T15:04:05Z
.date-time
event_type
sweep
represents events for Plaid Ledger sweeps.pending
: A new transfer was created; it is in the pending state.cancelled
: The transfer was cancelled by the client.failed
: The transfer failed, no funds were moved.posted
: The transfer has been successfully submitted to the payment network.settled
: Credits are available to be withdrawn or debits have been deducted from the Plaid linked account.funds_available
: Funds from the transfer have been released from hold and applied to the ledger's available balance. (Only applicable to ACH debits.)returned
: A posted transfer was returned.swept
: The transfer was swept to / from the sweep account.swept_settled
: Credits are available to be withdrawn or debits have been deducted from the customer’s business checking account.return_swept
: Due to the transfer being returned, funds were pulled from or pushed back to the sweep account.sweep.pending
: A new ledger sweep was created; it is in the pending state.sweep.posted
: The ledger sweep has been successfully submitted to the payment network.sweep.settled
: The transaction has settled in the funding account. This means that funds withdrawn from Plaid Ledger balance have reached the funding account, or funds to be deposited into the Plaid Ledger Balance have been pulled, and the hold period has begun.sweep.returned
: A posted ledger sweep was returned.sweep.failed
: The ledger sweep failed, no funds were moved.refund.pending
: A new refund was created; it is in the pending state.refund.cancelled
: The refund was cancelled.refund.failed
: The refund failed, no funds were moved.refund.posted
: The refund has been successfully submitted to the payment network.refund.settled
: The refund transaction has settled in the Plaid linked account.refund.returned
: A posted refund was returned.refund.swept
: The refund was swept from the sweep account.refund.return_swept
: Due to the refund being returned, funds were pushed back to the sweep account.pending
, cancelled
, failed
, posted
, settled
, funds_available
, returned
, swept
, swept_settled
, return_swept
, sweep.pending
, sweep.posted
, sweep.settled
, sweep.returned
, sweep.failed
, refund.pending
, refund.cancelled
, refund.failed
, refund.posted
, refund.settled
, refund.returned
, refund.swept
, refund.return_swept
account_id
funding_account_id
ledger_id
transfer_id
null
for Plaid Ledger Sweep events.transfer_type
debit
or credit
. A debit
indicates a transfer of money into the origination account; a credit
indicates a transfer of money out of the origination account. This field is omitted for Plaid Ledger Sweep events.debit
, credit
transfer_amount
failure_reason
"failed"
or "returned"
. Null value otherwise.ach_return_code
R01
. A return code will be provided if and only if the transfer status is returned
. For a full listing of ACH return codes, see Transfer errors.description
sweep_id
sweep_amount
swept
or return_swept
for this transfer (decimal string with two digits of precision e.g. "-5.50").refund_id
originator_client_id
has_more
request_id
1{2 "transfer_events": [3 {4 "account_id": "3gE5gnRzNyfXpBK5wEEKcymJ5albGVUqg77gr",5 "funding_account_id": "8945fedc-e703-463d-86b1-dc0607b55460",6 "ledger_id": "563db5f8-4c95-4e17-8c3e-cb988fb9cf1a",7 "transfer_amount": "12.34",8 "transfer_id": "460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9",9 "transfer_type": "credit",10 "event_id": 1,11 "event_type": "posted",12 "failure_reason": null,13 "origination_account_id": "",14 "originator_client_id": "569ed2f36b3a3a021713abc1",15 "refund_id": null,16 "sweep_amount": null,17 "sweep_id": null,18 "timestamp": "2019-12-09T17:27:15Z"19 }20 ],21 "has_more": true,22 "request_id": "mdqfuVxeoza6mhu"23}
Was this helpful?
/transfer/event/sync
Sync transfer events
/transfer/event/sync
allows you to request up to the next 25 transfer events that happened after a specific event_id
. Use the /transfer/event/sync
endpoint to guarantee you have seen all transfer events.
client_id
client_id
. The client_id
is required and may be provided either in the PLAID-CLIENT-ID
header or as part of a request body.secret
secret
. The secret
is required and may be provided either in the PLAID-SECRET
header or as part of a request body.after_id
event_id
fetched via the sync endpoint, or 0 initially.0
count
25
1
25
1const request: TransferEventListRequest = {2 after_id: 4,3 count: 22,4};5try {6 const response = await plaidClient.transferEventSync(request);7 const events = response.data.transfer_events;8 for (const event of events) {9 // iterate through events10 }11} catch (error) {12 // handle error13}
Response fields and example
transfer_events
event_id
0
timestamp
2006-01-02T15:04:05Z
.date-time
event_type
sweep
represents events for Plaid Ledger sweeps.pending
: A new transfer was created; it is in the pending state.cancelled
: The transfer was cancelled by the client.failed
: The transfer failed, no funds were moved.posted
: The transfer has been successfully submitted to the payment network.settled
: Credits are available to be withdrawn or debits have been deducted from the Plaid linked account.funds_available
: Funds from the transfer have been released from hold and applied to the ledger's available balance. (Only applicable to ACH debits.)returned
: A posted transfer was returned.swept
: The transfer was swept to / from the sweep account.swept_settled
: Credits are available to be withdrawn or debits have been deducted from the customer’s business checking account.return_swept
: Due to the transfer being returned, funds were pulled from or pushed back to the sweep account.sweep.pending
: A new ledger sweep was created; it is in the pending state.sweep.posted
: The ledger sweep has been successfully submitted to the payment network.sweep.settled
: The transaction has settled in the funding account. This means that funds withdrawn from Plaid Ledger balance have reached the funding account, or funds to be deposited into the Plaid Ledger Balance have been pulled, and the hold period has begun.sweep.returned
: A posted ledger sweep was returned.sweep.failed
: The ledger sweep failed, no funds were moved.refund.pending
: A new refund was created; it is in the pending state.refund.cancelled
: The refund was cancelled.refund.failed
: The refund failed, no funds were moved.refund.posted
: The refund has been successfully submitted to the payment network.refund.settled
: The refund transaction has settled in the Plaid linked account.refund.returned
: A posted refund was returned.refund.swept
: The refund was swept from the sweep account.refund.return_swept
: Due to the refund being returned, funds were pushed back to the sweep account.pending
, cancelled
, failed
, posted
, settled
, funds_available
, returned
, swept
, swept_settled
, return_swept
, sweep.pending
, sweep.posted
, sweep.settled
, sweep.returned
, sweep.failed
, refund.pending
, refund.cancelled
, refund.failed
, refund.posted
, refund.settled
, refund.returned
, refund.swept
, refund.return_swept
account_id
funding_account_id
ledger_id
transfer_id
null
for Plaid Ledger Sweep events.transfer_type
debit
or credit
. A debit
indicates a transfer of money into the origination account; a credit
indicates a transfer of money out of the origination account. This field is omitted for Plaid Ledger Sweep events.debit
, credit
transfer_amount
failure_reason
"failed"
or "returned"
. Null value otherwise.ach_return_code
R01
. A return code will be provided if and only if the transfer status is returned
. For a full listing of ACH return codes, see Transfer errors.description
sweep_id
sweep_amount
swept
or return_swept
for this transfer (decimal string with two digits of precision e.g. "-5.50").refund_id
originator_client_id
has_more
request_id
1{2 "transfer_events": [3 {4 "account_id": "3gE5gnRzNyfXpBK5wEEKcymJ5albGVUqg77gr",5 "funding_account_id": "8945fedc-e703-463d-86b1-dc0607b55460",6 "ledger_id": "563db5f8-4c95-4e17-8c3e-cb988fb9cf1a",7 "transfer_amount": "12.34",8 "transfer_id": "460cbe92-2dcc-8eae-5ad6-b37d0ec90fd9",9 "transfer_type": "credit",10 "event_id": 1,11 "event_type": "pending",12 "failure_reason": null,13 "origination_account_id": "",14 "originator_client_id": null,15 "refund_id": null,16 "sweep_amount": null,17 "sweep_id": null,18 "timestamp": "2019-12-09T17:27:15Z"19 }20 ],21 "has_more": true,22 "request_id": "mdqfuVxeoza6mhu"23}
Was this helpful?
/transfer/sweep/get
Retrieve a sweep
The /transfer/sweep/get
endpoint fetches a sweep corresponding to the given sweep_id
.
client_id
client_id
. The client_id
is required and may be provided either in the PLAID-CLIENT-ID
header or as part of a request body.secret
secret
. The secret
is required and may be provided either in the PLAID-SECRET
header or as part of a request body.sweep_id
1const request: TransferSweepGetRequest = {2 sweep_id: '8c2fda9a-aa2f-4735-a00f-f4e0d2d2faee',3};4try {5 const response = await plaidClient.transferSweepGet(request);6 const sweep = response.data.sweep;7} catch (error) {8 // handle error9}
Response fields and example
sweep
A sweep is associated with many sweep events (events of type
swept
or return_swept
) which can be retrieved by invoking the /transfer/event/list
endpoint with the corresponding sweep_id
.swept
events occur when the transfer amount is credited or debited from your sweep account, depending on the type
of the transfer. return_swept
events occur when a transfer is returned and Plaid undoes the credit or debit.The total sum of the
swept
and return_swept
events is equal to the amount
of the sweep Plaid creates and matches the amount of the entry on your sweep account ledger.id
funding_account_id
ledger_id
created
date-time
amount
If amount is not present, the sweep was net-settled to zero and outstanding debits and credits between the sweep account and Plaid are balanced.
iso_currency_code
settled
date
status
"pending"
- The sweep is currently pending
"posted"
- The sweep has been posted
"settled"
- The sweep has settled
"returned"
- The sweep has been returned
"failed"
- The sweep has failedpending
, posted
, settled
, returned
, failed
, null
trigger
"manual"
- The sweep is created manually by the customer
"incoming"
- The sweep is created by incoming funds flow (e.g. Incoming Wire)
"balance_threshold"
- The sweep is created by balance threshold setting
"automatic_aggregate"
- The sweep is created by the Plaid automatic aggregation process. These funds did not pass through the Plaid Ledger balance.manual
, incoming
, balance_threshold
, automatic_aggregate
description
network_trace_id
For
ach
or same-day-ach
transfers, this is the ACH trace number.
For rtp
transfers, this is the Transaction Identification number.
For wire
transfers, this is the IMAD (Input Message Accountability Data) number.request_id
1{2 "sweep": {3 "id": "8c2fda9a-aa2f-4735-a00f-f4e0d2d2faee",4 "funding_account_id": "8945fedc-e703-463d-86b1-dc0607b55460",5 "ledger_id": "563db5f8-4c95-4e17-8c3e-cb988fb9cf1a",6 "created": "2020-08-06T17:27:15Z",7 "amount": "12.34",8 "iso_currency_code": "USD",9 "settled": "2020-08-07",10 "status": "settled",11 "network_trace_id": "123456789012345"12 },13 "request_id": "saKrIBuEB9qJZno"14}
Was this helpful?
/transfer/sweep/list
List sweeps
The /transfer/sweep/list
endpoint fetches sweeps matching the given filters.
client_id
client_id
. The client_id
is required and may be provided either in the PLAID-CLIENT-ID
header or as part of a request body.secret
secret
. The secret
is required and may be provided either in the PLAID-SECRET
header or as part of a request body.start_date
date-time
end_date
date-time
count
1
25
25
offset
0
0
amount
status
"pending"
- The sweep is currently pending
"posted"
- The sweep has been posted
"settled"
- The sweep has settled
"returned"
- The sweep has been returned
"failed"
- The sweep has failedpending
, posted
, settled
, returned
, failed
, null
originator_client_id
funding_account_id
funding_account_id
.transfer_id
transfer_id
.trigger
"manual"
- The sweep is created manually by the customer
"incoming"
- The sweep is created by incoming funds flow (e.g. Incoming Wire)
"balance_threshold"
- The sweep is created by balance threshold setting
"automatic_aggregate"
- The sweep is created by the Plaid automatic aggregation process. These funds did not pass through the Plaid Ledger balance.manual
, incoming
, balance_threshold
, automatic_aggregate
1const request: TransferSweepListRequest = {2 start_date: '2019-12-06T22:35:49Z',3 end_date: '2019-12-12T22:35:49Z',4 count: 14,5 offset: 2,6};7try {8 const response = await plaidClient.transferSweepList(request);9 const sweeps = response.data.sweeps;10 for (const sweep of sweeps) {11 // iterate through sweeps12 }13} catch (error) {14 // handle error15}
Response fields and example
sweeps
id
funding_account_id
ledger_id
created
date-time
amount
If amount is not present, the sweep was net-settled to zero and outstanding debits and credits between the sweep account and Plaid are balanced.
iso_currency_code
settled
date
status
"pending"
- The sweep is currently pending
"posted"
- The sweep has been posted
"settled"
- The sweep has settled
"returned"
- The sweep has been returned
"failed"
- The sweep has failedpending
, posted
, settled
, returned
, failed
, null
trigger
"manual"
- The sweep is created manually by the customer
"incoming"
- The sweep is created by incoming funds flow (e.g. Incoming Wire)
"balance_threshold"
- The sweep is created by balance threshold setting
"automatic_aggregate"
- The sweep is created by the Plaid automatic aggregation process. These funds did not pass through the Plaid Ledger balance.manual
, incoming
, balance_threshold
, automatic_aggregate
description
network_trace_id
For
ach
or same-day-ach
transfers, this is the ACH trace number.
For rtp
transfers, this is the Transaction Identification number.
For wire
transfers, this is the IMAD (Input Message Accountability Data) number.request_id
1{2 "sweeps": [3 {4 "id": "d5394a4d-0b04-4a02-9f4a-7ca5c0f52f9d",5 "funding_account_id": "8945fedc-e703-463d-86b1-dc0607b55460",6 "ledger_id": "563db5f8-4c95-4e17-8c3e-cb988fb9cf1a",7 "created": "2019-12-09T17:27:15Z",8 "amount": "-12.34",9 "iso_currency_code": "USD",10 "settled": "2019-12-10",11 "status": "settled",12 "originator_client_id": null13 }14 ],15 "request_id": "saKrIBuEB9qJZno"16}
Was this helpful?
Webhooks
TRANSFER_EVENTS_UPDATE
Fired when new transfer events are available. Receiving this webhook indicates you should fetch the new events from /transfer/event/sync
. If multiple transfer events occur within a single minute, only one webhook will be fired, so a single webhook instance may correspond to multiple transfer events.
webhook_type
TRANSFER
webhook_code
TRANSFER_EVENTS_UPDATE
environment
sandbox
, production
1{2 "webhook_type": "TRANSFER",3 "webhook_code": "TRANSFER_EVENTS_UPDATE",4 "environment": "production"5}