Skip to main content
Community site session details

Community site session details

Session Id : /TMvKwJe+cHfQMJFU950Bu
Power Automate - Connector Development
Unanswered

Error of field format with custom connector Quickbooks Online in a flow

Like (0) ShareShare
ReportReport
Posted on 14 Dec 2021 14:26:28 by

Hi Everyone,

 

I have build a custom connector for Quickbooks Online (with API Explorer (intuit.com)), i have tried to create an invoice and i have a problem with the format of the field "Amount" (Line).

 

In fact the doc tell to send in number float, so i have describe the parameter like : 

Amount: {type: number, format: float, description: Amount, title: Montant HT}

(extraction of swagger in custom connector)

 

When i try in the custom connector, in the section "Test", everything is ok, but when i use in a flow, i have this error message (french) :

 

"ResponseSwaggerSchemaValidationFailure. L’API « qbo-20sb-202-5f94957730b407c0d1-5f1695d03066eab836 Â» a renvoyĂ© une rĂ©ponse non valide pour l’opĂ©ration de flux de travail « Invoice-Create Â» de type « OpenApiConnection Â». DĂ©tails de l’erreur : « L’opĂ©ration API « Invoice-Create Â» exige que la propriĂ©tĂ© « body/Invoice/Line/0/Amount Â» soit de type « Integer Â», mais elle est de type « Float Â». Â»

 

Exemple of JSON i have tried to send : 

[
  {
    "Amount"21,
    "DetailType""SalesItemLineDetail",
    "SalesItemLineDetail": {
      "Qty"2,
      "UnitPrice"10.5,
      "ItemRef": {
        "value""24"
      },
      "TaxCodeRef": {
        "value""31"
      }
    },
    "Description""Du 2021-10-03 au 2021-11-02"
  },
  {
    "Amount"8.4,
    "DetailType""SalesItemLineDetail",
    "SalesItemLineDetail": {
      "Qty"2,
      "UnitPrice"4.2,
      "ItemRef": {
        "value""26"
      },
      "TaxCodeRef": {
        "value""31"
      }
    },
    "Description""Du 2021-10-16 au 2021-11-15"
  },
  {
    "Amount"12.6,
    "DetailType""SalesItemLineDetail",
    "SalesItemLineDetail": {
      "Qty"1,
      "UnitPrice"12.6,
      "ItemRef": {
        "value""36"
      },
      "TaxCodeRef": {
        "value""31"
      }
    },
    "Description""Du 2021-10-15 au 2021-11-14"
  },
  {
    "Amount"-10.5,
    "DetailType""SalesItemLineDetail",
    "SalesItemLineDetail": {
      "Qty"1,
      "UnitPrice"-10.5,
      "ItemRef": {
        "value""24"
      },
      "TaxCodeRef": {
        "value""31"
      }
    },
    "Description""Du 2021-09-03 au 2021-10-02"
  },
  {
    "Amount"18.2,
    "DetailType""SalesItemLineDetail",
    "SalesItemLineDetail": {
      "Qty"2,
      "UnitPrice"9.1,
      "ItemRef": {
        "value""24"
      },
      "TaxCodeRef": {
        "value""31"
      }
    },
    "Description""Du 2021-09-07 au 2021-10-02"
  },
  {
    "Amount"1.4,
    "DetailType""SalesItemLineDetail",
    "SalesItemLineDetail": {
      "Qty"1,
      "UnitPrice"1.4,
      "ItemRef": {
        "value""24"
      },
      "TaxCodeRef": {
        "value""31"
      }
    },
    "Description""Du 2021-09-03 au 2021-09-06"
  }
]
 
Can anyone help me?
Thank you in advance for your help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics