---
title: "Get Latest Direct Deposit Switch Attempt"
method: GET
path: "/programs/{programCode}/accounts/{accountIdentifier}/directdeposit/switches/latest"
tags: ["DirectDeposit"]
---

# Get Latest Direct Deposit Switch Attempt

`GET /programs/{programCode}/accounts/{accountIdentifier}/directdeposit/switches/latest`

Retrieves the latest direct deposit switch attempt for the specified account. The response includes switch status and vendor information.

## Path parameters

- `programCode` string, required
- `accountIdentifier` string, required

## Headers

- `X-GD-RequestId` string, required

## Response `200`

OK

- GetLatestDDSwitchAttemptResponse — Represents the response returned after retrieving the latest direct deposit switch attempt for an account. Contains the most recent switch attempt details. Inherits standard response metadata from Gd.Bos.DataTransfer.Response.ResponseBase.
  - `latestSwitch` SwitchAttempt — Represents the details of a direct deposit switch attempt, including identifiers, vendor information, status, and event history.
    - `referenceNumber` string, nullable — The unique reference number for the switch attempt.
    - `id` string, nullable — The unique identifier for the switch attempt.
    - `vendor` string, nullable — The name of the vendor handling the direct deposit switch.
    - `vendorReference` string, nullable — The reference identifier provided by the vendor for this switch attempt.
    - `amount` string, nullable — The amount associated with the switch attempt.
    - `amountType` string, nullable — The type of amount (e.g., "fixed", "percentage") for the switch attempt.
    - `status` string, nullable — The current status of the switch attempt (e.g., "Pending", "Completed", "Failed").
    - `statusReason` string, nullable — The reason for the current status, if applicable.
    - `lastEventDateUtc` string, date-time — The UTC date and time of the last event related to this switch attempt.
    - `depositor` string, nullable — The name of the depositor associated with the switch attempt.
    - `eventIds` string[], nullable — The list of event identifiers associated with this switch attempt.
  - `responseDetails` ResponseDetail[], nullable — Required: A list of response details providing status codes, descriptions, and additional information about the result of the operation.
    - `code` integer — The primary status or error code for the response (e.g., 200 for success, 400 for validation error).
    - `subCode` integer, nullable — An optional subcode providing more granular detail about the response or error.
    - `description` string, nullable — A human-readable description of the response, error, or status.
    - `url` string, nullable — A URL linking to documentation or a web page with more information about the response code.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/greendot/apis/baas-apis.md) · [All operations](https://skmtc.net/greendot/apis/baas-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/greendot/baas-apis/revisions/666553766b78/schema)
