<div class="doc-version" data-version="unstable"> <p>Represents information about a company which is also a customer of the shop.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-unstable"> Fields </a> </li> <li> <a href="#types-that-return-company-unstable"> Types that return Company </a> </li> <li> <a href="#implements-unstable"> Implements </a> </li> </ul> </div> <h2 id="fields-unstable"> Fields </h2> <ul class="fields"> <li> <div class="field" id="createdat-unstable"> <div class="field-name"> createdAt (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#datetime-unstable"><code>DateTime!</code></a>) </div> <div> <p>The date and time (<a href="http://en.wikipedia.org/wiki/ISO_8601">ISO 8601 format</a>) at which the company was created in Shopify.</p> </div> </div> </li> <li> <div class="field" id="externalid-unstable"> <div class="field-name"> externalId (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#string-unstable"><code>String</code></a>) </div> <div> <p>A unique externally-supplied ID for the company.</p> </div> </div> </li> <li> <div class="field" id="id-unstable"> <div class="field-name"> id (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#id-unstable"><code>ID!</code></a>) </div> <div> <p>The ID of the company.</p> </div> </div> </li> <li> <div class="field" id="metafield-unstable"> <div class="field-name"> metafield (<a href="/api/functions/reference/discounts-allocator/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#string-unstable"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#string-unstable"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="name-unstable"> <div class="field-name"> name (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#string-unstable"><code>String!</code></a>) </div> <div> <p>The name of the company.</p> </div> </div> </li> <li> <div class="field" id="updatedat-unstable"> <div class="field-name"> updatedAt (<a href="/api/functions/reference/discounts-allocator/graphql/scalar#datetime-unstable"><code>DateTime!</code></a>) </div> <div> <p>The date and time (<a href="http://en.wikipedia.org/wiki/ISO_8601">ISO 8601 format</a>) at which the company was last modified.</p> </div> </div> </li> </ul> <h2 id="types-that-return-company-unstable"> Types that return Company </h2> <ul> <li> <a href="/api/functions/reference/discounts-allocator/graphql/common-objects/purchasingcompany#company-unstable"> <code>PurchasingCompany.company</code> </a> </li> </ul> <h2 id="implements-unstable">Implements</h2> <ul> <li> <a href="/api/functions/reference/discounts-allocator/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div>