Solved

Create Invoice via REST request

  • 2 February 2023
  • 7 replies
  • 413 views

Userlevel 4
Badge +2

Hi,

My application generates REST requests for creates invoices creation

It is working except one moment

Our client has added custom entity

There is opportunity to create Bill based on this subcontract, when I am doing this in Acumatica interface everything works fine

 I added those fields to endpoint

and now trying to do same with rest request 

Here is my request :

URL : https://mcicj.acumatica.com/entity/ARTSDocAlphaEndpoint/20.200.001/Bill

Body :

{

  "VendorRef": {

    "value": "1ABL-217i941"

  },

  "DueDate": {

    "value": "3/2/2023"

  },

  "Vendor": {

    "value": "V-06702"

  },

  "Date": {

    "value": "1/31/2023"

  },

  "Terms": {

    "value": "PWP"

  },

  "PostPeriod": {

    "value": "01-2023"

  },

  "Details": [

    {

      "Description": {

        "value": "Line 001 - Gypcrete"

      },

      "Qty": {

        "value": 1

      },

      "UnitCost": {

        "value": "34573.2"

      },

      "ExtendedCost": {

        "value": "34573.2"

      },

      "Account": {

        "value": "5430"

      },

      "SubcontractLine": {

        "value": "1"

      },

      "SubcontractNbr": {

        "value": "234567"

      },

      "rowNumber": {

        "value": "1"

      }

    }

  ]

}

This request is workable and bill is successfully created 

However, only these new fields are not present in Acumatica

How to send these values to Acumatica, what should be done ?

Thanks in advance 

icon

Best answer by Dmitrii Naumov 2 February 2023, 17:02

View original

7 replies

Userlevel 7
Badge +5

Hi @Ivan is that field enabled on the screen? is it a selector field or just a plain text field?

Userlevel 4
Badge +2

Hi @Ivan is that field enabled on the screen? is it a selector field or just a plain text field?

Hi @Dmitrii Naumov 

It looks same as other columns

How to check if this filed is enabled on screen and it’s type ?

Userlevel 7
Badge +5

Well, if you work with it via UI, can you just enter any value in this field? I assume you cannot, can you?

Userlevel 4
Badge +2

Well, if you work with it via UI, can you just enter any value in this field? I assume you cannot, can you?

No, I can’t

Userlevel 7
Badge +5

Well, that is why you cannot do it via API as well. 

You’ll probably need some custom action to link the line to subcontract.

Userlevel 4
Badge +2

Well, that is why you cannot do it via API as well. 

You’ll probably need some custom action to link the line to subcontract.

Can you provide a link to documentation, where it is described how to do that 

Userlevel 7
Badge +5

@Ivan

see T series dev trainings, e.g. 

https://openuni.acumatica.com/courses/development/t230-development-actions/

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved