Skip to main content

Hi, 

I faced with such error while trying to insert such set of data to Acumatica

URL :https://Agroup.acumatica.com/entity/ARTSEndpoint/22.200.001/Bill

BODY :

{

  "VendorRef": {

    "value": "00067001"

  },

  "DueDate": {

    "value": "05/22/2023"

  },

  "Vendor": {

    "value": "PU0262"

  },

  "PaymentMethod": {

    "value": "BACBOS"

  },

  "Date": {

    "value": "05/22/2023"

  },

  "Description": {

    "value": "docAlpha BatchID \"25270\""

  },

  "CashAccount": {

    "value": "10305"

  }

}

The error is the following 

I tried many values for Cash Account field but result remains same

Tried different combinations with Vendors and PaymentMethods but it does not work

I mapped this field in Endpoint

What Can cause such issue ?

@Ivan 

I would try to create a Bill in UI with same values just to make sure we are using all valid values.

Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.


Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.

Did you try this?


@Ivan

I would try to create a Bill in UI with same values just to make sure we are using all valid values.

Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.

That’s the problem, that I can create Bill via UI, but it does not work with request


Then I would do a GET call to pull one Bill and use the returned values for creating a new for my testing. Maybe change date/description/other fields values and then try to use this as BODY for your PUT call to create a new Bill.

Did you try this?

Yes, but to what fields I should pay attention ? I tried to copy several values but it did not work


Reply