younifyd
Menu

Import Pricebook

Import a Price

POST/pcm/pricebooks/import

Use it in a workflow

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

Fields

baseUrlstring

The API host this action calls. Choose one, or pick Custom to enter your own.

One ofhttps://euwest.api.elasticpath.comhttps://useast.api.elasticpath.com__custom__Default "https://euwest.api.elasticpath.com"

baseUrlCustomstring
bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

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

dataobject

Top level entity in the jobs domain model. It contains a job details.

idstringrequired
attributesobjectrequired6 fields
metaobjectrequired1 fields
json
{
  "data": {
    "id": "0dd4e7de-006f-460f-a43e-a581f375cedc",
    "attributes": {
      "created_at": "2020-09-22T09:00:00Z",
      "updated_at": "2020-09-22T09:00:00Z",
      "type": "pricebook-import",
      "status": "pending",
      "started_at": "2020-09-22T09:00:00Z",
      "completed_at": "2020-09-22T09:00:00Z"
    },
    "meta": {
      "x_request_id": "2d70776e-c2b0-4446-84e6-d08a24edfca4"
    }
  }
}

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