Skip to content

Get customer bank information.

Return the mobile information of the customer

GET https://api.leapa.co/v2/customers/{customer_id}/destination/{account_id}/bank

This endpoint needs your API key

Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.

Request

curl -X GET "https://api.leapa.co/v2/customers/cus_3d8e51fa20/destination/acc_62f3a8d15b/bank" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "object": "string",
  "address": {
    "object": "string",
    "city": "string",
    "type": "personal",
    "status": "invalid",
    "state": "string",
    "zip": "string",
    "line1": "string",
    "line2": "string"
  },
  "defaultPayout": false,
  "owner_name": "Jeanne Ndayishimiye",
  "type": "bank",
  "bank_name": "Jeanne Ndayishimiye",
  "account_id": "acc_62f3a8d15b",
  "default": false,
  "account_number": "00012345678901",
  "routing_number": "string",
  "created_at_date": 0
}

Path parameters

Values that go into the URL itself.

  • customer_idstringrequired
    Example:cus_3d8e51fa20
  • account_idstringrequired
    Example:acc_62f3a8d15b

Response

application/json
  • objectstring

    Object name

  • addressAddressResponse
  • defaultPayoutboolean
  • owner_namestring

    Name of the account owner.

  • typestring

    Type of payout account.

    Allowed values:bankmobilecash
  • bank_namestring

    Bank Name

  • account_idstring

    Account id.

  • defaultboolean

    Flag indicating whether the account is a default payout or not.

  • account_numberstring

    Account Number

  • routing_numberstring

    Routing transit number for the bank account

  • created_at_dateinteger<int64>

    The date and time that the payout was created

Status codes

  • 200OK
  • 400Bad request
  • 401Unauthorized
  • 402Payment required
  • 403Forbidden
  • 404Not found
  • 428Precondition required
  • 500Server error

Request

curl -X GET "https://api.leapa.co/v2/customers/cus_3d8e51fa20/destination/acc_62f3a8d15b/bank" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "object": "string",
  "address": {
    "object": "string",
    "city": "string",
    "type": "personal",
    "status": "invalid",
    "state": "string",
    "zip": "string",
    "line1": "string",
    "line2": "string"
  },
  "defaultPayout": false,
  "owner_name": "Jeanne Ndayishimiye",
  "type": "bank",
  "bank_name": "Jeanne Ndayishimiye",
  "account_id": "acc_62f3a8d15b",
  "default": false,
  "account_number": "00012345678901",
  "routing_number": "string",
  "created_at_date": 0
}