# Bold Subscriptions

> Find subscriptions, customers, orders, and subscription groups in your Bold shop.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/bold-subscriptions

## Actions

### Get customer

Retrieve a customer by their id.

**Inputs**

- Customer ID (`customer_id`, number, required): The customer identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "customer": {
      "addresses": [],
      "cashier_public_id": "example",
      "created_at": "example",
      "default_address": {
        "address_source": "platform",
        "address_use": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "country_code": "example",
        "created_at": "example",
        "customer_id": 1,
        "deleted_at": "example",
        "first_name": "example",
        "id": 1,
        "is_default": false,
        "last_name": "example",
        "phone": "example",
        "platform_customer_id": "example",
        "platform_id": "example",
        "platform_type": "bigcommerce",
        "province": "example",
        "province_code": "example",
        "shop_identifier": "example",
        "street1": "example",
        "street2": "example",
        "updated_at": "example",
        "zip": "example"
      },
      "email": "example",
      "first_name": "example",
      "id": 1,
      "labels": [],
      "last_name": "example",
      "notes": "example",
      "phone": "example",
      "platform_id": "example",
      "subscription_summary": {
        "active_subscription_count": 1,
        "bold_platform_customer_id": 1,
        "inactive_subscription_count": 1,
        "last_order_date": "example",
        "lifetime_value_usd": 1.0,
        "next_order_date": "example",
        "subscription_order_count": 1
      }
    }
  }
}
```

### Get shop

Retrieve basic information about a shop.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "shop": {
      "admin_email": "example",
      "created_at": "example",
      "currency": "example",
      "currency_format": "example",
      "custom_domain": "example",
      "deleted_at": "example",
      "id": 1,
      "pii_redacted_at": "example",
      "platform_type": "bigcommerce",
      "shop_domain": "example",
      "shop_identifer": "example",
      "shop_owner": "example",
      "timezone": "example",
      "updated_at": "example"
    }
  }
}
```

### Get subscription

Retrieve a subscription by its id.

**Inputs**

- Subscription (`subscription_id`, number, required): The subscription identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "subscription": {
      "base_currency": "example",
      "base_to_charged_exchange_rate": 1,
      "billing_address": {
        "address_source": "platform",
        "address_use": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "country_code": "example",
        "created_at": "example",
        "customer_id": 1,
        "deleted_at": "example",
        "first_name": "example",
        "id": 1,
        "is_default": false,
        "last_name": "example",
        "phone": "example",
        "platform_customer_id": "example",
        "platform_id": "example",
        "platform_type": "bigcommerce",
        "province": "example",
        "province_code": "example",
        "shop_identifier": "example",
        "street1": "example",
        "street2": "example",
        "updated_at": "example",
        "zip": "example"
      },
      "billing_address_id": 1,
      "charged_currency": "example",
      "created_at": "example",
      "current_retries": 1,
      "customer": {},
      "customer_id": 1,
      "discount_code": "example",
      "external_id": "example",
      "id": 1,
      "idempotency_key": "example",
      "last_failure_code": "alt_pp_payment_method_required",
      "last_failure_details": {
        "message": "example"
      },
      "last_failure_reason": "credit_card",
      "last_order_datetime": "example",
      "last_payment_datetime": "example",
      "last_processed_datetime": "example",
      "line_items": [],
      "next_order_datetime": "example",
      "next_payment_datetime": "example",
      "next_processing_datetime": "example",
      "note": "example",
      "order_count": 1,
      "order_note": "example",
      "order_rrule": "example",
      "order_rrule_text": "example",
      "orders_processed": 1,
      "payment_gateway_public_id": "example",
      "payment_method_token": "example",
      "payment_rrule": "example",
      "payment_rrule_text": "example",
      "percent_discount": 1.0,
      "placed_at": "example",
      "sca_url": "example",
      "shipping_address": {
        "address_source": "platform",
        "address_use": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "country_code": "example",
        "created_at": "example",
        "customer_id": 1,
        "deleted_at": "example",
        "first_name": "example",
        "id": 1,
        "is_default": false,
        "last_name": "example",
        "phone": "example",
        "platform_customer_id": "example",
        "platform_id": "example",
        "platform_type": "bigcommerce",
        "province": "example",
        "province_code": "example",
        "shop_identifier": "example",
        "street1": "example",
        "street2": "example",
        "updated_at": "example",
        "zip": "example"
      },
      "shipping_address_id": 1,
      "shipping_lines": [],
      "shop_id": 1,
      "status_changed_at": "example",
      "subscription_status": "active",
      "updated_at": "example"
    }
  }
}
```

### Get subscription group

Retrieve a subscription group by its id.

**Inputs**

- Group ID (`group_id`, number, required): The subscription group identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "subscription_group": {
      "active_subscribers_count": 1,
      "allow_buffer_days": false,
      "allow_prepaid": false,
      "billing_rules": [],
      "can_add_to_cart": false,
      "continue_prepaid_type": "as_prepaid",
      "created_at": "example",
      "deleted_at": "example",
      "discount_type": "no_discount",
      "dynamic_discounts": [],
      "fixed_discount": 1,
      "fixed_interval_type": "daily",
      "group_type": "selectable",
      "id": 1,
      "internal_name": "example",
      "is_enabled": false,
      "is_fixed_billing": false,
      "is_prepaid_only": false,
      "is_product_swappable": false,
      "is_subscription_only": false,
      "minimum_order_count_before_cancellable": 1,
      "percent_discount": 1.0,
      "platform_id": "example",
      "prepaid_durations": [],
      "selectable_daily_allowed": false,
      "selectable_max_interval_frequency": 1,
      "selectable_weekly_allowed": false,
      "selectable_yearly_allowed": false,
      "selection_options": [],
      "selection_type": "products",
      "shop_id": 1,
      "should_continue_prepaid": false,
      "updated_at": "example"
    }
  }
}
```

