Method Community

 

Some Questions and Issue in the API

Last post 11-13-2020 6:39 AM by Method_Jason. 1 replies.
Page 1 of 1 (2 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
Page 1 of 1 (2 items)