Skip to content

Latest commit

 

History

History
119 lines (108 loc) · 1.92 KB

query-withdrawals.md

File metadata and controls

119 lines (108 loc) · 1.92 KB

Query withdrawals

Retrieving all your withdrawals

{% tabs %} {% tab title="Query" %}

{
  withdrawals {
    id
    recipient { firstName lastName }
    # there are many other properties
  }
}

{% endtab %}

{% tab title="Response" %}

{
  "data": {
    "withdrawals": [
      {
        "id": "5b04c62ec0bf606bf216ae21",
        "recipient": {
          "firstName": "John"
          "lastName": "Smith"
        }
      },
      {
        "id": "5b04c6bfc0bf606bf216af06",
        "recipient": {
          "firstName": "John"
          "lastName": "Smith"
        }
      },
      {
        "id": "5b04c8e3c0bf606bf216b026",
        "recipient": {
          "firstName": "John"
          "lastName": "Smith"
        }
      }
    ]
  }
}

{% endtab %} {% endtabs %}

Retrieving some of your withdrawals

{% tabs %} {% tab title="Query" %}

{
  # there are more query parameters available, see the API schema
  withdrawals(input: { statuses: CONFIRMED, maxCreatedAt: "2020-01-29" }) {
    id
    createdAt
    # there are many other properties
  }
}

{% endtab %}

{% tab title="Response" %}

{
  "data": {
    "withdrawals": [
      {
        "id": "5b04c62ec0bf606bf216ae21",
        "createdAt": "2020-01-17T07:21:20.247Z"
      },
      {
        "id": "5b04c6bfc0bf606bf216af06",
        "createdAt": "2018-08-13T05:45:28.698Z"
      }
    ]
  }
}

{% endtab %} {% endtabs %}

Retrieving a single withdrawal

{% tabs %} {% tab title="Query" %}

{
  # there are more query parameters available, see the API schema
  withdrawal(id: "5b04c62ec0bf606bf216ae21") {
    status
    createdAt
    amount
    # there are many other properties
  }
}

{% endtab %}

{% tab title="Response" %}

{
  "data": {
    "withdrawal": {
      "status": "CONFIRMED",
      "createdAt": "2020-01-17T07:21:20.247Z",
      "amount": 1000
    }
  }
}

{% endtab %} {% endtabs %}