Skip to content

Instantly share code, notes, and snippets.

View IntuitDeveloperRelations's full-sized avatar

Intuit Partner Platform IntuitDeveloperRelations

View GitHub Profile
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-QBO-Invoice-Create-SalesLineItem.cs
Last active September 13, 2021 21:44
IPP .NET SDK v3 - QBO - Create Invoice with Sales Line Item Details #IppDotNetSdkV3 #Invoice #QBO
static void CreateQBOInvoice(DataService dataService, ServiceContext context)
{
//Find Customer
QueryService<Customer> customerQueryService = new QueryService<Customer>(context);
Customer customer = customerQueryService.ExecuteIdsQuery("Select * From Customer StartPosition 1 MaxResults 1").FirstOrDefault<Customer>();
//Find Tax Code for Invoice - Searching for a tax code named 'StateSalesTax' in this example
QueryService<TaxCode> stateTaxCodeQueryService = new QueryService<TaxCode>(context);
TaxCode stateTaxCode = stateTaxCodeQueryService.ExecuteIdsQuery("Select * From TaxCode Where Name='StateSalesTax' StartPosition 1 MaxResults 1").FirstOrDefault<TaxCode>();
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-QBO-Report-Print.cs
Created April 14, 2014 18:31
IPP .NET SDK v3 - QBO - Retrieve Report and Print to Console #IppDotNetSdkV3 #Report #QBO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Intuit.Ipp.Core;
using Intuit.Ipp.Data;
using Intuit.Ipp.ReportService;
static class SampleCalls
{
"/accounting/AccountingTransactionLine" : {
"type" : "object",
"allOf" : [ {
"$ref" : "/Entity"
}, {
"type" : "object",
"properties" : {
"description" : {
"type" : "string",
@IntuitDeveloperRelations
IntuitDeveloperRelations / intuit-v4-workspace-payroll-prod.md
Last active November 16, 2018 16:42
Intuit V4 Payroll - Insomnia Setup

GraphQL Client Setup - Insomnia

We will be using a GraphQL client named Insomnia to execute API calls against Intuit's V4 APIs. We chose Insomnia for its features such as GraphQL introspection, typeahead support for queries and mutations, and OAuth2 handshake support.

  1. Download and install the Insomnia client for your operating system

  2. Launch Insomnia

  3. Import the Insomnia workspace for Intuit's V4 pre-production environment

  • Open the Insomnia menu
@IntuitDeveloperRelations
IntuitDeveloperRelations / CAD-SAML.cs
Created August 11, 2014 15:06
IPP CAD API / Component Space: Send SAML assertion to obtain OAuth tokens
// Copyright Intuit, Inc 2012
// SAML Sample Application
// This sample is for reference purposes only.
// Copyright (c) 2014 Intuit Inc. All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted in conjunction
// with Intuit Partner Platform.
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-QBO-Customer-Filter-DisplayName.cs
Last active March 12, 2018 04:09
IPP .NET SDK v3 - QBO - Retrieve Customer with DisplayName filter #IppDotNetSdkV3 #Customer #QBO #Filter
using Intuit.Ipp.Core;
using Intuit.Ipp.Data;
using Intuit.Ipp.LinqExtender;
using Intuit.Ipp.QueryFilter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class SampleCalls
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-ExecuteQuery.cs
Last active March 6, 2018 12:32
QuickBooks API - .NET/DevDefined - Execute V3 Query
using DevDefined.OAuth.Consumer;
using DevDefined.OAuth.Framework;
using System.IO;
using System.Text;
using System.Net;
using Intuit.Ipp.DataService;
using Intuit.Ipp.Security;
using System.Web;
namespace IPPQbApiConsoleApp
@IntuitDeveloperRelations
IntuitDeveloperRelations / IPP-Platform-Reconnect.cs
Last active December 3, 2017 01:27
.NET DevDefined IPP Platform Reconnect Call
using DevDefined.OAuth.Consumer;
using DevDefined.OAuth.Framework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Net;
protected void CreateAuthorization()
{
//Remember these for later.
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls11;
HttpContext.Current.Session["consumerKey"] = consumerKey;
HttpContext.Current.Session["consumerSecret"] = consumerSecret;
HttpContext.Current.Session["oauthLink"] = OAUTH_URL;
//
IOAuthSession session = CreateSession();
IToken requestToken = session.GetRequestToken();
SAMPLE OBJECT
{
"Payment": {
"CustomerRef": {
"value": "20",
"name": "Red Rock Diner"
},
"DepositToAccountRef": {
"value": "4"
},