# Blaze

> Look up Blaze balances, transactions, customers and payment links.

App · 18 actions. Web page: https://docs.lodol.com/docs/integrations/blaze

## Actions

### Get a balance

Read available and pending balances.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "available": {
        "amount": 1,
        "currency": "example"
      },
      "object": "example",
      "pending": {
        "amount": 1,
        "currency": "example"
      },
      "reserved": {
        "amount": 1,
        "currency": "example"
      },
      "wallet_public_key": "example"
    }
  }
}
```

### Get a charge

Read the status and amount of a charge.

**Inputs**

- Charge ID (`charge_id`, text, required): Charge id.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "card_brand": "example",
      "card_last4": "example",
      "completed_at": "example",
      "created_at": "example",
      "currency": "example",
      "customer_id": "example",
      "description": "example",
      "failure_code": "example",
      "failure_message": "example",
      "id": "example",
      "metadata": "example",
      "next_action": "example",
      "object": "example",
      "provider": "example",
      "status": "example"
    }
  }
}
```

### Get a customer

Read a customer using its Blaze ID.

**Inputs**

- Customer ID (`customer_id`, text, required): Customer id.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "archived": true,
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "metadata": {
        "internal_id": "example",
        "plan": "example"
      },
      "phone": "example",
      "requirements": "example",
      "verification_status": "example"
    }
  }
}
```

### Get a payment link

Read a payment link and its status.

**Inputs**

- Payment link ID (`payment_link_id`, text, required): Payment link id.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "created_at": "example",
      "currency": "example",
      "id": "example",
      "note": "example",
      "object": "example",
      "short_code": "example",
      "status": "example",
      "updated_at": "example",
      "url": "example"
    }
  }
}
```

### Get a transaction

Read the details of a transaction.

**Inputs**

- Transaction ID (`transaction_id`, text, required): Transaction id.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "completed_at": "example",
      "created_at": "example",
      "currency": "example",
      "customer": {
        "email": "example",
        "name": "example"
      },
      "id": "example",
      "object": "example",
      "payment_link_id": "example",
      "status": "example",
      "type": "example"
    }
  }
}
```

### Get a transfer

Read a transfer and its status.

**Inputs**

- Transfer ID (`transfer_id`, text, required): Transfer id.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "created_at": "example",
      "currency": "example",
      "customer_id": "example",
      "destination": {
        "id": "example",
        "type": "example"
      },
      "fee": 1,
      "id": "example",
      "metadata": {},
      "note": "example",
      "object": "example",
      "status": "example"
    }
  }
}
```

### Get a virtual account

Read details of one virtual account.

**Inputs**

- Virtual account ID (`virtual_account_id`, text, required): Virtual account id.
- Customer ID (`customer_id`, text, required): Blaze customer that owns the virtual account.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "account_number": "example",
      "bank_name": "example",
      "created_at": "example",
      "customer_id": "example",
      "id": "example",
      "object": "example",
      "rail": "example",
      "routing_number": "example",
      "status": "example",
      "type": "example"
    }
  }
}
```

### Get a withdrawal

Read a withdrawal and its status.

**Inputs**

- Withdrawal ID (`withdrawal_id`, text, required): Withdrawal id.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "completed_at": "example",
      "created_at": "example",
      "currency": "example",
      "external_account": {
        "account_last4": "example",
        "bank_name": "example",
        "id": "example",
        "type": "example"
      },
      "fee": "example",
      "id": "example",
      "metadata": {},
      "note": "example",
      "object": "example",
      "provider": "example",
      "provider_tx_id": "example",
      "status": "example"
    }
  }
}
```

### List charges

Browse card charges and their statuses.

**Inputs**

- Limit (`limit`, number): Number of charges to return (1-100). From 1 to 100.
- Cursor (`cursor`, text): Pagination cursor from a previous response's `next_cursor`.
- Status (`status`, text): Filter by charge status: `succeeded`, `failed`, `pending`, `requires_action`. One of: `succeeded`, `failed`, `pending`, `requires_action` (Requires action).

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount": 1,
        "card_brand": "example",
        "card_last4": "example",
        "completed_at": "example",
        "created_at": "example",
        "currency": "example",
        "customer_id": "example",
        "description": "example",
        "id": "example",
        "object": "example",
        "status": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List customers

Browse customers and filter by email address.

**Inputs**

- Limit (`limit`, number): Number of customers to return. Range: 1-100. From 1 to 100.
- Cursor (`cursor`, text): Pagination cursor from the previous response's `next_cursor` field.
- Email (`email`, text): Filter customers by email address (exact match).
- Archived (`archived`, true/false): Set to `true` to include archived customers in the results.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived": true,
        "created_at": "example",
        "email": "example",
        "first_name": "example",
        "id": "example",
        "last_name": "example",
        "metadata": {
          "internal_id": "example",
          "plan": "example"
        },
        "phone": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List invitations

