---
updatedAt: 2025-06-09T23:40:24.000Z
agentTools:
  projectIndex: https://docs.tarabut.com/llms.txt
---

# Get Direct Debits

Get the Direct Debits for a given an account ID 
`Note: you must have a valid consent to fetch your customer's account direct debits`

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Connect",
    "description": "APIs for the Tarabut sandbox environment. Before you begin, please create the 'clientId' and 'clientSecret' from Tarabut Dev Portal.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.sau.sandbox.tarabutgateway.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your access token generated from the [Create Access Token](https://docs.tarabut.com/v2.0/reference/createaccesstokenv2) endpoint, the access token will contain `X-TG-CustomerUserId` that was added when the token was generated"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/accountInformation/v2/accounts/{accountId}/direct-debits": {
      "get": {
        "tags": [
          "Connect"
        ],
        "summary": "Get Direct Debits",
        "description": "Get the Direct Debits for a given an account ID \n`Note: you must have a valid consent to fetch your customer's account direct debits`",
        "operationId": "getDirectDebits",
        "x-explorer-enabled": false,
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "Specify the body format to JSON format",
              "default": "application/json"
            },
            "required": true
          },
          {
            "name": "accountId",
            "in": "path",
            "schema": {
              "type": "string",
              "description": "The `accountId` that has been returned on the [Get Accounts](https://docs.tarabut.com/v2.0/reference/getaccountsv2) endpoint"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "directDebit": {
                          "type": "array",
                          "description": "Array of objects contains a list of Direct Debits for a given `accountId`",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountId": {
                                "type": "string",
                                "description": "Unique account ID that provided as path parameter"
                              },
                              "directDebitId": {
                                "type": "string",
                                "description": "Unique identifier is used to identify the direct debit resource"
                              },
                              "mandateIdentification": {
                                "type": "string",
                                "description": "Unique identifier reference to the Direct Debit mandate"
                              },
                              "directDebitStatusCode": {
                                "type": "string",
                                "description": "The status of the direct debit, which can be `Active` or `Inactive`"
                              },
                              "name": {
                                "type": "string",
                                "description": "The name of the regulated beneficiary entity that initiates the Direct Debit collection"
                              },
                              "frequency": {
                                "type": "string",
                                "description": "The executed frequency of the Direct Debit collections, which can be `Annual`, `Daily`, `Fortnightly`, `HalfYearly`, `Monthly`, `NotKnown`, `Quarterly`, or `Weekly`"
                              },
                              "previousPaymentDateTime": {
                                "type": "string",
                                "format": "date-time",
                                "description": "The date of the most recent direct debit collection"
                              },
                              "previousPaymentAmount": {
                                "type": "object",
                                "description": "The object shows the value of the last direct debit collection",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "description": "The amount of money"
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "A 3-character alphabetic code allocated to a currency under an international currency identification scheme (ISO 4217)"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "links": {
                          "type": "object",
                          "description": "Link objects for pagination",
                          "properties": {
                            "self": {
                              "type": "string",
                              "description": "The link to request the resource"
                            }
                          }
                        },
                        "meta": {
                          "type": "object",
                          "description": "Object contains the pagination info",
                          "properties": {
                            "totalPages": {
                              "type": "integer",
                              "description": "Total count of pages"
                            },
                            "pageinated": {
                              "type": "boolean",
                              "description": "The status of the pagination mode"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "error name",
                      "example": "UNAUTHORIZED_ACCESS"
                    },
                    "errorMessage": {
                      "type": "string",
                      "description": "error message",
                      "example": "Access token used is expired"
                    },
                    "traceId": {
                      "type": "string",
                      "description": "Tracing Id used when you contact support",
                      "example": "278827398026513417"
                    },
                    "details": {
                      "type": "array",
                      "description": "The array contains details of the error",
                      "items": {
                        "type": "object",
                        "properties": {
                          "fieldName": {
                            "type": "string",
                            "description": "Field name that has invalid input",
                            "example": "Authorization"
                          },
                          "message": {
                            "type": "string",
                            "description": "Error message of the invalid input",
                            "example": "Expired bearer token"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```