Support

Get a collection of rates.

query

Requires commerce.tax:read.

Get a collection of rates.

orderBy is one key only (id, name, createdAt, or updatedAt). Direction must be ASC or DESC. Sending two keys, or "desc", fails validation. value is a union. Select value { __typename ... on RatePercentage { percentage } ... on RateAmount { amount { value currencyCode } } }. There is no value { rate } field.

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • after String optional
  • before String optional
  • first Int optional
  • id RateIdFilter optional
    • in [ID!] optional
  • last Int optional
  • orderBy RateOrderBy optional
    • createdAt OrderByDirectionEnum optional
    • id OrderByDirectionEnum optional
    • name OrderByDirectionEnum optional
    • updatedAt OrderByDirectionEnum optional
  • referenceValue ReferenceValueFilter optional
    • in [String!] optional
  • status RateStatusFilter optional
    • eq RateStatusEnum optional
    • in [RateStatusEnum!] optional

Possible returns

  • QueryRatesConnection QueryRatesConnection

Last updated on

How is this guide?