Add a Invoice for a customer using PHP API - quickbooks

I need to create an INVOICE for a customer.
Invoice for existing customer and if not existed customer need to create for new customer.
I have been through this process,
[url]http://localhost/palmer_sdk/docs/example_app_ipp_v3/example_invoice_add.php[/url]
I'm stuck at this Error:
2500: [Invalid Reference Id, Invalid Reference Id : Line.SalesItemLineDetail.ItemRef]
Please can anyone help me regarding this issue.

Just like in the QuickBooks GUI, every line on a QuickBooks invoice links back to an ITEM/product/service type.
It looks like QuickBooks Online is telling you that the item you're referring to:
<ItemRef>8</ItemRef>
Does not exist.
Did you check to make sure that item exists?
If you query for that item (use the API Explorer if you need a quick way to do so what does the item XML response from Intuit look like?

Related

Asana API: organization_exports

How do I get organization ID? I tried this:
https://app.asana.com/api/1.0/organization_exports
But it returns
{"errors":[{"message":"Not Found","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}
Of course I'm logged in, or use an access token, and other API calls work fine.
My final goal is to make use of the organization ID in https://github.com/Asana/export_importer.
sorry for the delay - the system that was supposed to alert us to your question didn't pick this one up.
The easiest way to get the organization ID is to query our API for your user to see what organizations you're a member of, rather than use the organization_exports endpoint - that's for exporting a full organization data dump for backup or reporting purposes.
If you look at our API documentation for getting your user at app.asana.com/api/1.0/users/me, you'll see that your user record returns a list of workspaces which have ID and name information. This is probably the most straightforward way to get your organization ID from our API.

Caller not authenticated when attempting access sharepoint list using Microsoft graph

Trying to use Microsoft's Graph beta to access a Sharepoint list via a registered Azure app using a key. I'm able to successful see/access some lists(looks like only lists created when site was created), but any list I have manually created is missing.
I can do the following get to list most lists in my site:
https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,fc016e3c-d8ae-4ee0-a10c-de6d26788b6a,9a4ea7a5-c3c4-44ae-9f80-273bd67431b8\lists
but for some reason it's only displaying certain lists and none of the ones I created. However if enter the list's GUID like this
https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,fc016e3c-d8ae-4ee0-a10c-de6d26788b6a,9a4ea7a5-c3c4-44ae-9f80-273bd67431b8/lists/BEA4B4A9-323F-441A-BA19-806290B27EF6
I receive "the caller is not authenticated" message back. This is message has me thinking it's a permissions issue, however, my list permissions are the same on all lists. it's as if the graph api can only see lists created by the system and not by end users.
Anybody experiencing this issue?
I've seen this issue on my end. The "save item to list" function works for some accounts and not others... It's extremely weird! Typical SharePoint, I suppose.
What I've come to realize is that GRAPH will sometimes throw an error when trying to save data to a date field and works every time saving data to text fields. If I'm logged in as my main O365 account (with license) I can save to date fields. If I'm logged in with a basic user that I just created on the domain (no license) I can create items unless there's a date field.
If I come up with anything else I'll post it! Sorry, this is more of a work-around than an answer. Hopefully it will spark something else.
Thanks

Quickbooks QBXML and customerAdd

I am working with the Intuit Web Connector.
I am able to add customers using "customerAdd" and by using "openBalance" it creates an invoice.
I have tried everything to make it create an invoice number (the invoice that gets created has no number, just blank).
I would also like to have the item, qty and description.
Is this a job for "invoiceAdd"?
Thanks for looking.
If you're trying to create an Invoice, you should be using InvoiceAdd.
The only time you should be using OpenBalance is if the customer has an outstanding balance that's not the result of an invoice that you'll have in QuickBooks. e.g. if you're migrating from another accounting platform, you might have an open balance for someone when moving from the other system.
Beyond that, you should never be creating customers with an OpenBalance.
Instead, create an actual invoice. Here are some examples:
qbXML examples
InvoiceAdd example

Add new product type or vendor through Shopify API?

Creating a new product with the Shopify API rubygem works great.
However my app needs to be able to create new product types and/or vendors.
I'm finding that when I POST with a new product type or vendor with the create product request, the Shopify server returns 500.
Is there a way to create these through the API??
Looks like it's actually related to how we send product tags in the POST that's breaking it. Products without tags are still posting through just fine.

what is the standard for creating a web REST API for adding new items

i have a order catalogue web site and i want to create a REST API so people can create their own apps and Add an Order or Update an existing order:
Lets say an order has:
OrderId
Product
Quantity
ShippingType
So i need some API to allow someone to send in a new order (orderid would be blank as that would be in the response).
How do you deal with passing in items like Product or Shipping type. These are tables in my db and are keyed off their own specific primary key id. Should the NewOrder API ask for a string name for these fields, should it ask for the id. If it asked for the ID, that would assume they would have to call the GiveMeProductList() method upfront (which gives you the name and id of all product as a dataset).
What is the standard for dealing with this?
Martin Fowler has a good post about the steps toward the glory of REST that you might find useful to come up with REST API.
The media type that I use for sending this information to the server can handle both scenarios, Id and Code/Name. If the user enters the product code manually then I send up the code, if the user asks to pick from a list then I provide the list and send back the Id.

Resources