Jump to content

Paul Cowan

Members
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Paul Cowan

  1. I've created a web app and I can connect to my trial Sage account but when a client tries to connect to their real Sage account they are getting an authentication error (that's all the screen says).  Do I need to do something so my dev app can connect with live production accounts?

  2. I'm new to the Sage API and I'm trying to create an invoice but I'm getting an error and I don't see how to fix it.  The error says "$message: "This field is required",  $source: "line_items.tax_rate_id" and "$message: "This field is required.", $source: "line_items.tax.rate".   In the API documentation I do not see a "line_items" member - there is "invoice_lines" member.

    Here is the Json I'm using to create the invoice:

    {"sales_invoice":{"contact_id":"e69235e7f37e462dbc5e038b57b7d13d","date":"2022-03-13","net_amount":207.60,"tax_amount":26.99,"total_amount":234.59,"invoice_number":"1","tax_address_region_id":"CA-ON","invoice_lines":[{"description":"Test","ledger_account_id":"29fc0490a21411ecbcc60e97dc3b579b","product_id":null,"service_id":"0dc3d4f44f6e421b9e134b9fda48e793","unit_price":173.0,"quantity":1.2,"net_amount":207.60,"tax_amount":26.99,"total_amount":234.59,"tax_rate":{"id":"CA_HST_ON","displayed_as":null}}]}}
     

    Any help is appreciated

     

×
×
  • Create New...