---
title: API Overview 
slug: xero/api-overview
description: Learn how to make requests to Xero via Breadwinner using the Global Class BreadwinnerXeroAPI. This document will guide you through the necessary steps, including using the required namespace "bread_winner." The class includes a static global method called
docTags: 
createdAt: 2021-11-02T06:19:53.000Z
---

### Global Class

BreadwinnerXeroAPI is a global class that can be used to make requests to Xero via Breadwinner. As it is a part of the managed package, you must prepend the namespace "bread\_winner".

### Methods

The method `call (Map<String, Object> request)` is a static global method within the `BreadwinnerXeroAPI` class, which can be used to make an API request.

:::CodeblockTabs
Format

```apex
bread_winner.BreadwinnerXeroAPI.call(Map<String, Object> request);
```
:::

Breadwinner accepts the request data in the form of `Map<String, Object>`, and returns the response data as a `Map<String, Object>`, thus making the requests and responses dynamic.

For more information, please refer to the Example Requests and Responses section.

Note: This is a synchronous method, it will make HTTP callouts. So, to access BreadwinnerXeroAPI.Call() method asynchronously, please annotate the method you are calling from with the Future(callout=true), or use Queueable Apex.&#x20;

:::CodeblockTabs
Example

```apex
@Future(callout=true)
public static void createXeroContact{
       bread_winner.BreadwinnerXeroAPI.call(Map<String, Object> request);
}
```
:::

### Data in List Format

All data is sent and received via a list format, including single record responses. This applies to both the request and the response.

