younifyd
Menu

Create Import 2

Import a dataset

POST/v2/subscriptions/imports

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Create Import 2 action (under Subscriptions).
  3. Fill in the fields below, then reference the result from later steps as {{createImport2.response.data}}.

Request

Query parameters

filterstring (string)

Some Subscriptions API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.

Request body

Enter the body as JSON in the step's Body field.

external_refstring

A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.

import_filestring (binary)required

The JSONL file you want to upload.

json
{
  "import_file": "string",
  "external_ref": "abc123"
}

Response

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

dataobject
idstring (uuid)

The unique identifier.

typestringrequired

One ofsubscription_import

attributesobjectrequired2 fields
metaobjectrequired3 fields
json
{
  "data": {
    "type": "subscription_import",
    "attributes": {
      "status": "pending",
      "external_ref": "abc123"
    },
    "meta": {
      "owner": "store",
      "timestamps": null,
      "records": {
        "uploaded": {
          "subscription_feature": 50000,
          "subscription_subscriber": 50000,
          "subscription_offering": 50000,
          "subscription": 50000
        },
        "imported": {
          "subscription_feature": 50000,
          "subscription_subscriber": 45090,
          "subscription_offering": 45090,
          "subscription": 45090
        }
      }
    },
    "id": "11111111-2222-3333-4444-555555555555"
  }
}

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