Start a new topic

Posting an Accounts Payable invoice

This example assumes that vendor BESTBUY exists, and that the vendors default tax is HST, set to compute an input credit for %13.



Perform POST to the following endpoint;


https://localhost:10880/api/v2/companies/SuperCo/ap/transactions/


Using the following JSON;


{
  "vendor": {
    "code": "BESTBUY"
  },
  "date": "2018-02-03",
  "transType": "I",
  "referenceNo": "GG",
  "debitAmt": "0.00",
  "creditAmt": "1130.00",
  "balance": "1000"
}



Notice that, while we did not specify taxes in the JSON submission, taxes were automatically imputed based on the vendors default tax code.



Let's assume that you wish to override these defaults, and imputed calculated tax.   You can include the actual tax value in the JSON submission;




{
  "vendor": {
    "code": "BESTBUY"
  },
  "date": "2018-02-03",
  "transType": "I",
  "referenceNo": "GG",
  "debitAmt": "0.00",
  "creditAmt": "1130.00",
  "taxes": [
    {
      "code": 3,
      "name": "3",
      "shortName": "HST",
      "total": "99"
    }
  ]
}


This results in the following AP posting.


Login or Signup to post a comment