# Handwrytten

> Browse handwritten cards, fonts, mailing options, saved addresses and order details in Handwrytten.

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

## Actions

### Get account

Get account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 200,
    "id": 1,
    "status": "ok"
  }
}
```

### Get basket count

Get basket count.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "httpCode": 1,
    "status": "example"
  }
}
```

### Get card

Get card.

**Inputs**

- Card (`card_id`, number, required): Card id.
- Lowres (`lowres`, true/false): Lowres.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "card": {
      "available_free": true,
      "category_id": 1,
      "category_name": "example",
      "characters": 1,
      "closed_height": 1,
      "closed_width": 1,
      "cover": "example",
      "cover_height": 1,
      "cover_width": 1,
      "description": "example",
      "details_author": "example",
      "details_envelope": "example",
      "details_size": "example",
      "font_size": 1,
      "height": 1,
      "id": 1,
      "images": {
        "back": [
          {}
        ],
        "envelope": [
          {}
        ],
        "front": [
          {}
        ],
        "inside": [
          {}
        ]
      },
      "isCustomized": true,
      "margin_bottom": 1,
      "margin_left": 1,
      "margin_right": 1,
      "margin_top": 1,
      "name": "example",
      "open_height": 1,
      "open_width": 1,
      "orientation": "example",
      "price": 1,
      "width": 1
    },
    "httpCode": 1,
    "status": "example"
  }
}
```

### Get order

Get order.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "order": {
      "address_from": {
        "address1": "example",
        "address2": "example",
        "address_id": 1,
        "anniversary": "example",
        "basket_id": 1,
        "birthday": "example",
        "business_name": "example",
        "city": "example",
        "country": "example",
        "country_id": 1,
        "country_obj": {},
        "date_created": "example",
        "date_updated": "example",
        "delivery_cost": 1,
        "ext_id": 1,
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "name": "example",
        "order_id": 1,
        "state": "example",
        "type": "user_from",
        "user_id": 1,
        "zip": 1
      },
      "address_to": {},
      "basket_id": 1,
      "card": {
        "category_id": 1,
        "cover": "example",
        "delivery_cost": 1,
        "id": 1,
        "name": "example",
        "price": 1,
        "price_orig": 1,
        "quantity": 1
      },
      "card_category_name": "example",
      "card_cover": "example",
      "card_dimensions": {
        "closed_height": "example",
        "closed_width": "example",
        "font_size": "example",
        "half_inside": "example",
        "margin_bottom": "example",
        "margin_left": "example",
        "margin_right": "example",
        "margin_top": "example"
      },
      "card_name": "example",
      "childs": [
        {}
      ],
      "date_created": 1,
      "date_day": "example",
      "date_month": "example",
      "date_send": "example",
      "date_year": "example",
      "delivery_cost": 1,
      "font": "example",
      "fontInfo": {
        "font_eot_file": "example",
        "font_file": "example",
        "font_name": "example",
        "id": "example",
        "image": "example",
        "label": "example",
        "on_custom": "example",
        "sort": "example",
        "user_group_id": "example",
        "visible": "example"
      },
      "for_free": true,
      "id": 1,
      "is_bulk": 1,
      "message": "example",
      "message_orig": "example",
      "multiaddress": 1,
      "notes": "example",
      "payed": 1,
      "price": 1,
      "quantity": 1,
      "refund_status": 1,
      "signature2_id": 1,
      "signature2_preview": "example",
      "signature_id": 1,
      "signature_preview": "example",
      "status": "example",
      "tax": "example",
      "test_mode": 1,
      "used_credit": 1,
      "wishes": "example"
    },
    "status": "example"
  }
}
```

### Get sender address

Get sender address.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billing_info": {
      "address": "example",
      "country": "example",
      "country_id": 1,
      "zip": "example"
    },
    "httpCode": 1,
    "status": "example",
    "subscription": {
      "delivery_cost": 1,
      "id": 1,
      "name": "example"
    }
  }
}
```

### List bundles

List bundles.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bundles": [
      {
        "delivery_cost": "example",
        "description": "example",
        "id": 1,
        "image_url": "example",
        "name": "example",
        "price": "example",
        "quantity": 1,
        "sort_no": 1,
        "weight": "example"
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List card categories

List card categories.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "categories": [
      {
        "checked": true,
        "icon": "example",
        "id": 1,
        "meta_description": "example",
        "meta_title": "example",
        "name": "example",
        "slug": "example",
        "taxonomy": "example"
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List card sections

List card sections.

**Inputs**

- Category (`category_id`, number): Category id.
- With images (`with_images`, true/false): With images.
- With detailed images (`with_detailed_images`, true/false): With detailed images.
- Page (`page`, number): Page.
- Lowres (`lowres`, true/false): Lowres.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cards": [
      {
        "id": 1,
        "key": "example",
        "value": [
          {}
        ]
      }
    ],
    "discount": 1,
    "httpCode": 1,
    "status": "example"
  }
}
```

### List cards

List cards.

**Inputs**

