← Quickbooks

Create Purchase with Quickbooks API

Pipedream makes it easy to connect APIs for Quickbooks and 1,600+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Create Purchase with the Quickbooks API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 750,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to Create Purchase with the Quickbooks API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Create Purchase action
    1. Connect your Quickbooks account
    2. Configure Account Reference Value
    3. Select a Payment Type
    4. Configure Line Items
    5. Optional- Configure Account Reference Name
    6. Optional- Configure Currency Reference Value
    7. Optional- Configure Currency Reference Name
    8. Optional- Configure Minor Version
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Create Purchase with Quickbooks API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Quickbooks
 
Try it
Create Purchase with Quickbooks API on New Submission from Typeform API
Typeform + Quickbooks
 
Try it
Create Purchase with Quickbooks API on Custom Events from Zoom API
Zoom + Quickbooks
 
Try it
Create Purchase with Quickbooks API on New Submission (Instant) from Jotform API
Jotform + Quickbooks
 
Try it
Create Purchase with Quickbooks API on New Scheduled Tasks from Pipedream API
Pipedream + Quickbooks
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Create Purchase on Quickbooks
Description:Creates a new purchase. [See docs here](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#create-a-purchase)
Version:0.0.1
Key:quickbooks-create-purchase

Code

import { parseOne } from "../../common/utils.mjs";
import quickbooks from "../../quickbooks.app.mjs";

export default {
  key: "quickbooks-create-purchase",
  name: "Create Purchase",
  description: "Creates a new purchase. [See docs here](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#create-a-purchase)",
  version: "0.0.1",
  type: "action",
  props: {
    quickbooks,
    accountRefValue: {
      label: "Account Reference Value",
      type: "string",
      description: "Specifies the id of the account reference. Check must specify bank account, CreditCard must specify credit card account. Validation Rules:Valid and Active Account Reference of an appropriate type.",
    },
    paymentType: {
      label: "Payment Type",
      type: "string",
      description: "Payment Type can be: `Cash`, `Check`, or `CreditCard`.",
      options: [
        "Cash",
        "Check",
        "CreditCard",
      ],
    },
    lineItems: {
      propDefinition: [
        quickbooks,
        "lineItems",
      ],
    },
    accountRefName: {
      label: "Account Reference Name",
      type: "string",
      description: "Specifies the name of the account reference. Check must specify bank account, CreditCard must specify credit card account. Validation Rules:Valid and Active Account Reference of an appropriate type.",
      optional: true,
    },
    currencyRefValue: {
      label: "Currency Reference Value",
      type: "string",
      description: "A three letter string representing the ISO 4217 code for the currency. For example, `USD`, `AUD`, `EUR`, and so on. This must be defined if multicurrency is enabled for the company.\nMulticurrency is enabled for the company if `Preferences.MultiCurrencyEnabled` is set to `true`. Read more about multicurrency support [here](https://developer.intuit.com/docs?RedirectID=MultCurrencies). Required if multicurrency is enabled for the company.",
      optional: true,
    },
    currencyRefName: {
      label: "Currency Reference Name",
      type: "object",
      description: "The full name of the currency.",
      optional: true,
    },
    minorversion: {
      label: "Minor Version",
      type: "string",
      description: "Use the minorversion query parameter in REST API requests to access a version of the API other than the generally available version. For example, to invoke minor version 1 of the JournalEntry entity, issue the following request:\n`https://quickbooks.api.intuit.com/v3/company/<realmId>/journalentry/entityId?minorversion=1`",
      optional: true,
    },
  },
  async run({ $ }) {

    let parsedLineItems = parseOne(this.lineItems);

    const response = await this.quickbooks.createPurchase({
      $,
      data: {
        PaymentType: this.paymentType,
        AccountRef: {
          value: this.accountRefValue,
          name: this.accountRefName,
        },
        Line: parsedLineItems.length
          ? parsedLineItems.map((item) => parseOne(item))
          : [],
        CurrencyRef: {
          value: this.currencyRefValue,
          name: this.currencyRefName,
        },
      },
      params: {
        minorversion: this.minorVersion,
      },
    });

    if (response) {
      $.export("summary", `Successfully created purchase with id ${response.Purchase.Id}`);
    }

    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
QuickbooksquickbooksappThis component uses the Quickbooks app.
Account Reference ValueaccountRefValuestring

Specifies the id of the account reference. Check must specify bank account, CreditCard must specify credit card account. Validation Rules:Valid and Active Account Reference of an appropriate type.

Payment TypepaymentTypestringSelect a value from the drop down menu:CashCheckCreditCard
Line ItemslineItemsstring[]

Individual line items of a transaction. Valid Line types include: ItemBasedExpenseLine and AccountBasedExpenseLine. One minimum line item required for the request to succeed. E.g [ { "DetailType": "AccountBasedExpenseLineDetail", "Amount": 100.0, "AccountBasedExpenseLineDetail": { "AccountRef": { "name": "Meals and Entertainment", "value": "10" } } } ]

Account Reference NameaccountRefNamestring

Specifies the name of the account reference. Check must specify bank account, CreditCard must specify credit card account. Validation Rules:Valid and Active Account Reference of an appropriate type.

Currency Reference ValuecurrencyRefValuestring

A three letter string representing the ISO 4217 code for the currency. For example, USD, AUD, EUR, and so on. This must be defined if multicurrency is enabled for the company.
Multicurrency is enabled for the company if Preferences.MultiCurrencyEnabled is set to true. Read more about multicurrency support here. Required if multicurrency is enabled for the company.

Currency Reference NamecurrencyRefNameobject

The full name of the currency.

Minor Versionminorversionstring

Use the minorversion query parameter in REST API requests to access a version of the API other than the generally available version. For example, to invoke minor version 1 of the JournalEntry entity, issue the following request:
https://quickbooks.api.intuit.com/v3/company/<realmId>/journalentry/entityId?minorversion=1

Authentication

Quickbooks uses OAuth authentication. When you connect your Quickbooks account, Pipedream will open a popup window where you can sign into Quickbooks and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Quickbooks API.

Pipedream requests the following authorization scopes when you connect your account:

com.intuit.quickbooks.accounting

About Quickbooks

Online accounting software

More Ways to Use Quickbooks

Actions

Create Bill with the Quickbooks API

Creates a bill. See docs here

 
Try it
Create Customer with the Quickbooks API

Creates a customer. See docs here

 
Try it
Create Invoice with the Quickbooks API

Creates an invoice. See docs here

 
Try it
Create Payment with the Quickbooks API

Creates a payment. See docs here

 
Try it
Create Sales Receipt with the Quickbooks API

Creates a sales receipt. See the documentation

 
Try it

Explore Other Apps

1
-
12
of
1,600+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.