My company is working on an AP Automation product....
# general
a
My company is working on an AP Automation product. We can successfully create Vendors and Vendor Bills. When I try to create a vendor payment Im getting an error: code: INVALID_TRANS_TYP, message: An error occured in a upsert request: Transaction type specified is incorrect. Here's the JSON Im passing in. I see int he docs that there's a type attribute on the applyList but I dont know for certain if that's what I should be looking to adjust and also what are the range of correct values:
Copy code
{
  "externalId": "ed7e8c9e-6dbb-4789-9689-1023efdb6315",
  "account": {
    "name": "",
    "internalId": "1"
  },
  "total": 720,
  "tranDate": "2021-10-06T12:00:00Z",
  "currency": {
    "internalId": "1",
    "type": "currency"
  },
  "entity": {
    "internalId": "106",
    "type": "vendor"
  },
  "exchangeRate": "1.0",
  "applyList": [
    {
      "apply": true,
      "doc": "440",
      "refNum": "79337ce5-1337-4088-8b08-cee3ac10ef8f",
      "amount": 720
    }
  ]
}
b
double check that there isnt already a transaction with your external id
a
yep that did the trick
thank you!