Skip to content
Developer docs
⌘ K
Dashboard ↗

HTTP endpoints

getWallets

GET /api/v1/partners/{partnerId}/wallets

Requires read. Keep the Bearer key on your server.

SDK

ts
grizzlee.getWallets(partnerId: string): Promise<WalletBalance[]>

HTTP

Use your backend's HTTP client. The cURL request shows the wire format. Replace path parameters and example values.

sh
curl --fail-with-body --request GET \
  'https://app.grizzlee.ca/api/v1/partners/{partnerId}/wallets' \
  -H "Authorization: Bearer $GRIZZLEE_SERVER_KEY"

Response

HTTP responses wrap this value in data. The SDK returns the value directly unless the note above describes a wrapper.

Type: array.

Response schema

json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "partnerId": {
        "type": "string"
      },
      "currency": {
        "anyOf": [
          {
            "type": "string",
            "const": "CAD"
          },
          {
            "type": "string",
            "const": "USD"
          },
          {
            "type": "string",
            "const": "EUR"
          },
          {
            "type": "string",
            "const": "GBP"
          }
        ]
      },
      "rewardType": {
        "anyOf": [
          {
            "type": "string",
            "const": "cash"
          },
          {
            "type": "string",
            "const": "credit"
          }
        ]
      },
      "pendingCents": {
        "type": "number"
      },
      "approvedCents": {
        "type": "number"
      },
      "reservedCents": {
        "type": "number"
      },
      "paidCents": {
        "type": "number"
      },
      "availableCents": {
        "type": "number"
      },
      "debtCents": {
        "type": "number"
      }
    },
    "required": [
      "partnerId",
      "currency",
      "rewardType",
      "pendingCents",
      "approvedCents",
      "reservedCents",
      "paidCents",
      "availableCents",
      "debtCents"
    ]
  }
}

Errors

Failures return { "error": { "code": "...", "message": "...", "details": {} } }. Details are optional. See error statuses. Reuse an unchanged event payload when retrying.