Method Community

 

Some Questions and Issue in the API

Last post 04-05-2023 7:57 AM by Method_Inderdeep. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-11-2020 9:53 AM

    Some Questions and Issue in the API

    First, When I create a new Invoice with InvoiceLine the Rate is set as 0.0 although I set a value on it ! 

    this is the body request:

    {
        "TxnDate": "2020-11-12T16:00:00",
        "BillAddressAddr1": "Address1",
        "BillAddressAddr2": "Address2",
        "BillAddressCity": "City",
        "BillAddressState": "State",
        "BillAddressPostalCode": "00000",
        "BillAddressCountry": "USA",
        "IsPending": false,
        "IsFinanceCharge": false,
        "DueDate": "2020-11-12T16:00:00",
        "IsPaid": true,
        "IsToBePrinted": true,
        "IsToBeEmailed": true,
        "IsTaxIncluded": false,
        "IsWaitingForSyncApproval": false,
        "TenantID": 1,
        "ARAccount": "Accounts Receivable",
        "Customer": "Abdullah Shublaq",
        "__InvoiceLine":[
            {
                "Desc": "Invoice Description",
                "Quantity": 2,
                "Rate": 50,
                "IsRatePercent": false,
                "ServiceDate": "2020-11-12T16:15:25",
                "UnitOfMeasure": "",
                "LineOrder": 1,
                "LastModifiedDate": "2020-11-12T16:16:08.597",
                "Item": "Sales",
                "SalesTaxCode": "Non",
                "TenantID": 1
            }
        ]
    }


    Second, what is the request that I can create a new Item throw it to add a new InvoiceLine for this Item?
    Finally, what is the request that I can create receive payment for the invoice to make it Paid?

    Thanks.
  • 11-13-2020 6:39 AM In reply to

    Re: Some Questions and Issue in the API

    Hi Abdullah, 

    Thanks for your post. We need a few more details to be able to help you. Can you email us at api@method.me with the following?

    • Method Account Name
    • Response Code
    • Trace ID if you received a non 200 Response Code
    • RecordID if you received a 200 Response Code
    Thanks, 
    Jason
    Need more help? Ask us about Method consulting services

    Jason Masina
    Community Support Specialist
    Method Integration Inc.
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400
    Fax: 416.640.6027
    E-mail: j.masina@methodintegration.com
  • 04-03-2023 9:58 AM In reply to

    Re: Some Questions and Issue in the API

    I too am having a similar problem with the InvoiceLine Item rate. Is there a way to create the InvoiceLine Item using the stored item rate without having to specify it in the request? If I create a Line with an Item and no rate, it is added to the Invoice as $0. How do I get the line added with the database stored rate?

    {

    "Customer": "Customer LLC",
    "TxnDate": "2023-04-03T04:18:10",
    "__InvoiceLine": [
    {
    "Item": "Item 1",
    "Quantity": 205
    },
    {
    "Item": "Item 2",
    "Quantity": 59
    }
    ]
    }


    Thanks

  • 04-04-2023 4:00 PM In reply to

    Re: Some Questions and Issue in the API

    Hi smandolare,

    Thank you for reaching out. After reviewing your request, I can confirm that you need to manually update the rate of the items in your request.

    Unfortunately, at the moment we do not grab the rates from the “Items table”, so this would have to be done manually.

    Hope this helps!

    -Inder

  • 04-05-2023 7:57 AM In reply to

    Re: Some Questions and Issue in the API

    In addition to what I mentioned above, you could also make another call to grab the rate of the items. You would have to make two separate calls,

    1. Call to get the item rate.
    2. Call to add the line item with that rate.
    Then, you can use them on the InvoiceLineItems. 
    Hope this helps!
Page 1 of 1 (5 items)