- Category (`category_id`, number): Category id.
- With images (`with_images`, true/false): With images.
- With detailed images (`with_detailed_images`, true/false): With detailed images.
- Page (`page`, number): Page.
- Lowres (`lowres`, true/false): Lowres.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cards": [
      {
        "available_free": true,
        "category_id": 1,
        "category_name": "example",
        "category_taxonomy": "example",
        "characters": 1,
        "closed_height": 1,
        "closed_width": 1,
        "cover": "example",
        "cover_height": 1,
        "cover_width": 1,
        "customCardInfo": {},
        "description": "example",
        "details_author": "example",
        "details_envelope": "example",
        "details_size": "example",
        "font_size": 1,
        "id": 1,
        "inside_image": "example",
        "isCustom": true,
        "margin_bottom": 1,
        "margin_left": 1,
        "margin_right": 1,
        "margin_top": 1,
        "name": "example",
        "open_height": 1,
        "open_width": 1,
        "orientation": "example",
        "price": 1
      }
    ],
    "httpCode": 1,
    "pagination": {
      "is_last": true,
      "next": 1,
      "per_page": 1
    },
    "status": "example"
  }
}
```

### List countries

List countries.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "countries": [
      {
        "aliases": "example",
        "delivery_cost": "example",
        "id": "example",
        "name": "example",
        "states": {}
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List fonts

List fonts.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "fonts": [
      {
        "id": "example",
        "image": "example",
        "label": "example",
        "last_used": "example",
        "line_spacing": 1,
        "path": "example"
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List gift cards

List gift cards.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "gcards": [
      {
        "denominations": [
          {}
        ],
        "id": 1,
        "image": "example",
        "name": "example"
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List inserts

List inserts.

**Inputs**

- Include historical (`include_historical`, true/false): Include historical.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "inserts": [
      {
        "group_id": 1,
        "id": 1,
        "name": "example",
        "price": 1,
        "user_id": 1
      }
    ],
    "status": "example"
  }
}
```

### List qr codes

List qr codes.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "list": [
      {
        "id": 1,
        "name": "example",
        "url": "example"
      }
    ],
    "status": "example"
  }
}
```

### List recipients

List recipients.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "addresses": [
      {
        "address1": "example",
        "address2": "example",
        "address_id": 1,
        "anniversary": "example",
        "basket_id": 1,
        "birthday": "example",
        "business_name": "example",
        "city": "example",
        "country": "example",
        "country_id": 1,
        "country_obj": {},
        "date_created": "example",
        "date_updated": "example",
        "delivery_cost": 1,
        "ext_id": 1,
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "name": "example",
        "order_id": 1,
        "state": "example",
        "type": "user_from",
        "user_id": 1,
        "zip": 1
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List sender addresses

List sender addresses.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "addresses": [
      {
        "address1": "example",
        "address2": "example",
        "address_id": 1,
        "anniversary": "example",
        "basket_id": 1,
        "birthday": "example",
        "business_name": "example",
        "city": "example",
        "country": "example",
        "country_id": 1,
        "country_obj": {},
        "date_created": "example",
        "date_updated": "example",
        "delivery_cost": 1,
        "ext_id": 1,
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "name": "example",
        "order_id": 1,
        "state": "example",
        "type": "user_from",
        "user_id": 1,
        "zip": 1
      }
    ],
    "httpCode": 1,
    "status": "example"
  }
}
```

### List signatures

List signatures.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "signatures": [
      {
        "id": 1,
        "preview": "example"
      }
    ],
    "status": "example"
  }
}
```

### List stamp options

List stamp options.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "stamp_options": [
      {
        "description": "example",
        "id": 1,
        "label": "example"
      }
    ],
    "status": "example"
  }
}
```

### List states

List states.

**Inputs**

- Country (`country_id`, number, required): Country id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "states": [
      {
        "id": 1,
        "name": "example",
        "short_name": "example"
      }
    ],
    "status": "example"
  }
}
```

### Place a card order

Send a handwritten card to one recipient with the selected design, handwriting and mailing details.

**Inputs**

- Card (`card_id`, number, required): Card id.
- Denomination ID (`denomination_id`, number): Denomination id.
- Message (`message`, text, required): Message.
- Wishes (`wishes`, text): Wishes.
- Font label (`font_label`, text, required): Font label.
- Insert ID (`insert_id`, number): Insert id.
- Bundle ID (`bundle_id`, number): Bundle id.
- Coupon code (`coupon_code`, text): Coupon code.
- Date send (`date_send`, date): Date to send the card.
- Validate address (`validate_address`, true/false): Validate address.
- Delivery confirmation (`delivery_confirmation`, number): Delivery confirmation. One of: `0` (None), `1` (Delivery confirmation), `2` (CASS address validation only).
- Stamp option ID (`stamp_option_id`, number): Stamp option id.
- Sender first name (`sender_first_name`, text): Sender first name.
- Sender last name (`sender_last_name`, text): Sender last name.
- Sender business name (`sender_business_name`, text): Sender business name.
- Sender address1 (`sender_address1`, text, required): Sender address1.
- Sender address2 (`sender_address2`, text): Sender address2.
- Sender city (`sender_city`, text, required): Sender city.
- Sender zip (`sender_zip`, text, required): Sender zip.
- Sender state (`sender_state`, text): Sender state.
- Sender country (`sender_country_id`, number): Sender country id.
- Recipient first name (`recipient_first_name`, text): Recipient first name.
- Recipient last name (`recipient_last_name`, text): Recipient last name.
- Recipient business name (`recipient_business_name`, text): Recipient business name.
- Recipient address1 (`recipient_address1`, text, required): Recipient address1.
- Recipient address2 (`recipient_address2`, text): Recipient address2.
- Recipient city (`recipient_city`, text, required): Recipient city.
- Recipient zip (`recipient_zip`, text, required): Recipient zip.
- Recipient state (`recipient_state`, text): Recipient state.
- Recipient country (`recipient_country_id`, number): Recipient country id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "httpCode": 1,
    "mail_sent": 0,
    "order_id": 1,
    "status": "example"
  }
}
```
