# SumUp

> Read merchant transactions, payouts, checkouts, sales, and card readers.

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

## Actions

### Get checkout

Get checkout.

**Inputs**

- Checkout ID (`checkout_id`, text, required): SumUp-generated `id` returned when creating a checkout. Use this value to retrieve, update, process, or deactivate the checkout.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "amount": 1,
    "checkout_reference": "example",
    "currency": "BRL",
    "customer_id": "example",
    "date": "example",
    "description": "example",
    "hosted_checkout_url": "example",
    "id": "example",
    "mandate": {
      "merchant_code": "example",
      "status": "active",
      "type": "example"
    },
    "merchant_code": "example",
    "merchant_name": "example",
    "payment_instrument": {
      "token": "example"
    },
    "redirect_url": "example",
    "return_url": "example",
    "status": "PENDING",
    "transaction_code": "example",
    "transaction_id": "example",
    "transactions": [
      {
        "amount": 1,
        "auth_code": "example",
        "currency": "BRL",
        "entry_mode": "CUSTOMER_ENTRY",
        "id": "example",
        "installments_count": 1,
        "merchant_code": "example",
        "payment_type": "CASH",
        "status": "SUCCESSFUL",
        "timestamp": "example",
        "tip_amount": 1,
        "transaction_code": "example",
        "vat_amount": 1
      }
    ],
    "valid_until": "example"
  }
}
```

### Get member

Get member.

**Inputs**

- Member ID (`member_id`, text, required): The ID of the member to retrieve.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "attributes": {},
    "created_at": "example",
    "id": "example",
    "invite": {
      "email": "example",
      "expires_at": "example"
    },
    "metadata": {},
    "permissions": [
      "example"
    ],
    "roles": [
      "example"
    ],
    "status": "accepted",
    "updated_at": "example",
    "user": {
      "classic": {
        "user_id": 1
      },
      "disabled_at": "example",
      "email": "example",
      "id": "example",
      "mfa_on_login_enabled": true,
      "nickname": "example",
      "picture": "example",
      "service_account_user": true,
      "type": "user",
      "virtual_user": true
    }
  }
}
```

### Get merchant

Get merchant.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alias": "example",
    "avatar": "example",
    "business_profile": {
      "address": {
        "autonomous_community": "example",
        "city": "example",
        "commune": "example",
        "country": "example",
        "county": "example",
        "department": "example",
        "district": "example",
        "eircode": "example",
        "municipality": "example",
        "neighborhood": "example",
        "post_code": "example",
        "post_town": "example",
        "province": "example",
        "region": "example",
        "state": "example",
        "street_address": [
          "example"
        ],
        "zip_code": "example"
      },
      "branding": {
        "background_color": "example",
        "footer_text": "example",
        "hero": "example",
        "icon": "example",
        "logo": "example",
        "primary_color": "example",
        "primary_color_fg": "example",
        "secondary_color": "example",
        "secondary_color_fg": "example"
      },
      "dynamic_descriptor": "example",
      "email": "example",
      "name": "example",
      "phone_number": "example",
      "website": "example"
    },
    "business_type": "example",
    "change_status": "example",
    "classic": {
      "id": 1
    },
    "company": {
      "address": {
        "autonomous_community": "example",
        "city": "example",
        "commune": "example",
        "county": "example",
        "department": "example",
        "district": "example",
        "eircode": "example",
        "municipality": "example",
        "neighborhood": "example",
        "post_code": "example",
        "post_town": "example",
        "province": "example",
        "region": "example",
        "state": "example",
        "street_address": [
          {}
        ],
        "zip_code": "example"
      },
      "attributes": {},
      "identifiers": [
        {
          "ref": "example",
          "value": "example"
        }
      ],
      "legal_type": "example",
      "merchant_category_code": "example",
      "name": "example",
      "phone_number": "example",
      "trading_address": {
        "autonomous_community": "example",
        "city": "example",
        "commune": "example",
        "county": "example",
        "department": "example",
        "district": "example",
        "eircode": "example",
        "municipality": "example",
        "neighborhood": "example",
        "post_code": "example",
        "post_town": "example",
        "province": "example",
        "region": "example",
        "state": "example",
        "street_address": [
          {}
        ],
        "zip_code": "example"
      },
      "website": "example"
    },
    "country": "example",
    "created_at": "example",
    "default_currency": "example",
    "default_locale": "example",
    "merchant_code": "example",
    "meta": {},
    "organization_id": "example",
    "sandbox": true,
    "updated_at": "example",
    "version": "example"
  }
}
```

### Get person

Get person.

**Inputs**

- Person ID (`person_id`, text, required): Person ID

**Outputs**

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

**Example output**

```json
{
  "data": {
    "address": {
      "autonomous_community": "example",
      "city": "example",
      "commune": "example",
      "country": "example",
      "county": "example",
      "department": "example",
      "district": "example",
      "eircode": "example",
      "municipality": "example",
      "neighborhood": "example",
      "post_code": "example",
      "post_town": "example",
      "province": "example",
      "region": "example",
      "state": "example",
      "street_address": [
        "example"
      ],
      "zip_code": "example"
    },
    "birthdate": "example",
    "change_status": "example",
    "citizenship": "example",
    "country_of_residence": "example",
    "family_name": "example",
    "given_name": "example",
    "id": "example",
    "identifiers": [
      {
        "ref": "example",
        "value": "example"
      }
    ],
    "nationality": "example",
    "ownership": {
      "share": 1
    },
    "phone_number": "example",
    "relationships": [
      "example"
    ],
    "user_id": "example",
    "version": "example"
  }
}
```

### Get reader

Get reader.

**Inputs**

- Reader ID (`reader_id`, text, required): The unique identifier of the reader.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "device": {
      "identifier": "example",
      "model": "solo"
    },
    "id": "example",
    "metadata": {},
    "name": "example",
    "service_account_id": "example",
    "status": "unknown",
    "updated_at": "example"
  }
}
```

### Get reader settings

Get reader settings.

**Inputs**

- Reader ID (`reader_id`, text, required): The unique identifier of the reader.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "menu_lock": {
        "enabled": true,
        "passcode": "example"
      }
    }
  }
}
```

### Get reader status

Get reader status.

**Inputs**

- Reader ID (`reader_id`, text, required): The unique identifier of the Reader

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "battery_level": 1,
      "battery_temperature": 1,
      "connection_type": "btle",
      "firmware_version": "example",
      "last_activity": "example",
      "state": "IDLE",
      "status": "ONLINE"
    }
  }
}
```

### Get role

Get role.

**Inputs**

- Role ID (`role_id`, text, required): The ID of the role to retrieve.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "description": "example",
    "id": "example",
    "is_predefined": true,
    "metadata": {},
    "name": "example",
    "permissions": [
      "example"
    ],
    "updated_at": "example"
  }
}
```

### Get sale

Get sale.

**Inputs**

- Sale ID (`sale_id`, text, required): The sale ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "closed_at": "example",
    "created_at": "example",
    "currency": {
      "code": "example",
      "scale": 1
    },
    "id": "example",
    "items": [
      {
        "categories": [
          {}
        ],
        "features": [
          {}
        ],
        "id": "example",
        "modifiers": [
          {}
        ],
        "name": "example",
        "note": "example",
        "price": {
          "discounts": [
            {}
          ],
          "taxes": [
            {}
          ],
          "taxes_final": [
            {}
          ],
          "total_gross_amount": 1,
          "total_gross_amount_final": 1,
          "total_net_amount": 1,
          "total_net_amount_final": 1,
          "unit_amount": 1
        },
        "quantity": 1,
        "references": {
          "catalog_reference": "example",
          "catalog_source": "SUMUP",
          "external_id": "example",
          "sku": "example"
        },
        "service_type": "IN_HOUSE",
        "type": "example",
        "unit_of_measure": {
          "group_id": "example",
          "unit_id": "example",
          "unit_ratio": 1
        }
      }
    ],
    "name": "example",
    "note": "example",
    "payments": [
      {
        "amount": 1,
        "apm_type": "example",
        "card": {
          "brand": "example",
          "last_4_digits": "example",
          "type": "credit"
        },
        "gift_card": {
          "id": "example"
        },
        "method": "example",
        "processed_at": "example",
        "reference": "example",
        "status": "FAILED",
        "type": "example"
      }
    ],
    "price": {
      "cart_discounts": [
        {
          "description": "example",
          "gross_amount": 1,
          "id": "example",
          "level": "example",
          "net_amount": 1,
          "source": {},
          "tax_amount": 1,
          "value": {}
        }
      ],
      "gross_amount": 1,
      "net_amount": 1,
      "taxes": [
        {
          "gross_amount": 1,
          "id": "example",
          "name": "example",
          "net_amount": 1,
          "percentage": 1,
          "tax_amount": 1
        }
      ]
    },
    "source": {
      "channel": "example",
      "external_id": "example",
      "external_sub_channel_id": "example",
      "sub_channel": "example"
    },
    "state": "CLOSED",
    "tax_mode": "NO_TAX",
    "user_id": "example"
  }
}
```

### Get transaction

Get transaction.

**Inputs**

- Transaction ID (`transaction_id`, text, required): Retrieves the transaction resource with the specified transaction ID (the `id` parameter in the transaction resource).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "amount": 1,
    "auth_code": "example",
    "card": {
      "last_4_digits": "example",
      "payment_account_reference": "example",
      "type": "ALELO"
    },
    "client_transaction_id": "example",
    "currency": "BRL",
    "device_info": {
      "model": "example",
      "name": "example",
      "system_name": "example",
      "system_version": "example",
      "uuid": "example"
    },
    "elv_account": {
      "iban": "example",
      "last_4_digits": "example",
      "sequence_no": 1,
      "sort_code": "example"
    },
    "entry_mode": "none",
    "events": [
      {
        "amount": 1,
        "deducted_amount": 1,
        "deducted_fee_amount": 1,
        "fee_amount": 1,
        "id": 1,
        "installment_number": 1,
        "status": "FAILED",
        "timestamp": "example",
        "transaction_id": "example",
        "type": "PAYOUT"
      }
    ],
    "fee_amount": 1,
    "foreign_transaction_id": "example",
    "horizontal_accuracy": 1,
    "id": "example",
    "installments_count": 1,
    "lat": 1,
    "links": [
      {
        "href": "example",
        "max_amount": 1,
        "min_amount": 1,
        "rel": "example",
        "type": "example"
      }
    ],
    "local_time": "example",
    "location": {
      "horizontal_accuracy": 1,
      "lat": 1,
      "lon": 1
    },
    "lon": 1,
    "merchant_code": "example",
    "merchant_id": 1,
    "payment_type": "CASH",
    "payout_date": "example",
    "payout_plan": "SINGLE_PAYMENT",
    "payout_type": "BANK_ACCOUNT",
    "payouts_received": 1,
    "payouts_total": 1,
    "process_as": "CREDIT",
    "product_summary": "example",
    "products": [
      {
        "name": "example",
        "price": 1,
        "price_label": "example",
        "price_with_vat": 1,
        "quantity": 1,
        "single_vat_amount": 1,
        "total_price": 1,
        "total_with_vat": 1,
        "vat_amount": 1,
        "vat_rate": 1
      }
    ],
    "simple_payment_type": "CASH",
    "simple_status": "SUCCESSFUL",
    "status": "SUCCESSFUL",
    "tax_enabled": true,
    "timestamp": "example",
    "tip_amount": 1,
    "transaction_code": "example",
    "transaction_events": [
      {
        "amount": 1,
        "date": "example",
        "due_date": "example",
        "event_type": "PAYOUT",
        "id": 1,
        "installment_number": 1,
        "status": "FAILED",
        "timestamp": "example"
      }
    ],
    "username": "example",
    "vat_amount": 1,
    "vat_rates": [
      {
        "gross": 1,
        "net": 1,
        "rate": 1,
        "vat": 1
      }
    ],
    "verification_method": "none"
  }
}
```

### List checkouts

List checkouts.

**Inputs**

- Checkout reference (`checkout_reference`, text): Filters checkouts by the merchant-defined `checkout_reference` supplied when creating the checkout. This is separate from the SumUp-generated checkout `id`.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "amount": 1,
      "checkout_reference": "example",
      "currency": "BRL",
      "customer_id": "example",
      "date": "example",
      "description": "example",
      "hosted_checkout_url": "example",
      "id": "example",
      "mandate": {
        "merchant_code": "example",
        "status": "active",
        "type": "example"
      },
      "merchant_code": "example",
      "merchant_name": "example",
      "payment_instrument": {
        "token": "example"
      },
      "redirect_url": "example",
      "return_url": "example",
      "status": "PENDING",
      "transaction_code": "example",
      "transaction_id": "example",
      "transactions": [
        {}
      ],
      "valid_until": "example"
    }
  ]
}
```

### List members

List members.

**Inputs**

- Offset (`offset`, number): Offset of the first member to return. At least 0.
- Limit (`limit`, number): Maximum number of members to return. From 1 to 25.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "attributes": {},
        "created_at": "example",
        "id": "example",
        "invite": {
          "email": "example",
          "expires_at": "example"
        },
        "metadata": {},
        "permissions": [
          "example"
        ],
        "roles": [
          "example"
        ],
        "status": "accepted",
        "updated_at": "example",
        "user": {
          "classic": {},
          "disabled_at": "example",
          "email": "example",
          "id": "example",
          "mfa_on_login_enabled": true,
          "nickname": "example",
          "picture": "example",
          "service_account_user": true,
          "type": "user",
          "virtual_user": true
        }
      }
    ],
    "total_count": 1
  }
}
```

### List memberships

List memberships.

**Inputs**

- Offset (`offset`, number): Offset of the first member to return. At least 0.
- Limit (`limit`, number): Maximum number of members to return. From 1 to 25.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "attributes": {},
        "created_at": "example",
        "id": "example",
        "invite": {
          "email": "example",
          "expires_at": "example"
        },
        "metadata": {},
        "permissions": [
          "example"
        ],
        "resource": {
          "attributes": {},
          "created_at": "example",
          "id": "example",
          "logo": "example",
          "name": "example",
          "type": "example",
          "updated_at": "example"
        },
        "resource_id": "example",
        "roles": [
          "example"
        ],
        "status": "accepted",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "total_count": 1
  }
}
```

### List payment methods

List payment methods.

**Inputs**

- Amount (`amount`, number): Payment amount in major units, for example `9.99` for EUR 9.99. When filtering by `amount`, also provide `currency`.
- Currency (`currency`, text): Three-letter ISO 4217 currency code for which the payment methods should be eligible, for example `EUR`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "available_payment_methods": [
      {
        "id": "example"
      }
    ]
  }
}
```

### List payouts

List payouts.

**Inputs**

- Start date (`start_date`, date, required): Start date of the payout period filter, inclusive, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) `date` format (`YYYY-MM-DD`).
- End date (`end_date`, date, required): End date of the payout period filter, inclusive, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) `date` format (`YYYY-MM-DD`). Must be greater than or equal to `start_date`.
- Limit (`limit`, number): Maximum number of payout records to return. From 1 to 9999.
- Order (`order`, text): Sort direction for the returned payouts. One of: `asc`, `desc`.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "amount": 1,
      "currency": "example",
      "date": "example",
      "fee": 1,
      "id": 1,
      "reference": "example",
      "status": "SUCCESSFUL",
      "transaction_code": "example",
      "type": "PAYOUT"
    }
  ]
}
```

### List persons

