Note
We are pleased to announce that the Marqeta platform now offers ACH Receiving, a refreshed version of the API that enables third parties to credit or debit the general purpose account (GPA) of a Marqeta account holder. The API version featured on this page is being withdrawn and will not be used for new card programs.Existing card programs have already transitioned to ACH Receiving. Contact your Marqeta representative for more information.
We are pleased to announce that the Marqeta platform now offers ACH Receiving, a refreshed version of the API that enables third parties to credit or debit the general purpose account (GPA) of a Marqeta account holder. The API version featured on this page is being withdrawn and will not be used for new card programs.Existing card programs have already transitioned to ACH Receiving. Contact your Marqeta representative for more information.
Retrieve direct deposit record
Action:GETEndpoint:
/directdeposits/{token}
Retrieves a direct deposit record. Include the token path parameter to indicate the direct deposit record to retrieve.
A direct deposit record stores the details corresponding to a single direct deposit action, such as the type (debit or credit), amount, and associated dates and times.
URL path parameters
Response body
Sample response body
JSON
List direct deposit records
Action:GETEndpoint:
/directdeposits
Retrieves a list of all direct deposit records for your program.
This endpoint supports pagination and field filtering.
Query parameters
Sample response body
JSON
Create direct deposit transition
Action:POSTEndpoint:
/directdeposits/transitions
Changes the state of a direct deposit.
Direct deposits can have the following states:
The reason_code field
When you create a direct deposit transition and change the state of a direct deposit, you must include a valid reason code to explain why the transition was made (unless you are transitioning a direct deposit to theAPPLIED state).
These reason codes are only used for ACH processing, and are not shared outside the ACH network.
The following table describes supported reason codes and the grace period associated with each reason. The reason code’s grace period represents the period of time during which you can reverse a previously applied direct deposit. The grace period begins after the settlement date.
Note
Unless stated otherwise, the grace period is calculated using banking days, which excludes US holidays and weekends. For example, a transition created on the Friday before Memorial Day would have a grace period until the following Wednesday, since the Monday is a holiday and Saturday and Sunday are non-banking days.
Unless stated otherwise, the grace period is calculated using banking days, which excludes US holidays and weekends. For example, a transition created on the Friday before Memorial Day would have a grace period until the following Wednesday, since the Monday is a holiday and Saturday and Sunday are non-banking days.
For more information about National Automated Clearing House Association (NACHA) batch files, see www.nacha.org.
Body field details
Sample request body
JSON
Sample response body
JSON
Retrieve direct deposit transition
Action:GETEndpoint:
/directdeposits/transitions/{token}
Retrieves a direct deposit transition. Include the token path parameter to specify the record to return.
URL path parameters
Sample response body
JSON
List direct deposit transitions
Action:GETEndpoint:
/directdeposits/transitions
Retrieves a list of direct deposit transition records.
This endpoint supports pagination and field filtering.
Query parameters
Sample response body
JSON