with Contacts+ and UPS?
Get tracking information for a UPS tracking number. See the documentation
The Contacts+ API on Pipedream opens doors to intelligent automation around contact management. By leveraging Pipedream's serverless platform, you can sync contact information, manage updates, track engagement, and create custom workflows to streamline communication processes. Integration with other apps enables seamless data flow between platforms, enriching CRM systems, marketing campaigns, or customer support services with minimal manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    contacts: {
      type: "app",
      app: "contacts",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: "post",
      url: `https://api.contactsplus.com/api/v1/account.get`,
      headers: {
        Authorization: `Bearer ${this.contacts.$auth.oauth_access_token}`,
      },
    })
  },
})
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ups: {
      type: "app",
      app: "ups",
    }
  },
  async run({steps, $}) {
    const data = {
        "XAVRequest": {
            "AddressKeyFormat": {
                "ConsigneeName": "RITZ CAMERA CENTERS-1749",
                "BuildingName": "Innoplex",
                "AddressLine": [
                    "26601 ALISO CREEK ROAD",
                    "STE D",
                    "ALISO VIEJO TOWN CENTER"
                ],
                "Region": "ROSWELL,GA,30076-1521",
                "PoliticalDivision2": "ALISO VIEJO",
                "PoliticalDivision1": "CA",
                "PostcodePrimaryLow": "92656",
                "PostcodeExtendedLow": "1521",
                "Urbanization": "porto arundal",
                "CountryCode": "US"
            }
        }
    }
    return await axios($, {
      method: "post",
      url: `https://onlinetools.ups.com/api/addressvalidation/v2/1`,
      headers: {
        Authorization: `Bearer ${this.ups.$auth.oauth_access_token}`,
        "content-type": `application/json`,
      },
      params: {
        maximumcandidatelistsize: `1`,
      },
      data,
    })
  },
})