Skip to content
Developer home
X3

Example GraphQL queries for Addresses

  Less than to read

Address details by code and entity

{
  sage {
    x3Addresses {
      address (filter: "{ address: { $eq : '002' }, entity: { $eq : 'AO004' } } ") {
        edges {
          node {
            entityType
            entity
            address
            description
            defaultBankId
            isDefault
            zipCode {
              country {
                code
              }
              postal
              municipality
              city
            }
            city
            county
            country {
              code
            }
            countryName
            fax
            cellPhone
            externalIdentifier
            website
            isValid
            federalId
            exportNumber
          }
        }
      }
    }
  }
}

Try it on our demo endpoint

Addresses for specific countries

{
  sage {
    x3Addresses {
      address (filter: "{ country: { code: { $in: ['AO', 'PT'] } } } ") {
        edges {
          node {
            entityType
            entity
            address
            description
            defaultBankId
            isDefault
            zipCode {
              country {
                code
              }
              postal
              municipality
              city
            }
            city
            county
            country {
              code
            }
            countryName
            fax
            cellPhone
            externalIdentifier
            website
            isValid
            federalId
            exportNumber
          }
        }
      }
    }
  }
}

Try it on our demo endpoint