Ledger Enterprise
API Documentation V1
API Documentation V1
  • GETTING STARTED
    • Welcome
    • Getting Started
    • Authentication
    • Rate Limits
    • Pagination
  • tutorials
    • Register a new API User
    • First Steps as an API User
    • Generate Reporting API Keys
    • Manage Reporting API Keys
  • REFERENCE
    • API reference
      • Accounts
        • Addresses
        • Balances
          • History
        • Currency
        • History
        • Labels
        • Nft collections
        • Nft portfolio
        • Nfts
        • Sync
        • Tokens
        • Erc20 children accounts
      • Api users
        • Register
      • Currencies
        • Tokens
      • Digests
        • History
      • Entities
        • History
        • Users
      • Groups
        • History
      • Labels
      • Messages
        • History
      • Organization
      • Pledges
      • Requests
        • Approve
        • Challenge
          • Reject
        • Governance status
        • Reject
      • Settlements
      • Transactions
        • Estimate fees
        • Fees
        • Approve
        • History
        • Labels
        • Reject
      • Users
        • History
      • Whitelists
        • History
      • Auth
        • Token
          • Refresh
      • Compliance
        • Address risk
        • Sanctions
      • Notifications
        • Configuration
    • Specification
Powered by GitBook
On this page
  1. REFERENCE
  2. API reference

Pledges

PreviousOrganizationNextRequests
get

Search Pledge

Authorizations
Query parameters
account_idinteger | nullableOptional

Account id

Default: nullExample: 5
asset_manager_idinteger | nullableOptional

Asset manager id

Default: nullExample: 5
exchange_idinteger | nullableOptional

Exchange id

Default: nullExample: 5
pageinteger | nullableOptional

Defines the page number to be fetched.

Default: 1Example: 3
page_sizeinteger | nullableOptional

Defines the number of elements displayed on a page. Must be a positive number with 0 and -1 being special values to return a maximum defined in the gate

Default: 20Example: 40
Responses
200
pledge search results
application/json
400
invalid search parameters
application/json
get
GET /pledges HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "edges": [
    {
      "cursor": 0,
      "node": {
        "account_id": 1,
        "amount": 1,
        "asset_manager": {
          "approver_group_id": 1,
          "code": "text",
          "id": "text",
          "name": "text",
          "role": "text",
          "whitelist_id": 1
        },
        "custodian": {
          "approver_group_id": 1,
          "code": "text",
          "id": "text",
          "name": "text",
          "role": "text",
          "whitelist_id": 1
        },
        "exchange": {
          "approver_group_id": 1,
          "code": "text",
          "id": "text",
          "name": "text",
          "role": "text",
          "whitelist_id": 1
        },
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "pending": 1,
        "pledge_subaccount_id": 1,
        "state": "ASSIGNED_TO_SETTLEMENT"
      }
    }
  ],
  "page_info": {
    "count": 1,
    "has_next_page": false
  }
}
get

Get a pledge by id

Authorizations
Path parameters
pledge_idintegerRequired

pledge's id

Responses
200
pledge object
application/json
404
pledge not found
application/json
get
GET /pledges/{pledge_id} HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "account_id": 1,
  "amount": 1,
  "asset_manager": {
    "approver_group_id": 1,
    "code": "text",
    "id": "text",
    "name": "text",
    "role": "text",
    "whitelist_id": 1
  },
  "custodian": {
    "approver_group_id": 1,
    "code": "text",
    "id": "text",
    "name": "text",
    "role": "text",
    "whitelist_id": 1
  },
  "exchange": {
    "approver_group_id": 1,
    "code": "text",
    "id": "text",
    "name": "text",
    "role": "text",
    "whitelist_id": 1
  },
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "pending": 1,
  "pledge_subaccount_id": 1,
  "state": "ASSIGNED_TO_SETTLEMENT"
}
  • GET/pledges
  • GET/pledges/{pledge_id}