Topic: Error code 2500

When I try to use the code here: https://github.com/consolibyte/quickboo … ce_add.php

I get error code 2500, **(This code is absolutely unedited)**

Here is the last request:

POST https://sandbox-quickbooks.api.intuit.com/v3/company/1419850480/invoice HTTP/1.1
Content-Type: application/xml
Authorization: OAuth realm="", oauth_signature_method="HMAC-SHA1", oauth_signature="0PjwtLG2717W%2FIpM5TDsJt12XCo%3D",  oauth_nonce="dksNW", oauth_timestamp="1462937070", oauth_token="qyprdT9H0eqGpakOe3oc9PZdGoYkiwewYRBMw0zkrBMjPXhc", oauth_consumer_key="qyprdhkvDxB0edPbsV9yr2CcGKe44x", oauth_version="1.0"
Content-Length: 533


    WEB8868
    2013-10-11
    
        10.32258
        SalesItemLineDetail
        Test description goes here.
        
            8
            10.32258
            1
        
    
    67

This was the last response:

HTTP/1.1 400 Bad Request
Server: nginx
Date: Wed, 11 May 2016 03:24:30 GMT
Content-Type: application/xml
Content-Length: 324
Connection: keep-alive
Keep-Alive: timeout=5
Strict-Transport-Security: max-age=15552000
intuit_tid: gw-56fb5a74-3e3e-44de-aea6-c48739df7d68
Vary: Accept-Encoding
Content-Encoding: gzip
Via: 1.1 ipp-gateway-ap06

Here is the last error:

2500: [Invalid Reference Id, Invalid Reference Id : Something you're trying to use has been made inactive. Check the fields with accounts, customers, items, vendors or employees.]

Thanks!

EDIT:
I am using the default Construction Trades Sandbox.

Last edited by andynazay153 (2016-05-10 20:22:04)

Re: Error code 2500

Based on the error:

Something you're trying to use has been made inactive.

It sounds like something you're trying to use is inactive. Probably a customer or an item.

The data in my QuickBooks is different than the data in your QuickBooks, so who knows what's active and what's not in your QuickBooks.

If you look at the code, you can see several things trying to be used:

https://github.com/consolibyte/quickboo … dd.php#L26
https://github.com/consolibyte/quickboo … dd.php#L34

Make sure those things exist and are active. If they aren't, then either make them active, or change the example so that it refers to things that do exist and are active.

Re: Error code 2500

@consolibyte Thanks for the reply, but I don't know how to check reference IDs and the like in QuickBooks.

Re: Error code 2500

Query for those objects, and see what you get back.

The QuickBooks Online APIs are just like any SQL database with foreign keys you've ever used -- you can't just reference things that don't exist. Either query for them so that you have the Id values so you can reference them, or create them and store the Id values so that you can reference them.


https://github.com/consolibyte/quickboo … _query.php
https://github.com/consolibyte/quickboo … _query.php

https://developer.intuit.com/docs/0100_ … rying_data

Re: Error code 2500

Thank you so much!

Re: Error code 2500

@consolibyte How can I find all of the Income account reference numbers?

Re: Error code 2500

@consolibyte Disregard the question above, but how can I find all of the detail types for an invoice line? for example I can see there is 'SalesItemLineDetail', but is there a 'ServiceItemLineDetail'?

Last edited by andynazay153 (2016-05-12 19:32:36)

Re: Error code 2500

No, there isn't.

Intuit's documentation lists them all:
https://developer.intuit.com/docs/api/accounting

Re: Error code 2500

Vente Cialis En Ligne France  buy zoloft on line Viagra Site Belge How To Buy Ed Drugs From Canada

Is Amoxicillin Good Zithromax Order Cialis Brausetabletten  cialis without a doctor's prescription Cheapest Tadalafil Fedex Shipping Secure Ordering Levaquin Amex Accepted Website Overseas

Re: Error code 2500

Meloxicam Prix Levitra Marrakech  cialis canada Order Cheap Periactin Online Amoxicillin 500mg Capsules For Respiratory Infection Keflex Low Cost

Cyproheptadine Baclofene Temoignage  cialis vs viagra Cialis 33 Anos Prezzo Viagra Italia Was Ist Viagra Wikipedia