younifyd
Menu

Get a list of order channels

Get a list of order channels.

GET/companies/{companyId}/channels

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get a list of order channels action (under Channels).
  3. Fill in the fields below, then reference the result from later steps as {{getAListOfOrderChannels.response.data}}.

Request

Path parameters

companyIdintegerrequired

The company ID.

Query parameters

filters[key]string

Filter by channel key

filters[type]string

Filter by channel type

filters[name]string

Filter by channel name

filters[shopCountryId]integer

Filter by channel shop country ID

filters[active]boolean

Filter by channel active status

Response

Returns 200 with an object. Read it in later steps with {{getAListOfOrderChannels.response.data.<field>}}.

entitiesarray<object>
idinteger

Numeric primary key generated during creation.

keystring

Slug short key to identify the channel. Not allowed to be modified after channel is used for an order.

typestring

Not allowed to be modified after channel is used for an order.

namestring

Custom name of the channel.

descriptionstring

Optional description about the channel in text format.

shopCountryobject16 fields
defaultPaymentMethodobject2 fields

Optional default payment method. If set, the payment method does not need to be set during order creation and it falls back to this method.

activeboolean

If set to false, the channel cannot be used during external order creation.

Default true

isUsedInOrdersboolean

Shows if the channel is already used in orders.

configsobject3 fields

A object containing a custom set of configs representing tenant configurations.

createdAtstring (date-time)

The date and time when the channel was created.

updatedAtstring (date-time)

The date and time when the channel was last updated.

json
{
  "entities": [
    {
      "id": 101,
      "key": "online-store-de",
      "type": [
        "marketplace",
        "in_store",
        "recurring_subscription"
      ],
      "name": "Online Store (Germany)",
      "description": "Primary sales channel for all German marketplace orders.",
      "shopCountry": {
        "countryCode": "DE",
        "defaultLanguageCode": "de_DE",
        "url": "https://www.example.com",
        "id": 1,
        "shopKey": "ay",
        "supportedLanguageCodes": [
          "de_DE"
        ],
        "active": true,
        "deleted": false,
        "priceGroupKey": "myPriceGroup",
        "currencyCode": "EUR",
        "assortment": {
          "masterCategories": {
            "include": [
              null
            ],
            "exclude": [
              null
            ]
          },
          "products": {
            "include": [
              null
            ],
            "exclude": [
              null
            ]
          },
          "attributes": [
            {
              "name": null,
              "include": null,
              "exclude": null
            }
          ],
          "merchantReferenceKeys": {
            "include": [
              null
            ],
            "exclude": [
              null
            ]
          }
        },
        "warehouses": [
          {
            "referenceKey": "my-warehouse",
            "id": 1,
            "priority": 100,
            "packageGroup": {
              "id": null
            }
          }
        ]
      },
      "defaultPaymentMethod": {
        "id": 22,
        "key": "credit-card"
      },
      "active": true,
      "isUsedInOrders": true,
      "configs": {
        "emailsEnabled": true,
        "invoicesEnabled": true,
        "externalPriceOverrideEnabled": false
      },
      "createdAt": "2021-09-23T11%3A30%3A58%2B00%3A00",
      "updatedAt": "2021-09-23T11%3A30%3A58%2B00%3A00"
    }
  ]
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.