younifyd
Menu

billingAccount

Find a BillingAccount entity.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the billingAccount action (under Billing).
  3. Fill in the fields below, then reference the result from later steps as {{billingaccount.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 BillingAccount($ref: String!) {
  billingAccount(ref: $ref) {
    address {
      city
      companyName
      country
      latitude
      longitude
      name
      postcode
      region
      state
      street
      timeZone
    }
    attributes {
      name
      type
      value
    }
    createdOn
    customer {
      ref
    }
    id
    name
    ref
    retailer {
      id
    }
    status
    type
    updatedOn
    workflow {
      ref
      version
    }
    workflowRef
    workflowVersion
  }
}

Variables

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

refstringrequired

Max character limit: 100.

json
{
  "ref": "string"
}

Response

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

addressobject
citystring
companyNamestring
countrystring
latitudenumber
longitudenumber
namestring
postcodestring
regionstring
statestring
streetstring
timeZonestring
attributesarray<object>
nameobject
typeobject
valueobject
createdOnstring
customerobject
refstring
idstring
namestring
refstring
retailerobject
idstring
statusstring
typestring
updatedOnstring
workflowobject
refstring
versionnumber
workflowRefstring
workflowVersionstring

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

Was this page helpful?
billingAccount — Fluent Commerce — Documentation