### Get subscription order

Retrieve a subscription order for a subscription by its id.

**Inputs**

- Subscription (`subscription_id`, number, required): The subscription identifier.
- Order ID (`order_id`, number, required): The order identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "base_currency": "example",
    "base_to_charged_exchange_rate": 1.0,
    "created_at": "example",
    "id": 1,
    "is_multi_currency": false,
    "order": {
      "billing_address": {
        "address_source": "platform",
        "address_use": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "country_code": "example",
        "created_at": "example",
        "customer_id": 1,
        "deleted_at": "example",
        "first_name": "example",
        "id": 1,
        "is_default": false,
        "last_name": "example",
        "phone": "example",
        "platform_customer_id": "example",
        "platform_id": "example",
        "platform_type": "bigcommerce",
        "province": "example",
        "province_code": "example",
        "shop_identifier": "example",
        "street1": "example",
        "street2": "example",
        "updated_at": "example",
        "zip": "example"
      },
      "created_at": "example",
      "currency": "example",
      "currency_charged": "example",
      "currency_format": "example",
      "currency_format_charged": "example",
      "deleted_at": "example",
      "discounts": [],
      "exchange_rate": 1.0,
      "fulfillment_status": "example",
      "id": 1,
      "line_items": [],
      "order_number": 1,
      "payment_method": "example",
      "payment_method_details": {
        "billing_address": {
          "city": "example",
          "country": "example",
          "province": "example",
          "street": "example",
          "zip": "example"
        },
        "cc_type": "example",
        "embed_url": {
          "expiry": "example",
          "url": "example"
        },
        "expiration": {
          "date": "example",
          "timezone": "example",
          "timezone_type": "example"
        },
        "is_default": false,
        "last_four": "example",
        "name": "example",
        "paypal_email": "example",
        "public_id": "example",
        "type": "credit_card",
        "update_method": "trigger_email",
        "update_url": {
          "expiry": "example",
          "url": "example"
        }
      },
      "placed_at": "example",
      "platform_customer_id": 1,
      "platform_id": 1,
      "shipping_addresses": [],
      "shipping_method": "example",
      "shipping_rates": [],
      "shipping_subtotal": 1,
      "shipping_subtotal_charged": 1,
      "shipping_tax": 1,
      "shipping_tax_charged": 1,
      "shop_identifier": "example",
      "source": "example",
      "subscription_id": 1,
      "subtotal": 1,
      "subtotal_charged": 1,
      "subtotal_tax": 1,
      "subtotal_tax_charged": 1,
      "tax_lines": [],
      "test": false,
      "total": 1,
      "total_charged": 1,
      "total_tax": 1,
      "total_tax_charged": 1,
      "updated_at": "example",
      "url": "example"
    },
    "shop_id": 1,
    "subscription_id": 1,
    "updated_at": "example"
  }
}
```

### Get webhook event

Retrieve a webhook event by its id.

**Inputs**

- Webhook event ID (`webhook_event_id`, number, required): The webhook event identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "webhook_event": {
      "attempts": 1,
      "created_at": "example",
      "deleted_at": "example",
      "delivered_at": "example",
      "id": 1,
      "last_response_status_code": "example",
      "shop_id": 1,
      "updated_at": "example",
      "uuid": "example",
      "webhook_subscription_id": 1,
      "webhook_topic_id": 1
    }
  }
}
```

### List customer addresses

Retrieve a list of addresses for a customer.

**Inputs**

- Customer ID (`customer_id`, number, required): The customer identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List customer subscriptions

Retrieve a list of subscriptions for a single customer.

**Inputs**

