# Digistore24

> Read products, buyers, orders, transactions, payouts and sales settings.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/digistore24

## Actions

### Get buyer details

Returns a buyer's data record including address information

**Inputs**

- Buyer ID (`buyer_id`, number, required): ID of the buyer to retrieve

**Outputs**

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

**Example output**

```json
{
  "data": {
    "buyer": {
      "address_id": 1,
      "city": "example",
      "company": "example",
      "country": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone_no": "example",
      "salutation": "example",
      "state": "example",
      "street": "example",
      "street_name": "example",
      "street_number": "example",
      "title": "example",
      "zipcode": "example"
    }
  }
}
```

### Get current user information

Returns data about the current user (the owner of the API key)

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "granted_roles": "example",
    "granted_roles_msg": "example",
    "user_id": 1,
    "user_name": "example"
  }
}
```

### Get order form details

Returns details of an order form

**Inputs**

- Orderform ID (`orderform_id`, number, required): ID of the order form to retrieve

**Outputs**

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

**Example output**

```json
{
  "data": {
    "orderform": {}
  }
}
```

### Get product details

Returns details of a Digistore24 product

**Inputs**

- Product (`product_id`, number, required): Numeric ID of the product to retrieve

**Outputs**

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

**Example output**

```json
{
  "data": {
    "product": {}
  }
}
```

### Get purchase details

Returns details for one or more orders

**Inputs**

- Purchase ID (`purchase_id`, text, required): Single Digistore24 order ID or comma-separated list of order IDs

**Outputs**

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

**Example output**

```json
{
  "data": null
}
```

### Get voucher details

Returns details about a specific voucher code

**Inputs**

- Code (`code`, text, required): The voucher code that the buyer enters on the order form

**Outputs**

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

**Example output**

```json
{
  "data": {
    "coupon": {
      "code": "example",
      "count_left": 1,
      "currency": "example",
      "expires_at": "example",
      "first_amount": 1.0,
      "first_rate": 1.0,
      "id": 1,
      "is_count_limited": "Y",
      "other_amounts": 1.0,
      "other_rates": 1.0,
      "product_ids": "example",
      "upgrade_policy": "example",
      "valid_until": "example"
    }
  }
}
```

### List all smart upgrades

Returns a list of all smart upgrades that you have set up in Digistore24

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "smartupgrades": []
  }
}
```

### List available countries

Returns a list of countries that are set up in Digistore24, with their two-digit ISO country codes

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### List available currencies

Returns a list of currencies that can be used when selling via Digistore24

**Inputs**

- Convert to (`convert_to`, text): Optional list of currencies to get exchange rates for (e.g. "EUR", "EUR,USD,CHF", or "all")

**Outputs**

- `data` (list): The response from Digistore24.

**Example output**

```json
{
  "data": []
}
```

### List buyers

Returns a paginated list of your Digistore24 buyers

**Inputs**

- Page no (`page_no`, number): Page number for pagination (starts at 1). At least 1.
- Page size (`page_size`, number): Number of buyers per page. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "item_count": 1,
    "items": [],
    "page_count": 1,
    "page_no": 1,
    "page_size": 1
  }
}
```

### List order forms

Lists your order forms

**Inputs**: None.

**Outputs**

- `data` (list): The response from Digistore24.

**Example output**

```json
{
  "data": []
}
```

### List order invoices

Returns a list of invoices for a specific purchase

**Inputs**

- Purchase ID (`purchase_id`, text, required): The ID of the purchase. Must belong to the Digistore account associated with the API key, unless the key has cross-account read access (class `network`).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "invoice_list": [],
    "purchase_id": "example"
  }
}
```

### List payment plans

Returns a list of payment plans created for a product on Digistore24

**Inputs**

- Product (`product_id`, number, required): The Digistore24 product ID

**Outputs**

- `data` (list): The response from Digistore24.

**Example output**

```json
{
  "data": []
}
```

### List payouts

Returns a list of your credit notes as a vendor and affiliate on Digistore24

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "payout_list": []
  }
}
```

### List product groups

Returns a list of your product groups

**Inputs**: None.

**Outputs**

- `data` (list): The response from Digistore24.

**Example output**

```json
{
  "data": []
}
```

### List products

Returns a list of your Digistore24 products

**Inputs**

- Sort by (`sort_by`, text): Sort products by name or product group. One of: `name`, `group`.
- Show deleted (`show_deleted`, text): Include deleted products. By default deleted products are left out of the response. Set to `Y` to include them; each product's `is_deleted` field tells them apart. Accepts `Y`/`N`, `1`/`0` and `true`/`false` (case-insensitive); other values return an error. One of: `Y`, `N`.

**Outputs**

- `data` (list): The response from Digistore24.

**Example output**

```json
{
  "data": []
}
```

### List purchases

Returns a list of your sales, including those where you get a commission (e.g. joint ventures)

**Inputs**

- Start time (`start_time`, date and time): Start time for purchase list (e.g. "2014-02-28 23:11:24", "now", "-3d", "start")
- End time (`end_time`, date and time): End time for purchase list
- Sort by (`sort_by`, text): Sort criteria. One of: `date`, `earning`, `amount`.
- Sort order (`sort_order`, text): Sort order. One of: `asc`, `desc`.
- Load transactions (`load_transactions`, true/false): Include transaction list for each purchase
- Page no (`page_no`, number): Page number (starts at 1). At least 1.
- Page size (`page_size`, number): Number of items per page. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "purchase_list": []
  }
}
```

### List transactions (payments, returns, chargebacks)

Returns a list of transactions where you get a commission for. This includes payments, refunds and chargebacks from joint venture sales.

**Inputs**

- Start time (`start_time`, date and time): Point of time to filter transaction creation date from. Examples: - "2014-02-28 23:11:24" - "2021-10-08T07:20:11-05:00" (ISO 8601) - "now" for current time - "-3d" for 3 days ago - "start" for first available date
- End time (`end_time`, date and time): Point of time to filter transaction creation date to
- Sort by (`sort_by`, text): Field to sort results by. One of: `date`, `earning`, `amount`.
- Sort order (`sort_order`, text): Sort direction. One of: `asc`, `desc`.
- Page no (`page_no`, number): Page number (starts at 1). At least 1.
- Page size (`page_size`, number): Number of entries per page. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "from": "example",
    "page_count": 1,
    "page_no": 1,
    "page_size": 1,
    "summary": {
      "amounts": {},
      "count": 1
    },
    "to": "example",
    "transaction_list": []
  }
}
```

### List upgrades created in Digistore24

Lists all upgrades that you have created in Digistore24

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "upgrades": []
  }
}
```

### List voucher codes

Returns a list of all voucher codes

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "are_returned_data_public": "Y",
    "coupons": []
  }
}
```