Read pending team invitations.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "email": "example",
        "expires_at": "example",
        "id": "example",
        "invited_by": "example",
        "role": "example",
        "status": "example"
      }
    ]
  }
}
```

### List payment links

Browse payment links for your business.

**Inputs**

- Limit (`limit`, number): Number of payment links to return. Range: 1-100. From 1 to 100.
- Cursor (`cursor`, text): Cursor for pagination. Use the `next_cursor` from a previous response to fetch the next page.
- Status (`status`, text): Filter by status. Possible values: `created`, `completed`, `cancelled`. One of: `created`, `completed`, `cancelled`.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount": 1,
        "created_at": "example",
        "currency": "example",
        "id": "example",
        "note": "example",
        "object": "example",
        "short_code": "example",
        "status": "example",
        "updated_at": "example",
        "url": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List team members

Read the members of your Blaze business account.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "email": "example",
        "first_name": "example",
        "id": "example",
        "joined_at": "example",
        "last_name": "example",
        "role": "example",
        "status": "example"
      }
    ]
  }
}
```

### List transactions

Browse transactions by status and date range.

**Inputs**

- Limit (`limit`, number): Number of results per page (1-100, default 20). From 1 to 100.
- Cursor (`cursor`, text): Cursor from previous response for pagination.
- Status (`status`, text): Filter by status: `pending`, `processing`, `completed`, `failed`. One of: `pending`, `processing`, `completed`, `failed`.
- Created after (`created_after`, date and time): Filter transactions created after this ISO 8601 datetime.
- Created before (`created_before`, date and time): Filter transactions created before this ISO 8601 datetime.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount": 1,
        "completed_at": "example",
        "created_at": "example",
        "currency": "example",
        "customer": {
          "email": "example",
          "name": "example"
        },
        "id": "example",
        "object": "example",
        "payment_link_id": "example",
        "status": "example",
        "type": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List transfers

Browse transfers and their statuses.

**Inputs**

- Limit (`limit`, number): Number of transfers to return (1-100). From 1 to 100.
- Cursor (`cursor`, text): Pagination cursor from the previous response's `next_cursor` field.
- Status (`status`, text): Filter by status: `pending`, `completed`, or `failed`. One of: `pending`, `completed`, `failed`.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount": 1,
        "created_at": "example",
        "currency": "example",
        "customer_id": "example",
        "destination": {
          "id": "example",
          "type": "example"
        },
        "fee": 1,
        "id": "example",
        "metadata": {},
        "note": "example",
        "object": "example",
        "status": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List virtual accounts

Browse virtual accounts used for receiving payments.

**Inputs**

- Status (`status`, text): Filter by status. Options: `active`, `inactive`. One of: `active`, `inactive`.
- Type (`type`, text): Filter by virtual account rail. Options: `us_ach`, `wire`, `sepa`, `spei`. One of: `us_ach` (Us ach), `wire`, `sepa`, `spei`.
- Limit (`limit`, number): Number of records to return (1-100). From 1 to 100.
- Cursor (`cursor`, text): Pagination cursor from the previous response's `next_cursor` field.
- Customer ID (`customer_id`, text, required): Blaze customer that owns the virtual account.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "account_number": "example",
        "bank_name": "example",
        "created_at": "example",
        "customer_id": "example",
        "id": "example",
        "object": "example",
        "rail": "example",
        "routing_number": "example",
        "status": "example",
        "type": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List webhooks

See where Blaze sends events for your business.

**Inputs**

- Limit (`limit`, number): Number of webhooks to return. Range: 1-100. From 1 to 100.
- Cursor (`cursor`, text): Pagination cursor from the previous response's `next_cursor` field.
- Status (`status`, text): Filter webhooks by status. Valid values: `active`, `inactive`. One of: `active`, `inactive`.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "events": [
          "example"
        ],
        "id": "example",
        "status": "example",
        "url": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```

### List withdrawals

Browse withdrawals and their statuses.

**Inputs**

- Limit (`limit`, number): Number of results to return per page (1-100). From 1 to 100.
- Cursor (`cursor`, text): Pagination cursor from a previous response to fetch the next page.
- Status (`status`, text): Filter by withdrawal status. One of: `pending`, `processing`, `completed`, `failed`, `cancelled`. One of: `pending`, `processing`, `completed`, `failed`, `cancelled`.

**Outputs**

- `data` (object): The response from Blaze.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount": 1,
        "completed_at": "example",
        "created_at": "example",
        "currency": "example",
        "external_account": {
          "account_last4": "example",
          "bank_name": "example",
          "id": "example",
          "type": "example"
        },
        "fee": "example",
        "id": "example",
        "metadata": {},
        "note": "example",
        "object": "example",
        "provider": "example",
        "provider_tx_id": "example",
        "status": "example"
      }
    ],
    "has_more": true,
    "next_cursor": "example",
    "object": "example"
  }
}
```
