> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ACH Receiving

> The Marqeta platform's ACHR feature enables third parties to credit or debit the general purpose account of a Marqeta account holder. Resources to create and maintain a digital account throughout its lifecycle are here as well.

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-semibold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

The Marqeta platform’s ACH Receiving feature (referred to herein as *direct deposit*) enables third parties to credit or debit the general purpose account (GPA) of a Marqeta account holder.

<h2 id="get_directdeposits_token">
  Retrieve direct deposit record
</h2>

**Action:** `GET`\
**Endpoint:** `/directdeposits/{token}`

{/* <EndpointCard
title="Returns a direct deposit entry"
path="/directdeposits/{token}"
method="get"
/> */}

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.

<h3 id="_url_path_parameters">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                                  |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the direct deposit record to retrieve.<br /><br />**Allowable Values:**<br /><br />Existing direct deposit record token |

<h3 id="_response_body">
  Response body
</h3>

| Fields                                                                                 | Description                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| amount<br /><br />decimal<br /><br />Conditionally returned                            | Amount being debited or credited.<br /><br />**Allowable Values:**<br /><br />number<br /><br />**Format:**<br />0.00                                                                                                                                                                                 |
| business\_token<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                      |
| company\_discretionary\_data<br /><br />string<br /><br />Conditionally returned       | Company-specific data provided by the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />20 char max                                                                                                                                                                              |
| company\_entry\_description<br /><br />string<br /><br />Conditionally returned        | Description of the purpose of the direct deposit.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                             |
| company\_identification<br /><br />string<br /><br />Conditionally returned            | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                              |
| company\_name<br /><br />string<br /><br />Conditionally returned                      | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                                                                                                                                                                        |
| created\_time<br /><br />datetime<br /><br />Conditionally returned                    | Date and time when the direct deposit record was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                         |
| direct\_deposit\_account\_token<br /><br />string<br /><br />Conditionally returned    | Unique identifier of the affected deposit account.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                            |
| individual\_identification\_number<br /><br />string<br /><br />Conditionally returned | Accounting number by which the recipient is known to the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />15 or 22 char max, depending on the value of `standard_entry_class_code`                                                                                              |
| individual\_name<br /><br />string<br /><br />Conditionally returned                   | Identity of the direct deposit recipient.<br /><br />**Allowable Values:**<br /><br />22 char max                                                                                                                                                                                                     |
| last\_modified\_time<br /><br />datetime<br /><br />Conditionally returned             | Date and time when the direct deposit record was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                    |
| settlement\_date<br /><br />datetime<br /><br />Conditionally returned                 | Date and time when the credit or debit is applied.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                |
| standard\_entry\_class\_code<br /><br />string<br /><br />Conditionally returned       | Three-letter code identifying the type of entry.<br /><br />**Allowable Values:**<br /><br />`ACK`, `ADV`, `ARC`, `ATX`, `BOC`, `CCD`, `CIE`, `COR`, `CTX`, `DNE`, `ENR`, `IAT`, `MTE`, `POP`, `POS`, `PPD`, `RCK`, `SHR`, `TEL`, `TRC`, `TRX`, `WEB`, `XCK`                                          |
| state<br /><br />string<br /><br />Conditionally returned                              | Current status of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />`PENDING`, `APPLIED`, `REVERSED`, `REJECTED`                                                                                                                                                                 |
| state\_reason<br /><br />string<br /><br />Conditionally returned                      | Explanation of why the direct deposit record is in the current state.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                        |
| state\_reason\_code<br /><br />string<br /><br />Conditionally returned                | Standardized code describing the reason for the current state.<br /><br />**Allowable Values:**<br /><br />See <a href="/developer-guides/achr-return-reason-codes/#_reason_codes_table">ACHR return reason codes</a> for the full list of supported codes and the grace period associated with each. |
| token<br /><br />string<br /><br />Conditionally returned                              | Unique identifier of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                               |
| type<br /><br />string<br /><br />Conditionally returned                               | Whether funds are being debited from or credited to the account.<br /><br />**Allowable Values:**<br /><br />`CREDIT`, `DEBIT`                                                                                                                                                                        |
| user\_token<br /><br />string<br /><br />Conditionally returned                        | Unique identifier of the user or business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                  |
| trace\_number<br /><br />string<br /><br />Conditionally returned                      | 15-digit number used to track inbound and outbound ACH transfers.<br /><br />**Allowable Values:**<br /><br />15 char max                                                                                                                                                                             |
| early\_direct\_deposit<br /><br />string<br /><br />Conditionally returned             | Boolean value that indicates whether this is a qualifying early pay transaction. If the early pay feature is not enabled for this program, this value will always be `false`.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                             |
| originator\_status\_code<br /><br />string<br /><br />Conditionally returned           | Numeric value that identifies the originator of the direct deposit record:<br /><br />- **1**: Originator is not a US federal government entity.<br />- **2**: Originator is a US federal government entity, such as the IRS.<br /><br />**Allowable Values:**<br /><br />1, 2                        |

<h2 id="get_directdeposits">
  List direct deposit records
</h2>

**Action:** `GET`\
**Endpoint:** `/directdeposits`

{/* <EndpointCard
title="Lists all direct deposits"
path="/directdeposits"
method="get"
/> */}

Return a list of direct deposits.

<h3 id="_url_query_parameters">
  URL query parameters
</h3>

| Fields                                                        | Description                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional                  | Number of direct deposits to retrieve.<br /><br />**Allowable Values:**<br /><br />100 max                                                                                                                                                                                                                                                                    |
| user\_token<br /><br />string<br /><br />Optional             | Unique identifier of the user.<br /><br />Pass either a `user_token` or a `business_token`, not both.<br /><br />Send a `GET` request to `/users` to retrieve user tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                             |
| business\_token<br /><br />string<br /><br />Optional         | Unique identifier of the business.<br /><br />Pass either a `user_token` or a `business_token`, not both.<br /><br />Send a `GET` request to `/businesses` to retrieve business tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                |
| direct\_deposit\_state<br /><br />string<br /><br />Optional  | Direct deposit state.<br /><br />**Allowable Values:**<br /><br />`PENDING`, `REVERSED`, `APPLIED`, `REJECTED`                                                                                                                                                                                                                                                |
| start\_settlement\_date<br /><br />string<br /><br />Optional | Beginning of the settlement date range from which to return direct deposit records.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-dd                                                                                                                                                                                 |
| end\_settlement\_date<br /><br />string<br /><br />Optional   | End of the settlement date range from which to return direct deposit records.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-dd                                                                                                                                                                                       |
| start\_index<br /><br />integer<br /><br />Optional           | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                        |
| sort\_by<br /><br />string<br /><br />Optional                | Fields by which to sort.<br /><br />Use any fields in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix a field name with a hyphen ( `-` ) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, `settlementDate` |

<h3 id="_response_body_2">
  Response body
</h3>

