Options

Struggling to create an invoice or record transaction via Integromat

SJ2018SJ2018 Member Posts: 3

Hello,
I am having trouble getting the two mentioned integrations working. When I try to create an invoice, I send:

[
   {
      "items":{
         "taxes":{
            "amount":0,
            "salesTaxId":"****"
         },
         "quantity":1,
         "productId":"****",
         "unitPrice":8,
         "description":"cat pin"
      },
      "title":"title",
      "status":"DRAFT",
      "dueDate":"2020-02-17T03:12:31.111Z",
      "currency":"GBP",
      "poNumber":"878676",
      "businessId":"****",
      "customerId":"*****",
      "invoiceDate":"2020-02-17T03:12:31.111Z",
      "invoiceNumber":"0000004"
   }
]

and I get

DataError
Status Code Error: 400

Origin
Wave

Description
No description available.

When I try to create a sales transaction, I send:

[
    {
        "date": "2020-02-17T03:23:36.512Z",
        "notes": "listing 34567",
        "anchor": {
            "amount": 8,
            "accountId": "****",
            "direction": "WITHDRAWAL"
        },
        "lineItems": [
            {
                "taxes": [
                    {
                        "amount": 0,
                        "salesTaxId": "****"
                    }
                ],
                "amount": 8,
                "balance": "INCREASE",
                "accountId": "****",
                "customerId": "****",
                "description": "payment for cat pin"
            }
        ],
        "businessId": "****",
        "externalId": "fb276e96-57b2-4eaa-8525-6c6318b72f65",
        "description": "sale - cat pin"
    }
]

And I get:

{
        "moneyTransactionCreate": {
            "didSucceed": false,
            "inputErrors": [
                {
                    "code": "UNKNOWN",
                    "message": "This value is invalid.",
                    "path": null
                }
            ]
        }
    }

Please help - the error messages are not helpful or non-existing, where am I going wrong?

Thank you

Comments

  • Options
    SJ2018SJ2018 Member Posts: 3

    Also the dropdown of accounts in the Integromat UI for "Create a Transaction" only list Asset accounts, not any other type (Income, Expenses, Liabilities, Equity)

  • Options
    SJ2018SJ2018 Member Posts: 3

    Also is it possible to create journal transactions via the API?

  • Options
    DecodeDigitalDecodeDigital Member Posts: 6

    I am also trying this. Need help with the Account ID for line items.
    Getting error on that part only.

  • Options
    ConnorMConnorM Member Posts: 1,229 ✭✭✭

    Hey all! Thanks for reaching out here. Just commenting to let you know that we've flagged this discussion for our API/development teams to take a look into, and they've acknowledged the need for a response. Thanks for your patience in hearing back from us, and I'm hoping they're able to give you a hand soon!

Sign In or Register to comment.