# list buyers

`GET https://api.suger.cloud/org/{orgId}/buyer`

list buyers by the given organization with pagination and optional filters.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `orgId` | path | string | yes | Organization ID |
| `partner` | query | string | no | filter by partner |
| `emailDomain` | query | string | no | filter by email domain |
| `awsAccountId` | query | string | no | filter by awsAccountId |
| `limit` | query | integer | no | List pagination size, default 1000, max value is 1000 |
| `offset` | query | integer | no | List pagination offset, default 0 |

## Responses

### 200 — OK

Content-Type: `application/json`

**`IdentityBuyer`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `companyID` | string | no |  |
| `contactIds` | array<string> | no |  |
| `creationTime` | string | no |  |
| `description` | string | no |  |
| `externalID` | string | no |  |
| `id` | string | no |  |
| `info` | BuyerInfo | no |  |
| `lastUpdateTime` | string | no |  |
| `name` | string | no |  |
| `organizationID` | string | no |  |
| `partner` | Partner | no |  |
| `s3KeyLogo` | string | no |  |
| `tags` | array<string> | no |  |

**`BuyerInfo`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `adyenBuyer` | AdyenBuyer | no |  |
| `awsBuyer` | AwsAccountIdentifier | no |  |
| `azureBuyer` | AzureADIdentifier | no |  |
| `chargebeeCustomerID` | string | no | ChargebeeCustomerID is the chargebee customer ID for ther buyer if it is connected to a chargebee customer. |
| `collectableAmount` | number | no | The amount that the seller can collect. It excludes the marketplace commision fee. |
| `companyInfo` | CompanyInfo | no |  |
| `cppoInOfferCount` | integer | no | The number of CPPO_IN offers related to the buyer. |
| `cppoOutOfferCount` | integer | no | The number of CPPO_OUT offers related to the buyer. |
| `customerId` | string | no | customerID of buyer on seller's side |
| `disbursedAmount` | number | no | The amount that has been disbursed to the seller account. |
| `emailAddress` | string | no | The email address of the buyer. This was copied from the new client signup form. |
| `enrichedCompanyInfo` | Company | no |  |
| `entitlementCount` | integer | no | The number of entitlements related to the buyer. |
| `fields` | object | no | Fields to store key-value pairs of buyer information. |
| `gcpBuyer` | GcpMarketplaceUserAccount | no |  |
| `grossAmount` | number | no | The gross amount that the buyer has committed to pay, including usage metered amount. |
| `invoicedAmount` | number | no | The amount that the buyer has got invoiced. |
| `lagoCustomerId` | string | no | The lgo customer ID for the buyer if it is connected to a lago customer. |
| `lastModifiedBy` | string | no | Last modifier user ID. |
| `metronomeCustomerId` | string | no | The metronome customer ID for the buyer if it is connected to a metronome customer. |
| `offerCount` | integer | no | The number of offers related to the buyer. |
| `oracleBuyer` | OracleMarketplaceBuyer | no |  |
| `orbCustomerId` | string | no | The orb customer ID for the buyer if it is connected to a orb customer. |
| `paymentConfig` | PaymentConfig | no |  |
| `quickbooksCustomerId` | string | no | The quickbooks customer ID for the buyer if it is connected to a quickbooks customer. |
| `snowflakeBuyer` | SnowflakeMarketplaceBuyer | no |  |
| `spaUrl` | string | no | Buyer SPA url, public page visited with jwt. |
| `stripeBuyer` | StripeCustomer | no |  |
| `stripeCustomerId` | string | no | The stripe customer ID for the buyer if it is connected to a stripe customer. |

**`AdyenBuyer`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `settings` | object | no | Settings store key-value pairs such as paymentMethodId,syncWithProvider,providerPaymentMethods. |
| `shopperId` | string | no | The shopperId on the adyen platform corresponding to the buyer. |

**`AwsAccountIdentifier`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `awsAccountID` | string | no | The AWS Account ID of the buyer in AWS Marketplace |
| `awsCustomerID` | string | no | The AWS Customer ID of the buyer in AWS Marketplace |
| `dataFeedAccountID` | string | no | The Account ID in AWS Marketplace Data Feed service |