| Fields                                                                                             | Description                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                         | Number of direct deposit transitions to retrieve.<br /><br />**Allowable Values:**<br /><br />100 max                                                                                                                                                                                                 |
| data<br /><br />array of objects<br /><br />Conditionally returned                                 | List of direct deposits.<br /><br />**Allowable Values:**<br /><br />100 max                                                                                                                                                                                                                          |
| data\[].**amount**<br /><br />decimal<br /><br />Conditionally returned                            | Amount being debited or credited.<br /><br />**Allowable Values:**<br /><br />number<br /><br />**Format:**<br />0.00                                                                                                                                                                                 |
| data\[].**business\_token**<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                      |
| data\[].**company\_discretionary\_data**<br /><br />string<br /><br />Conditionally returned       | Company-specific data provided by the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />20 char max                                                                                                                                                                              |
| data\[].**company\_entry\_description**<br /><br />string<br /><br />Conditionally returned        | Description of the purpose of the direct deposit.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                             |
| data\[].**company\_identification**<br /><br />string<br /><br />Conditionally returned            | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                              |
| data\[].**company\_name**<br /><br />string<br /><br />Conditionally returned                      | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                                                                                                                                                                        |
| data\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned                    | Date and time when the direct deposit record was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                         |
| data\[].**direct\_deposit\_account\_token**<br /><br />string<br /><br />Conditionally returned    | Unique identifier of the affected deposit account.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                            |
| data\[].**individual\_identification\_number**<br /><br />string<br /><br />Conditionally returned | Accounting number by which the recipient is known to the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />15 or 22 char max, depending on the value of `standard_entry_class_code`                                                                                              |
| data\[].**individual\_name**<br /><br />string<br /><br />Conditionally returned                   | Identity of the direct deposit recipient.<br /><br />**Allowable Values:**<br /><br />22 char max                                                                                                                                                                                                     |
| data\[].**last\_modified\_time**<br /><br />datetime<br /><br />Conditionally returned             | Date and time when the direct deposit record was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                    |
| data\[].**settlement\_date**<br /><br />datetime<br /><br />Conditionally returned                 | Date and time when the credit or debit is applied.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                |
| data\[].**standard\_entry\_class\_code**<br /><br />string<br /><br />Conditionally returned       | Three-letter code identifying the type of entry.<br /><br />**Allowable Values:**<br /><br />`ACK`, `ADV`, `ARC`, `ATX`, `BOC`, `CCD`, `CIE`, `COR`, `CTX`, `DNE`, `ENR`, `IAT`, `MTE`, `POP`, `POS`, `PPD`, `RCK`, `SHR`, `TEL`, `TRC`, `TRX`, `WEB`, `XCK`                                          |
| data\[].**state**<br /><br />string<br /><br />Conditionally returned                              | Current status of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />`PENDING`, `APPLIED`, `REVERSED`, `REJECTED`                                                                                                                                                                 |
| data\[].**state\_reason**<br /><br />string<br /><br />Conditionally returned                      | Explanation of why the direct deposit record is in the current state.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                        |
| data\[].**state\_reason\_code**<br /><br />string<br /><br />Conditionally returned                | Standardized code describing the reason for the current state.<br /><br />**Allowable Values:**<br /><br />See <a href="/developer-guides/achr-return-reason-codes/#_reason_codes_table">ACHR return reason codes</a> for the full list of supported codes and the grace period associated with each. |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                              | Unique identifier of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                               |
| data\[].**type**<br /><br />string<br /><br />Conditionally returned                               | Whether funds are being debited from or credited to the account.<br /><br />**Allowable Values:**<br /><br />`CREDIT`, `DEBIT`                                                                                                                                                                        |
| data\[].**user\_token**<br /><br />string<br /><br />Conditionally returned                        | Unique identifier of the user or business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                  |
| data\[].**trace\_number**<br /><br />string<br /><br />Conditionally returned                      | 15-digit number used to track inbound and outbound ACH transfers.<br /><br />**Allowable Values:**<br /><br />15 char max                                                                                                                                                                             |
| data\[].**early\_direct\_deposit**<br /><br />string<br /><br />Conditionally returned             | Boolean value that indicates whether this is a qualifying early pay transaction. If the early pay feature is not enabled for this program, this value will always be `false`.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                             |
| data\[].**originator\_status\_code**<br /><br />string<br /><br />Conditionally returned           | Numeric value that identifies the originator of the direct deposit record:<br /><br />- **1**: Originator is not a US federal government entity.<br />- **2**: Originator is a US federal government entity, such as the IRS.<br /><br />**Allowable Values:**<br /><br />1, 2                        |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                    | Sort order index of the last resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                 |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                      | A value of `true` indicates that more unreturned resources exist.<br /><br />A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`       |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                  | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                |

<h2 id="post_directdeposits_transitions">
  Create direct deposit transition
</h2>

**Action:** `POST`\
**Endpoint:** `/directdeposits/transitions`

{/* <EndpointCard
title="Creates a direct deposit transition"
path="/directdeposits/transitions"
method="post"
/> */}

Create a direct deposit transition. Sending a `POST` request to this endpoint will initiate sending a Direct Deposit Transition webhook. For more information, see [Direct Deposit Transition Events](/core-api/event-types/#_direct_deposit_transition_events) on the [Event Types](/core-api/event-types/) page.

<h3 id="_request_body">
  Request body
</h3>

| Fields                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| channel<br /><br />string<br /><br />Required                | Mechanism by which the transaction was initiated.<br /><br />**Allowable Values:**<br /><br />`API`, `SYSTEM`, `PROD_SUPPORT`                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| direct\_deposit\_token<br /><br />string<br /><br />Required | Unique identifier of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| reason<br /><br />string<br /><br />Required                 | Explanation of why the direct deposit transition record was created.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| reason\_code<br /><br />string<br /><br />Optional           | A standard code describing the reason for the transition.<br /><br />**NOTE:** The reason code is optional when transitioning a direct deposit to the `APPLIED` state. It is required for the `REVERSED` state.<br /><br />**Allowable Values:**<br /><br />`R01`, `R02`, `R03`, `R04`, `R06`, `R07`, `R08`, `R09`, `R10`, `R11`, `R14`, `R15`, `R16`, `R17`, `R18`, `R20`, `R23`, `R24`, `R29`<br /><br />See <a href="/developer-guides/achr-return-reason-codes/#_reason_codes_table">ACHR return reason codes</a> for the full list of supported codes and the grace period associated with each. |
| state<br /><br />string<br /><br />Required                  | The states for which to return transition records. To list transition records for more than one state, create a comma-delimited list.<br /><br />**Allowable Values:**<br /><br />`APPLIED`, `REVERSED`                                                                                                                                                                                                                                                                                                                                                                                               |
| token<br /><br />string<br /><br />Optional                  | Unique identifier of this direct deposit transition. If you do not include a token, the system generates one automatically. This token is used in other API calls, so rather than let the system generate a string, enter a string that you can remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                       |

<h3 id="_response_body_3">
  Response body
</h3>

| Fields                                                                                 | Description                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| channel<br /><br />string<br /><br />Conditionally returned                            | Mechanism by which the transaction was initiated.<br /><br />**Allowable Values:**<br /><br />`API`, `SYSTEM`, `PROD_SUPPORT`                                                                                                                                                                         |
| token<br /><br />string<br /><br />Conditionally returned                              | Unique identifier of the direct deposit transition record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                    |
| reason<br /><br />string<br /><br />Conditionally returned                             | Explanation of why the direct deposit record is in the current state.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                        |
| type<br /><br />string<br /><br />Conditionally returned                               | Whether funds are being debited from or credited to the account.<br /><br />**Allowable Values:**<br /><br />`CREDIT`, `DEBIT`                                                                                                                                                                        |
| direct\_deposit\_token<br /><br />string<br /><br />Conditionally returned             | Unique identifier of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                               |
| transaction\_token<br /><br />string<br /><br />Conditionally returned                 | Unique identifier of the transaction record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                  |
| state<br /><br />string<br /><br />Conditionally returned                              | Current status of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />`PENDING`, `APPLIED`, `REVERSED`, `REJECTED`                                                                                                                                                                 |
| created\_time<br /><br />datetime<br /><br />Conditionally returned                    | Date and time when the direct deposit record was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                         |
| direct\_deposit\_account\_token<br /><br />string<br /><br />Conditionally returned    | Unique identifier of the direct deposit account record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                       |
| last\_modified\_time<br /><br />datetime<br /><br />Conditionally returned             | Date and time when the resource was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                 |
| amount<br /><br />decimal<br /><br />Conditionally returned                            | Amount being debited or credited.<br /><br />**Allowable Values:**<br /><br />number<br /><br />**Format:**<br />0.00                                                                                                                                                                                 |
| settlement\_date<br /><br />datetime<br /><br />Conditionally returned                 | Date when the credit or debit is applied.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                       |
| reason\_code<br /><br />string<br /><br />Conditionally returned                       | Standardized code describing the reason for the current state.<br /><br />**Allowable Values:**<br /><br />See <a href="/developer-guides/achr-return-reason-codes/#_reason_codes_table">ACHR return reason codes</a> for the full list of supported codes and the grace period associated with each. |
| user\_token<br /><br />string<br /><br />Conditionally returned                        | Unique identifier of the user associated with the direct deposit record<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                               |
| business\_token<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                      |
| standard\_entry\_class\_code<br /><br />string<br /><br />Conditionally returned       | Three-letter code identifying the type of entry.<br /><br />**Allowable Values:**<br /><br />`ACK`, `ADV`, `ARC`, `ATX`, `BOC`, `CCD`, `CIE`, `COR`, `CTX`, `DNE`, `ENR`, `IAT`, `MTE`, `POP`, `POS`, `PPD`, `RCK`, `SHR`, `TEL`, `TRC`, `TRX`, `WEB`, `XCK`                                          |
| company\_name<br /><br />string<br /><br />Conditionally returned                      | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                                                                                                                                                                        |
| company\_discretionary\_data<br /><br />string<br /><br />Conditionally returned       | Company-specific data provided by the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />20 char max                                                                                                                                                                              |
| company\_identification<br /><br />string<br /><br />Conditionally returned            | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                              |
| company\_entry\_description<br /><br />string<br /><br />Conditionally returned        | Description of the purpose of the direct deposit.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                             |
| individual\_identification\_number<br /><br />string<br /><br />Conditionally returned | Accounting number by which the recipient is known to the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />15 or 22 char max, depending on the value of `standard_entry_class_code`                                                                                              |
| individual\_name<br /><br />string<br /><br />Conditionally returned                   | Identity of the direct deposit recipient.<br /><br />**Allowable Values:**<br /><br />22 char max                                                                                                                                                                                                     |
| trace\_number<br /><br />string<br /><br />Conditionally returned                      | 15-digit number used to track inbound and outbound ACH transfers.<br /><br />**Allowable Values:**<br /><br />15 char max                                                                                                                                                                             |
| early\_direct\_deposit<br /><br />string<br /><br />Conditionally returned             | Boolean value that indicates whether this is a qualifying early pay transaction. If the early pay feature is not enabled for this program, this value will always be `false`.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                             |
| originator\_status\_code<br /><br />string<br /><br />Conditionally returned           | Numeric value that identifies the originator of the direct deposit record:<br /><br />- **1**: Originator is not a US federal government entity.<br />- **2**: Originator is a US federal government entity, such as the IRS.<br /><br />**Allowable Values:**<br /><br />1, 2                        |

<h2 id="get_directdeposits_transitions">
  List direct deposit transitions
</h2>

**Action:** `GET`\
**Endpoint:** `/directdeposits/transitions`

{/* <EndpointCard
title="Returns a list of direct deposit transitions"
path="/directdeposits/transitions"
method="get"
/> */}

Retrieve a list of direct deposit transition records.

<h3 id="_url_query_parameters_2">
  URL query parameters
</h3>

| Fields                                                       | Description                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional                 | Number of direct deposit transitions to retrieve.<br /><br />**Allowable Values:**<br /><br />100 max                                                                                                                                                                                                                                       |
| user\_token<br /><br />string<br /><br />Optional            | Unique identifier of the user.<br /><br />Pass either a `user_token` or a `business_token`, not both.<br /><br />Send a `GET` request to `/users` to retrieve user tokens.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                  |
| business\_token<br /><br />string<br /><br />Optional        | Unique identifier of the business.<br /><br />Pass either a `business_token` or a `user_token`, not both.<br /><br />Send a `GET` request to `/businesses` to retrieve business tokens.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                 |
| direct\_deposit\_token<br /><br />string<br /><br />Optional | Direct deposit credit or debit for which to return transition records.<br /><br />**Allowable Values:**<br /><br />Existing direct deposit record token                                                                                                                                                                                     |
| start\_index<br /><br />integer<br /><br />Optional          | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                      |
| sort\_by<br /><br />string<br /><br />Optional               | Fields by which to sort.<br /><br />Use any fields in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix a field name with a hyphen ( `-` ) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime` |

