Skip to main content

Inserting data to Acumatica by REST requests

  • February 1, 2023
  • 1 reply
  • 56 views

Forum|alt.badge.img+2

Hi,

My application forms rest requests and creates invoices

It working except one moment

Our client has added custom entity

There is opportunity to create Bill based on 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, these new fields are not exported 

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

Thanks in advance 

 

This topic has been closed for replies.

1 reply

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • February 2, 2023

Duplicated topic. 

See here: