User Management > Accounts > Invitations > B2B

List customers

This API endpoint allows you to list all futures customers allowed for this account invitation

get/1/accounts/{account}/invitations/{invitation}/b2b

Path parameters

accountstring required
invitationstring required

Query parameters

withstring

Optional : Allows loading additional data about a resource, which may include related resources.

return'total'

Optional : If you pass this parameter with the value total, then the response will be the number of items in the collection, instead of the items themselves.<br /> Part of the total capacity

pageinteger

Optional parameter that define the page number<br /> Part of the pagination capacity

per_pageinteger

Optional parameter that define the number of items per page<br /> Part of the pagination capacity

string
OR
string[]

Optional parameter that define the field used for sorting<br /> Part of the sort capacity

order'asc' | 'desc'

Optional parameter that define the default sort order<br /> Part of the sort capacity

order_forobject

Optional parameter that define the sorting order for a field<br /> By default order is used<br /> Part of the sort capacity

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

totalinteger

Total number of items Added when using query parameter page

pageinteger

Number of the current page Added when using query parameter page

pagesinteger

Total number of pages Added when using query parameter page

items_per_pageinteger

Number of items per page Added when using query parameter page

Example response

{
  "result": "success",
  "data": [
    {
      "partner": {
        "id": 414,
        "name": "The WebAgency",
        "budget_min": 100,
        "budget_max": 2000,
        "email": "partner@infomaniak.com"
      },
      "incomes": {
        "currency": "CHF"
      },
      "discounts": {
        "currency": "CHF"
      },
      "customer": {
        "id": 1234,
        "name": "Secret Organization",
        "legal_entity_type": "company",
        "created_at": 1294959600,
        "addresses": [
          {
            "id": 1234,
            "street": "Rue Eugène-Marziano 25",
            "zip": "1227",
            "city": "Genève",
            "type": "professional",
            "created_at": 1558601584,
            "country": {
              "id": 203,
              "name": "SWITZERLAND",
              "short_name": "CH"
            }
          }
        ],
        "timezone": "Europe/Zurich",
        "website": "https://www.infomaniak.com",
        "phone": "+41790000000",
        "fax": "+41220000000",
        "locale": "fr_FR",
        "language_id": 1,
        "logo": "https://www.infomaniak.com/img/common/logo-infomaniak.svg",
        "logo_square": "https://www.infomaniak.com/img/common/logo-infomaniak.svg",
        "order": {
          "waiting_payment": 1
        },
        "support_level": 1,
        "type": "owner",
        "tags": [
          {
            "id": 1234,
            "name": "My tag name",
            "color": 4,
            "product_count": 2
          }
        ],
        "nb_invitations": 2,
        "nb_users": 2,
        "count_owners": 2
      },
      "total_payed": {
        "currency": "CHF"
      },
      "total_payed_base_price": {
        "currency": "CHF"
      }
    }
  ],
  "total": 221,
  "page": 2,
  "pages": 15,
  "items_per_page": 15
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.