<h3 id="_response_body_4">
  Response body
</h3>

| Fields                                                                                             | Description                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                         | The number of resources returned.<br /><br />**Allowable Values:**<br /><br />0–100                                                                                                                                                                                                                   |
| data<br /><br />array of objects<br /><br />Conditionally returned                                 | List of direct deposit transitions.<br /><br />**Allowable Values:**<br /><br />100 max                                                                                                                                                                                                               |
| data\[].**channel**<br /><br />string<br /><br />Conditionally returned                            | Mechanism by which the transaction was initiated.<br /><br />**Allowable Values:**<br /><br />`API`, `SYSTEM`, `PROD_SUPPORT`                                                                                                                                                                         |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                              | Unique identifier of the direct deposit transition record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                    |
| data\[].**reason**<br /><br />string<br /><br />Conditionally returned                             | Explanation of why the direct deposit record is in the current state.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                        |
| data\[].**type**<br /><br />string<br /><br />Conditionally returned                               | Whether funds are being debited from or credited to the account.<br /><br />**Allowable Values:**<br /><br />`CREDIT`, `DEBIT`                                                                                                                                                                        |
| data\[].**direct\_deposit\_token**<br /><br />string<br /><br />Conditionally returned             | Unique identifier of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                               |
| data\[].**transaction\_token**<br /><br />string<br /><br />Conditionally returned                 | Unique identifier of the transaction record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                  |
| data\[].**state**<br /><br />string<br /><br />Conditionally returned                              | Current status of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />`PENDING`, `APPLIED`, `REVERSED`, `REJECTED`                                                                                                                                                                 |
| data\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned                    | Date and time when the direct deposit record was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                         |
| data\[].**direct\_deposit\_account\_token**<br /><br />string<br /><br />Conditionally returned    | Unique identifier of the direct deposit account record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                       |
| data\[].**last\_modified\_time**<br /><br />datetime<br /><br />Conditionally returned             | Date and time when the resource was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                 |
| data\[].**amount**<br /><br />decimal<br /><br />Conditionally returned                            | Amount being debited or credited.<br /><br />**Allowable Values:**<br /><br />number<br /><br />**Format:**<br />0.00                                                                                                                                                                                 |
| data\[].**settlement\_date**<br /><br />datetime<br /><br />Conditionally returned                 | Date when the credit or debit is applied.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                       |
| data\[].**reason\_code**<br /><br />string<br /><br />Conditionally returned                       | Standardized code describing the reason for the current state.<br /><br />**Allowable Values:**<br /><br />See <a href="/developer-guides/achr-return-reason-codes/#_reason_codes_table">ACHR return reason codes</a> for the full list of supported codes and the grace period associated with each. |
| data\[].**user\_token**<br /><br />string<br /><br />Conditionally returned                        | Unique identifier of the user associated with the direct deposit record<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                               |
| data\[].**business\_token**<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                      |
| data\[].**standard\_entry\_class\_code**<br /><br />string<br /><br />Conditionally returned       | Three-letter code identifying the type of entry.<br /><br />**Allowable Values:**<br /><br />`ACK`, `ADV`, `ARC`, `ATX`, `BOC`, `CCD`, `CIE`, `COR`, `CTX`, `DNE`, `ENR`, `IAT`, `MTE`, `POP`, `POS`, `PPD`, `RCK`, `SHR`, `TEL`, `TRC`, `TRX`, `WEB`, `XCK`                                          |
| data\[].**company\_name**<br /><br />string<br /><br />Conditionally returned                      | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                                                                                                                                                                        |
| data\[].**company\_discretionary\_data**<br /><br />string<br /><br />Conditionally returned       | Company-specific data provided by the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />20 char max                                                                                                                                                                              |
| data\[].**company\_identification**<br /><br />string<br /><br />Conditionally returned            | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                              |
| data\[].**company\_entry\_description**<br /><br />string<br /><br />Conditionally returned        | Description of the purpose of the direct deposit.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                             |
| data\[].**individual\_identification\_number**<br /><br />string<br /><br />Conditionally returned | Accounting number by which the recipient is known to the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />15 or 22 char max, depending on the value of `standard_entry_class_code`                                                                                              |
| data\[].**individual\_name**<br /><br />string<br /><br />Conditionally returned                   | Identity of the direct deposit recipient.<br /><br />**Allowable Values:**<br /><br />22 char max                                                                                                                                                                                                     |
| data\[].**trace\_number**<br /><br />string<br /><br />Conditionally returned                      | 15-digit number used to track inbound and outbound ACH transfers.<br /><br />**Allowable Values:**<br /><br />15 char max                                                                                                                                                                             |
| data\[].**early\_direct\_deposit**<br /><br />string<br /><br />Conditionally returned             | Boolean value that indicates whether this is a qualifying early pay transaction. If the early pay feature is not enabled for this program, this value will always be `false`.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                             |
| data\[].**originator\_status\_code**<br /><br />string<br /><br />Conditionally returned           | Numeric value that identifies the originator of the direct deposit record:<br /><br />- **1**: Originator is not a US federal government entity.<br />- **2**: Originator is a US federal government entity, such as the IRS.<br /><br />**Allowable Values:**<br /><br />1, 2                        |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                    | Sort order index of the last resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                 |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                      | A value of `true` indicates that more unreturned resources exist.<br /><br />A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`       |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                  | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                |

<h2 id="get_directdeposits_transitions_token">
  Retrieve direct deposit transition
</h2>

**Action:** `GET`\
**Endpoint:** `/directdeposits/transitions/{token}`

{/* <EndpointCard
title="Returns a direct deposit transition"
path="/directdeposits/transitions/{token}"
method="get"
/> */}

Retrieve a direct deposit transition. Include the `token` path parameter to specify the record to return.

<h3 id="_url_path_parameters_2">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                                       |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Identifies the direct deposit transition record to retrieve.<br /><br />**Allowable Values:**<br /><br />Existing direct deposit transition token |

<h3 id="_response_body_5">
  Response body
</h3>

| Fields                                                                                 | Description                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| channel<br /><br />string<br /><br />Conditionally returned                            | Mechanism by which the transaction was initiated.<br /><br />**Allowable Values:**<br /><br />`API`, `SYSTEM`, `PROD_SUPPORT`                                                                                                                                                                         |
| token<br /><br />string<br /><br />Conditionally returned                              | Unique identifier of the direct deposit transition record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                    |
| reason<br /><br />string<br /><br />Conditionally returned                             | Explanation of why the direct deposit record is in the current state.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                        |
| type<br /><br />string<br /><br />Conditionally returned                               | Whether funds are being debited from or credited to the account.<br /><br />**Allowable Values:**<br /><br />`CREDIT`, `DEBIT`                                                                                                                                                                        |
| direct\_deposit\_token<br /><br />string<br /><br />Conditionally returned             | Unique identifier of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                               |
| transaction\_token<br /><br />string<br /><br />Conditionally returned                 | Unique identifier of the transaction record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                  |
| state<br /><br />string<br /><br />Conditionally returned                              | Current status of the direct deposit record.<br /><br />**Allowable Values:**<br /><br />`PENDING`, `APPLIED`, `REVERSED`, `REJECTED`                                                                                                                                                                 |
| created\_time<br /><br />datetime<br /><br />Conditionally returned                    | Date and time when the direct deposit record was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                         |
| direct\_deposit\_account\_token<br /><br />string<br /><br />Conditionally returned    | Unique identifier of the direct deposit account record.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                       |
| last\_modified\_time<br /><br />datetime<br /><br />Conditionally returned             | Date and time when the resource was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                 |
| amount<br /><br />decimal<br /><br />Conditionally returned                            | Amount being debited or credited.<br /><br />**Allowable Values:**<br /><br />number<br /><br />**Format:**<br />0.00                                                                                                                                                                                 |
| settlement\_date<br /><br />datetime<br /><br />Conditionally returned                 | Date when the credit or debit is applied.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ                                                                                                                                                       |
| reason\_code<br /><br />string<br /><br />Conditionally returned                       | Standardized code describing the reason for the current state.<br /><br />**Allowable Values:**<br /><br />See <a href="/developer-guides/achr-return-reason-codes/#_reason_codes_table">ACHR return reason codes</a> for the full list of supported codes and the grace period associated with each. |
| user\_token<br /><br />string<br /><br />Conditionally returned                        | Unique identifier of the user associated with the direct deposit record<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                               |
| business\_token<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the business associated with the direct deposit record.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                      |
| standard\_entry\_class\_code<br /><br />string<br /><br />Conditionally returned       | Three-letter code identifying the type of entry.<br /><br />**Allowable Values:**<br /><br />`ACK`, `ADV`, `ARC`, `ATX`, `BOC`, `CCD`, `CIE`, `COR`, `CTX`, `DNE`, `ENR`, `IAT`, `MTE`, `POP`, `POS`, `PPD`, `RCK`, `SHR`, `TEL`, `TRC`, `TRX`, `WEB`, `XCK`                                          |
| company\_name<br /><br />string<br /><br />Conditionally returned                      | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                                                                                                                                                                        |
| company\_discretionary\_data<br /><br />string<br /><br />Conditionally returned       | Company-specific data provided by the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />20 char max                                                                                                                                                                              |
| company\_identification<br /><br />string<br /><br />Conditionally returned            | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                              |
| company\_entry\_description<br /><br />string<br /><br />Conditionally returned        | Description of the purpose of the direct deposit.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                             |
| individual\_identification\_number<br /><br />string<br /><br />Conditionally returned | Accounting number by which the recipient is known to the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />15 or 22 char max, depending on the value of `standard_entry_class_code`                                                                                              |
| individual\_name<br /><br />string<br /><br />Conditionally returned                   | Identity of the direct deposit recipient.<br /><br />**Allowable Values:**<br /><br />22 char max                                                                                                                                                                                                     |
| trace\_number<br /><br />string<br /><br />Conditionally returned                      | 15-digit number used to track inbound and outbound ACH transfers.<br /><br />**Allowable Values:**<br /><br />15 char max                                                                                                                                                                             |
| early\_direct\_deposit<br /><br />string<br /><br />Conditionally returned             | Boolean value that indicates whether this is a qualifying early pay transaction. If the early pay feature is not enabled for this program, this value will always be `false`.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                             |
| originator\_status\_code<br /><br />string<br /><br />Conditionally returned           | Numeric value that identifies the originator of the direct deposit record:<br /><br />- **1**: Originator is not a US federal government entity.<br />- **2**: Originator is a US federal government entity, such as the IRS.<br /><br />**Allowable Values:**<br /><br />1, 2                        |

<h2 id="create_stop_payment_order">
  Create stop payment order
</h2>

**Action:** `POST`\
**Endpoint:** `/directdeposits/stop-payment`

Send a `POST` request to the `/directdeposits/stop-payment` endpoint to create a stop payment order when your cardholder wants to halt a future payment. By creating a stop payment order, future matching transactions will be automatically declined by the Marqeta platform, with `STOP_PAYMENT` given as the decline reason in the transaction authorization.

<h3 id="_request_body_2">
  Request body
</h3>

| Fields                                               | Description                                                                                                                                                                                                                                                                                                    |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required          | Unique identifier for each stop payment order.<br /><br />This value is not present in the <a href="/core-api/event-types/#_direct_deposit_transition_events">direct deposit transition webhook</a>.<br /><br />**Allowable Values:**<br /><br />36 char max                                                   |
| ddaToken<br /><br />string<br /><br />Required       | Unique identifier for the account in the system.<br /><br />This value is referred to as the `direct_deposit_account_token` in the <a href="/core-api/event-types/#_direct_deposit_transition_events">direct deposit transition webhook</a>.<br /><br />**Allowable Values:**<br /><br />36 char max           |
| amount<br /><br />decimal<br /><br />Optional        | Amount of the stop payment order.<br /><br />This value is referred to as the `amount` in the <a href="/core-api/event-types/#_direct_deposit_transition_events">direct deposit transition webhook</a>.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                   |
| companyId<br /><br />string<br /><br />Required      | Alphanumeric code that identifies the direct deposit originator.<br /><br />This value is referred to as the `company_identification` in the <a href="/core-api/event-types/#_direct_deposit_transition_events">direct deposit transition webhook</a>.<br /><br />**Allowable Values:**<br /><br />10 char max |
| companyName<br /><br />string<br /><br />Optional    | Name of the direct deposit originator.<br /><br />This value is referred to as the `company_name` in the <a href="/core-api/event-types/#_direct_deposit_transition_events">direct deposit transition webhook</a>.<br /><br />**Allowable Values:**<br /><br />16 char max                                     |
| withdrawOrder<br /><br />boolean<br /><br />Optional | Flag indicating whether the stop payment order is withdrawn.<br /><br />This value is not present in the <a href="/core-api/event-types/#_direct_deposit_transition_events">direct deposit transition webhook</a>.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                 |

<h3 id="_sample_request_body">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "00acce2b-cefg-45ab-8417-f8a62326c0d6",
  "ddaToken" : "d5bd5921-048a-44c1-ba48-fe8ee0418f2d",
  "amount": "50.75",
  "companyId": "9876543210",
  "companyName": "Friendship Inc.",
  "withdrawOrder": false
}
```

<h3 id="_response_body_6">
  Response body
</h3>

| Fields                                                                 | Description                                                                                                                                           |
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Conditionally returned              | Unique identifier for each stop payment order.<br /><br />**Allowable Values:**<br /><br />36 char max                                                |
| ddaToken<br /><br />string<br /><br />Returned                         | Unique identifier for the account in the system.<br /><br />**Allowable Values:**<br /><br />36 char max                                              |
| amount<br /><br />decimal<br /><br />Conditionally returned            | Amount of the stop payment order.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                |
| companyId<br /><br />string<br /><br />Returned                        | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                              |
| companyName<br /><br />string<br /><br />Conditionally returned        | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                        |
| withdrawOrder<br /><br />boolean<br /><br />Conditionally returned     | Flag indicating whether the stop payment order is withdrawn.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                              |
| createdTime<br /><br />datetime<br /><br />Conditionally returned      | Date and time when the resource was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ      |
| lastModifiedTime<br /><br />datetime<br /><br />Conditionally returned | Date and time when the resource was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ |

<h3 id="_sample_response_body">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "ddaToken": "d5bd5921-048a-44c1-ba48-fe8ee0418f2d",
  "companyId": "9876543210",
  "token": "00acce2b-cefg-45ab-8417-f8a62326c0d6",
  "amount": 50.75,
  "companyName": "Friendship Inc.",
  "withdrawOrder": false,
  "createdTime": "2025-01-31T18:46:46Z",
  "lastModifiedTime": "2025-01-31T18:46:46Z"
}
```

<h2 id="update_stop_payment_order">
  Update stop payment order
</h2>

**Action:** `PUT`\
**Endpoint:** `/directdeposits/stop-payment/{token}`

Use this endpoint to update an existing stop payment order.

<h3 id="_url_path_parameters_3">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                              |
| ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the stop payment order to be updated.<br /><br />**Allowable Values:**<br /><br />Existing stop payment order token |

<h3 id="_request_body_3">
  Request body
</h3>

| Fields                                               | Description                                                                                                              |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| withdrawOrder<br /><br />boolean<br /><br />Required | Flag indicating whether the stop payment order is withdrawn.<br /><br />**Allowable Values:**<br /><br />`true`, `false` |

<h3 id="_sample_request_body_2">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
    "withdrawOrder" : true
}
```