**`AzureADIdentifier`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `billingAccountId` | string | no | Azure Billing Account ID |
| `customerId` | string | no |  |
| `emailId` | string | no | Email address |
| `firstName` | string | no |  |
| `lastName` | string | no |  |
| `licenseType` | string | no | Azure License Type |
| `objectId` | string | no |  |
| `puid` | string | no | ID of the user, used as External ID of suger IdentityBuyer. |
| `sellerId` | string | no | Azure MPO seller ID |
| `tenantId` | string | no | The Azure Active Directory Tenant ID of the buyer or the reseller partner ID (the same as TenantId). |

**`CompanyInfo`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `addressLine1` | string | no |  |
| `addressLine2` | string | no |  |
| `city` | string | no |  |
| `country` | string | no |  |
| `emailDomain` | string | no |  |
| `name` | string | no |  |
| `postalCode` | string | no |  |
| `state` | string | no |  |
| `validFrom` | string | no | When the company info becomes valid. in format "2006-01-02T15:04:05Z" |

**`Company`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `city` | string | no |  |
| `contactEmail` | string | no | Contact |
| `country` | string | no | Location information |
| `creationTime` | string | no | Timestamps |
| `domain` | string | no |  |
| `employeeCount` | integer | no |  |
| `foundedYear` | string | no |  |
| `id` | string | no | Core identification fields |
| `industry` | string | no |  |
| `isVendor` | boolean | no | Vendor flag |
| `lastUpdateTime` | string | no |  |
| `linkedIn` | string | no | The link to the linkedin profile |
| `metaInfo` | CompanyMetaInfo | no |  |
| `name` | string | no | Basic company information |
| `partnerGlobalCompanyContactIds` | array<string> | no | Partner contacts associated with this buyer company (array of global_company_contact.id values) |
| `postalCode` | string | no |  |
| `s3KeyLogo` | string | no | Media and social |
| `shortDescription` | string | no |  |
| `stateProvince` | string | no |  |
| `status` | EnrichmentDataStatus | no |  |
| `street` | string | no |  |
| `type` | string | no | Private, Public, Nonprofit, Franchise |
| `website` | string | no |  |

**`GcpMarketplaceUserAccount`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `approvals` | array<GcpMarketplaceUserAccountApproval> | no | The approvals for this account, that are permitted or have been completed. |
| `billingAccountId` | string | no | The buyer's GCP billing account ID if it's a company account. |
| `createTime` | string | no | RFC3339 UTC timestamp |
| `id` | string | no | GCP Marketplace User Account ID. |
| `inputProperties` | array<integer> | no |  |
| `name` | string | no | The resource name of the account, in format of providers/{provider_id}/accounts/{account_id}. |
| `parentBillingAccountId` | string | no | The parent account ID of the BillingAccountId if the buyer is from a reseller in GCP Marketplace. It is the GCP billing account ID of the reseller in GCP Marketplace. |
| `provider` | string | no | The identifier of the service provider (SaaS Seller) that this account was created against. |
| `state` | GcpMarketplaceUserAccountState | no |  |
| `updateTime` | string | no | RFC3339 UTC timestamp |
| `userInfo` | GcpUserInfo | no |  |

**`OracleMarketplaceBuyer`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `companyName` | string | no | CompanyName is the buyer's company name. |
| `primaryContact` | OracleContact | no |  |
| `tenancyOCID` | string | no | TenancyOCID is the buyer's tenancy OCID (Offer.buyerCompartmentId). |

**`PaymentConfig`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `allowedWalletTypes` | array<BillingWalletType> | no | Allowed wallet types for this buyer, include payment methods from payment provider such as card, us_bank_account and credit. |
| `currency` | string | no | Currency used for billing. |
| `defaultWalletId` | string | no | Default wallet id which is a stripe payment method used to invoice. |

**`SnowflakeMarketplaceBuyer`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `snowflakeCustomerID` | string | no | The customer ID of the buyer in Snowflake Marketplace. |

**`StripeCustomer`** fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | StripeCustomerAddress | no |  |
| `description` | string | no |  |
| `email` | string | no |  |
| `id` | string | no | The customer ID on the stripe platform. |
| `metadata` | object | no | Set of key-value pairs that you can attach to store additional information about customer. |
| `name` | string | no |  |
| `phone` | string | no |  |

### 500 — Internal Server Error

---

Interactive API reference: https://doc.suger.io/api/