List persons.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "address": {
          "autonomous_community": "example",
          "city": "example",
          "commune": "example",
          "county": "example",
          "department": "example",
          "district": "example",
          "eircode": "example",
          "municipality": "example",
          "neighborhood": "example",
          "post_code": "example",
          "post_town": "example",
          "province": "example",
          "region": "example",
          "state": "example",
          "street_address": [
            {}
          ],
          "zip_code": "example"
        },
        "birthdate": "example",
        "change_status": "example",
        "citizenship": "example",
        "country_of_residence": "example",
        "family_name": "example",
        "given_name": "example",
        "id": "example",
        "identifiers": [
          {}
        ],
        "nationality": "example",
        "ownership": {
          "share": 1
        },
        "phone_number": "example",
        "relationships": [
          "example"
        ],
        "user_id": "example",
        "version": "example"
      }
    ]
  }
}
```

### List readers

List readers.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "created_at": "example",
        "device": {
          "identifier": "example",
          "model": "solo"
        },
        "id": "example",
        "metadata": {},
        "name": "example",
        "service_account_id": "example",
        "status": "unknown",
        "updated_at": "example"
      }
    ]
  }
}
```

### List roles

List roles.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "is_predefined": true,
        "metadata": {},
        "name": "example",
        "permissions": [
          "example"
        ],
        "updated_at": "example"
      }
    ]
  }
}
```

### List sales

List sales.

**Inputs**

- Pagination token (`pagination_token`, text): Pagination token.
- Pagination limit (`pagination_limit`, number): Maximum number of results per page. From 1 to 25.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "closed_at": "example",
        "created_at": "example",
        "currency": {
          "code": "example",
          "scale": 1
        },
        "id": "example",
        "items": [
          {}
        ],
        "name": "example",
        "note": "example",
        "payments": [
          {}
        ],
        "price": {
          "cart_discounts": [
            {}
          ],
          "gross_amount": 1,
          "net_amount": 1,
          "taxes": [
            {}
          ]
        },
        "source": {
          "channel": "example",
          "external_id": "example",
          "external_sub_channel_id": "example",
          "sub_channel": "example"
        },
        "state": "CLOSED",
        "tax_mode": "NO_TAX",
        "user_id": "example"
      }
    ],
    "pagination_token": "example"
  }
}
```

### List transactions

List transactions.

**Inputs**

- Order (`order`, text): Sort direction for the transaction history. Use `ascending` or `descending`; the default is `ascending`. One of: `ascending`, `descending`.
- Limit (`limit`, number): Maximum number of transactions per page. Must be a positive integer. Defaults to `10` when omitted; a page can contain fewer results.
- Statuses (`statuses`, list): Filters transactions by the listed final statuses. For multiple values, repeat the query parameter, for example `statuses[]=SUCCESSFUL&statuses[]=REFUNDED`. One or more of: `SUCCESSFUL`, `CANCELLED`, `FAILED`, `REFUNDED`, `CHARGE_BACK` (Charge back).
- Payment types (`payment_types`, list): Filters the returned results by the specified list of payment types used for the transactions. One or more of: `CASH`, `POS`, `ECOM`, `RECURRING`, `BITCOIN`, `BALANCE`, `MOTO`, `BOLETO`, `DIRECT_DEBIT` (Direct debit), `APM`, `UNKNOWN`.
- Changes since (`changes_since`, date and time): Changes since.
- Newest time (`newest_time`, date and time): Newest time.
- Newest ref (`newest_ref`, text): Newest ref.
- Oldest time (`oldest_time`, date and time): Oldest time.
- Oldest ref (`oldest_ref`, text): Oldest ref.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "items": [
      {
        "amount": 1,
        "card_type": "ALELO",
        "client_transaction_id": "example",
        "currency": "BRL",
        "entry_mode": "none",
        "id": "example",
        "installments_count": 1,
        "payment_type": "CASH",
        "payout_date": "example",
        "payout_plan": "SINGLE_PAYMENT",
        "payout_type": "BANK_ACCOUNT",
        "payouts_received": 1,
        "payouts_total": 1,
        "product_summary": "example",
        "refunded_amount": 1,
        "status": "SUCCESSFUL",
        "timestamp": "example",
        "transaction_code": "example",
        "transaction_id": "example",
        "type": "PAYMENT",
        "user": "example"
      }
    ],
    "links": [
      {
        "href": "example",
        "rel": "example"
      }
    ]
  }
}
```
