younifyd
Menu

List Store Logs

List logs for all integrations for the store

GET/integrations/logs

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the List Store Logs action (under Integrations).
  3. Fill in the fields below, then reference the result from later steps as {{listStoreLogs.response.data}}.

Fields

baseUrlstring

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

One ofhttps://euwest.api.elasticpath.com/v2https://useast.api.elasticpath.com/v2__custom__Default "https://euwest.api.elasticpath.com/v2"

baseUrlCustomstring
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 200 with an object. Read it in later steps with {{listStoreLogs.response.data.<field>}}.

dataarray<object>
idstring

A unique identifier of an integration whose logs you want to view.

typestring

This represents the type of resource object being returned. Always `integration-log`.

One ofintegration-logDefault "integration-log"

succeededboolean

Whether the integration was successful.

attemptinteger

The number of attempts made to process the integration.

processing_timenumber (float)

The time taken to process the delivery attempt, in seconds, rounded to four decimal places.

bodystring

The response returned from the integration.

status_codeinteger

The status code returned from the integration.

error_detailstring

The reason why the integration failed.

relationshipsobject2 fields

Relationships are established between different integration entities. For example, a log and an integration job are related to an integration.

metaobject1 fields
linksobject

Links are used to allow you to move between pages.

firststring

Always the first page. This is not present on the first page.

nextstring

Next page link.

prevstring

This is not present on the first page.

json
{
  "data": [
    {
      "id": "ac8bb58e-2b9b-4ccf-9dd2-ecdf50417849",
      "type": "integration-log",
      "succeeded": true,
      "attempt": 1,
      "processing_time": 30.0006,
      "body": "Not Found",
      "status_code": 404,
      "error_detail": "Received a status code outside of 2xx range - treating webhook as a fail",
      "relationships": {
        "integration": {
          "data": {
            "id": "ff8634a8-a89e-4eac-baab-9b7b8c4f8720",
            "type": "integration"
          }
        },
        "job": {
          "data": {
            "id": "ff8634a8-a89e-4eac-baab-9b7b8c4f8720",
            "type": "integration-job"
          }
        }
      },
      "meta": {
        "timestamps": {
          "created_at": "2017-07-21T17:32:28Z"
        }
      }
    }
  ],
  "links": {
    "first": "/integrations/logs?page[offset]=0&page[limit]=10",
    "next": "/integrations/logs?page[offset]=10&page[limit]=10",
    "prev": "/integrations/logs?page[offset]=8&page[limit]=10"
  }
}

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