- Customer ID (`customer_id`, number, required): The customer identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "pagination": {
      "count": 1,
      "current_page": 1,
      "per_page": 1,
      "total": 1,
      "total_pages": 1
    },
    "subscriptions": []
  }
}
```

### List customers

Retrieve a list of customers.

**Inputs**

- Search (`search`, text): Search with a specific target. It's possible to search by subscription ID or phone number.
- Status (`status`, text): Customer status to filter. One of: `all`, `active`, `inactive`. Default: `all`.
- Limit (`limit`, number): The maximum number of results to be returned. Default: `50`.
- Page (`page`, number): The page to request. Default: `1`.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List future orders

List future orders.

**Inputs**

- Limit (`limit`, number): The maximum number of results to be returned. Default: `50`.
- Filter (`filter`, text): Filter future orders. Accepts filtering options as described in the [Query and Pagination](/guides/subscriptions-v2/resources/query-pagination) reference.
- Subscription filter (`subscription_filter`, text): Subscription filter.
- Cursor (`cursor`, text): A Base-64 encoded cursor. Used to get a page of data on a cursor paginated request. Obtained from the response of a previous request.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "future_orders": [],
    "pagination": {
      "count": 1,
      "next": "example"
    }
  }
}
```

### List selection options

List selection options.

**Inputs**

- Cursor (`cursor`, text): A base 64 encoded cursor.
- Filter (`filter`, text): Accepts filtering options as described on the [Query & Pagination page](/guides/subscriptions-v2/resources/query-pagination).
- Expand (`expand`, text): Fields to expand on the selection options. Currently accepts `subscription_group` and `products`
- Limit (`limit`, number): Limit the number of returned items.
- Latest (`latest`, true/false): Latest. Default: `false`.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "pagination": {
      "next": "example",
      "prev": "example"
    },
    "selection_options": []
  }
}
```

### List subscription adjustments

Lists adjustments for a subscription or its orders.

**Inputs**

- Filter (`filter`, text): Filter.
- Subscription (`subscription_id`, number, required): The subscription identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List subscription future orders

List subscription future orders.

**Inputs**

- Limit (`limit`, number): The maximum number of results to be returned. Default: `50`.
- Filter (`filter`, text): Filter future orders. Accepts filtering options as described in the [Query and Pagination](/guides/subscriptions-v2/resources/query-pagination) reference.
- Cursor (`cursor`, text): A Base-64 encoded cursor. Used to get a page of data on a cursor paginated request. Obtained from the response of a previous request.
- Subscription (`subscription_id`, number, required): The subscription identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "future_orders": [],
    "pagination": {
      "count": 1,
      "next": "example"
    }
  }
}
```

### List subscription groups

Retrieve a list of subscription groups.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List subscription intervals

Retrieve a list of available intervals for a subscription.

**Inputs**

- Subscription (`subscription_id`, number, required): The subscription identifier.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List subscription orders

Retrieve a list of subscription orders for a subscription.

**Inputs**

- Subscription (`subscription_id`, number, required): The subscription identifier.
- Page (`page`, number): The desired page number for the paginated result
- Limit (`limit`, number): Maximum number of results to be returned

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List subscriptions

Retrieve a list of subscriptions.

**Inputs**

- Subscription status (`subscription_status`, text): Status of the subscriptions returned. Multiple statuses can be passed as an array.
- Bold platform customer ID (`bold_platform_customer_id`, text): Customer Id of the subscriptions returned. Multiple customer ids can be passed as an array.
- Expand (`expand`, text): Fields to expand on the subscription. Multiple fields can be passed as an array. One of: `customer`.
- Limit (`limit`, number): Maximum number of results to be returned
- Filter (`filter`, text): Filter.
- Cursor (`cursor`, text): Returns the next page of results if supplied the `next` value from the previous pagination results.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

```json
{
  "data": {
    "pagination": {
      "count": 1,
      "next": "example",
      "per_page": 1,
      "total": 1,
      "total_pages": 1
    },
    "subscriptions": []
  }
}
```

### List webhook events

Retrieve a list of webhook events.

**Inputs**

- Since ID (`since_id`, number): Since id.
- Limit (`limit`, text): Maximum number of results to be returned
- Filters (`filters`, list): Filter event webhooks. Mulitple filters can be passed in the array. One or more of: `shop_id` (Shop id), `webhook_subscription_id` (Webhook subscription id), `webhook_topic_id` (Webhook topic id), `uuid`, `attempts`, `last_response_status_code` (Last response status code), `id`, `created_at` (Created at), `updated_at` (Updated at), `delivered_at` (Delivered at).

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List webhook subscriptions

Retrieve a list of webhook subscriptions.

**Inputs**

- Since ID (`since_id`, number): Since id.
- Limit (`limit`, text): Maximum number of results to be returned
- Filters (`filters`, list): Filter subscription webhooks. Multiple filters can be passed in the array. One or more of: `webhook_topic_id` (Webhook topic id), `callback_url` (Callback url), `shared_secret` (Shared secret), `created_at` (Created at), `updated_at` (Updated at).

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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

### List webhook topics

Retrieve a list of available webhook topics.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Bold Subscriptions.

**Example output**

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