Passa al contenuto principale

Company

The Company object

idId

Unique identifier for the object.

merchantIduuid

The ID of the merchant this Company belongs to, that is your own merchant.

tenantTenantMode

Has the value "live" if the object exists in live mode, or "sand" if it exists in test mode.

Possible values: [sand, live]

joinCodestring

A unique 6-character code that can be used to join or reference this Company.

Possible values: >= 6 characters and <= 6 characters

referenceIdstringnullable

The ID of the Company in your own system. Unique among your Companies, so a Payment can find the Company by it.

Possible values: <= 100 characters

namestring

Company name.

prepaidPolicy object

The prepaid policy applied to the Customers of this Company.

isActiveboolean

Indicates whether the prepaid policy is currently active.

amountint32nullable

The maximum amount, in cents, that the Customer is allowed to spend in a single Date under this policy.

hidesPricesboolean

Whether the Company hides its prices from its employees. Only with an active policy, which then pays the whole order.

packagingTypestringnullable

The packaging used by the Customers of this Company that do not set one of their own. Null when the Company follows the ecommerce site default.

Possible values: [Reusable, Disposable]

addresses object[]nullable

An array of delivery addresses associated with this Company. Each address can have specific delivery fees and store information.

  • Array [
  • idstring

    Unique identifier for the address.

    labelstringnullable

    A friendly label or name for this address (e.g., "Main Office", "Warehouse").

    streetNamestringnullable

    The street name of the address.

    streetNumberstringnullable

    The street number of the address.

    citystringnullable

    The city of the address.

    provincestringnullable

    The province or state of the address.

    postalCodestringnullable

    The postal or ZIP code of the address.

    countrystringnullable

    The country code of the address (e.g., "IT" for Italy).

    deliveryFeeAmountint32

    The delivery fee amount for this address, in cents.

    storeIdstring

    The unique identifier of the store associated with this address.

  • ]
  • metadataobjectnullable

    The fields of the Company, as you set them. A key the merchant declared in the Dashboard has the type declared there, any other key is text, and segments can filter Customers by the fields of their Company.

    Example: {"b2b":"true"}
    Company
    {
    "id": "string",
    "merchantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "tenant": "sand",
    "joinCode": "string",
    "referenceId": "string",
    "name": "string",
    "prepaidPolicy": {
    "isActive": true,
    "amount": 0,
    "hidesPrices": true
    },
    "packagingType": "Reusable",
    "addresses": [
    {
    "id": "string",
    "label": "string",
    "streetName": "string",
    "streetNumber": "string",
    "city": "string",
    "province": "string",
    "postalCode": "string",
    "country": "string",
    "deliveryFeeAmount": 0,
    "storeId": "string"
    }
    ],
    "metadata": {
    "b2b": "true"
    }
    }