younifyd
Menu

shopifyPaymentsPayoutAlternateCurrencyCreate

Creates an alternate currency payout for a Shopify Payments account.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the shopifyPaymentsPayoutAlternateCurrencyCreate action (under Shopify).
  3. Fill in the fields below, then reference the result from later steps as {{shopifypaymentspayoutalternatecurrencycreate.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 ShopifyPaymentsPayoutAlternateCurrencyCreate($accountId: ID, $currency: CurrencyCode!) {
  shopifyPaymentsPayoutAlternateCurrencyCreate(
    accountId: $accountId
    currency: $currency
  ) {
    payout {
      amount {
        amount
        currencyCode
      }
      arrivalDate
      createdAt
      currency
      remoteId
    }
    success
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

accountIdstring

The ID of the Shopify Payments account on which the mutation is being performed.

currencystringrequired

The currency of the balance to payout.

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

json
{
  "currency": "USD",
  "accountId": "string"
}

Response

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

payoutobject
amountobject2 fields
arrivalDatestring
createdAtstring
currencystring
remoteIdstring
successboolean
userErrorsarray<object>
codeobject
fieldobject
messageobject

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

shopifyPaymentsPayoutAlternateCurrencyCreate — Shopify — Documentation