<h3 id="_response_body_7">
  Response body
</h3>

| Fields                                                                 | Description                                                                                                                                           |
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Conditionally returned              | Unique identifier for each stop payment order.<br /><br />**Allowable Values:**<br /><br />36 char max                                                |
| withdrawOrder<br /><br />boolean<br /><br />Conditionally returned     | Flag indicating whether the stop payment order is withdrawn.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                              |
| createdTime<br /><br />datetime<br /><br />Conditionally returned      | Date and time when the resource was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ      |
| lastModifiedTime<br /><br />datetime<br /><br />Conditionally returned | Date and time when the resource was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ |

<h3 id="_sample_response_body_2">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
    "token": "00acce2b-cefg-45ab-8417-f8a62326c0d6",
    "withdrawOrder": true,
    "createdTime": "2025-01-31T18:46:46Z",
    "lastModifiedTime": "2025-01-31T18:47:51Z"
}
```

<h2 id="get_stop_payment_order">
  Retrieve stop payment order details
</h2>

**Action:** `GET`\
**Endpoint:** `/directdeposits/stop-payment/{token}`

Use this endpoint to retrieve stop payment order details.

<h3 id="_url_path_parameters_4">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                                                                |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| token<br /><br />string<br /><br />Required | Unique identifier of the stop payment order to be retrieved.<br /><br />**Allowable Values:**<br /><br />Existing stop payment order token |

<h3 id="_response_body_8">
  Response body
</h3>

| Fields                                                                 | Description                                                                                                                                           |
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Conditionally returned              | Unique identifier for each stop payment order.<br /><br />**Allowable Values:**<br /><br />36 char max                                                |
| ddaToken<br /><br />string<br /><br />Returned                         | Unique identifier for the account in the system.<br /><br />**Allowable Values:**<br /><br />36 char max                                              |
| amount<br /><br />decimal<br /><br />Conditionally returned            | Amount of the stop payment order.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                |
| companyId<br /><br />string<br /><br />Returned                        | Alphanumeric code that identifies the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />10 char max                              |
| companyName<br /><br />string<br /><br />Conditionally returned        | Name of the direct deposit originator.<br /><br />**Allowable Values:**<br /><br />16 char max                                                        |
| withdrawOrder<br /><br />boolean<br /><br />Conditionally returned     | Flag indicating whether the stop payment order is withdrawn.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                              |
| createdTime<br /><br />datetime<br /><br />Conditionally returned      | Date and time when the resource was created.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ      |
| lastModifiedTime<br /><br />datetime<br /><br />Conditionally returned | Date and time when the resource was last updated.<br /><br />**Allowable Values:**<br /><br />string<br /><br />**Format:**<br />yyyy-mm-ddThh:mm:ssZ |

<h3 id="_sample_response_body_3">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "ddaToken": "d5bd5921-048a-44c1-ba48-fe8ee0418f2d",
  "companyId": "9876543210",
  "token": "00acce2b-cefg-45ab-8417-f8a62326c0d6",
  "amount": 50.75,
  "companyName": "Friendship Inc.",
  "withdrawOrder": true,
  "createdTime": "2025-01-31T18:46:46Z",
  "lastModifiedTime": "2025-01-31T18:47:51Z"
}
```
