younifyd
Menu

customerMergeJobStatus

Returns the status of a customer merge request job.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the customerMergeJobStatus action (under Customer).
  3. Fill in the fields below, then reference the result from later steps as {{customermergejobstatus.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query CustomerMergeJobStatus($jobId: ID!) {
  customerMergeJobStatus(jobId: $jobId) {
    customerMergeErrors {
      errorFields
      message
    }
    jobId
    resultingCustomerId
    status
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

jobIdstringrequired

The ID of the job performing the customer merge request.

json
{
  "jobId": "string"
}

Response

Read the result with {{customermergejobstatus.response.data.data.customerMergeJobStatus}}. If the API returns errors, the step fails and they are at {{customermergejobstatus.response.data.errors}}.

customerMergeErrorsarray<object>
errorFieldsobject
messageobject
jobIdstring
resultingCustomerIdstring
statusstring

One ofREQUESTEDIN_PROGRESSCOMPLETEDFAILED

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

customerMergeJobStatus — Shopify — Documentation