Skip to content

Get the customer cash source

GET https://api.leapa.co/v2/customers/{customer_id}/sources/{account_id}/cash

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/sources/acc_62f3a8d15b/cash" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "currency": "BIF",
  "id": "obj_5f21c8a40b",
  "merchant": "string"
}

Path parameters

Values that go into the URL itself.

  • customer_idstringrequired
    Example:cus_3d8e51fa20
  • account_idstringrequired
    Example:acc_62f3a8d15b

Response

application/json
  • currencystring

    Currency Code.

    Allowed values:BIFUSDKESXAF
  • idstring

    Account Id

  • merchantstring

    Account Merchant Unique Id

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/sources/acc_62f3a8d15b/cash" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "currency": "BIF",
  "id": "obj_5f21c8a40b",
  "merchant": "string"
}