younifyd
Menu

cashManagementReasonCodeCreate

Create a cash management reason code.

Use it in a workflow

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

Query

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

graphql
mutation CashManagementReasonCodeCreate($code: String!) {
  cashManagementReasonCodeCreate(code: $code) {
    reasonCode {
      code
      id
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

codestringrequired

The reason code to create.

json
{
  "code": "string"
}

Response

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

reasonCodeobject
codestring
idstring
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

cashManagementReasonCodeCreate — Shopify — Documentation