Question

REST API - OnChangeofLineUnitPrice - InvcDtl not found

  • 20 September 2021
  • 0 replies
  • 222 views

Good Afternoon, 

I am working with the REST services and raising a credit using api/v1/Erp.BO.RMAProcSvc/RMACreditAdd

 

 

{

  "iRMANum": 21,

  "iRMALine": 3,

  "iCorrection": false,

  "ds": {

    "SerialNumberSearch": [],

    "InvcDtl": [],

    "LegalNumGenOpts": [],

    "RMADtl": [],

    "RMADtlAttch": [],

    "RMAHead": [],

    "RMAHeadAttch": [],

    "RMARcpt": [],

    "SelectedSerialNumbers": [],

    "SNFormat": []

  }

}

 

This raises a credit with 0 value. Swagger documentation states.

“This method creates an RMA Credit record from the RMA Number and Line passed in.
The RMA Credit is stored in the InvcHead and InvcDtl tables. Once the invoice is
created, the user has the option of updating the header and invoice line information.
It is expected that the A/R Invoice business object will be called to handle
the update of the header and/or line.”

 

I am trying to update the price of the credit. After performing a trace I can see that the business objects called are OnChangeofLineUnitPrice, CheckCustomerTaxID, CheckShipToTaxID, and UpdateMaster.

I am posting the below JSON code using postman to api/v1/Erp.BO.ARInvoiceSvc/OnChangeofLineUnitPrice but receive the error. 

{

    "HttpStatus": 400,

    "ReasonPhrase": "REST API Exception",

    "ErrorMessage": "InvcDtl not found.",

    "ErrorType": "Ice.BLException",

    "ErrorDetails": [

        {

            "Message": "InvcDtl not found.",

            "Type": "Error",

            "Table": "ttInvcDtl",

            "Field": "RowMod",

            "Program": "Erp.Services.BO.ARInvoice.dll",

            "Method": "OnChangeofLineUnitPrice",

            "ColumnNumber": 17,

            "LineNumber": 23948

        }

    ],

    "CorrelationId": "2773f045-729d-4564-8ec9-b874bb18bb2c"

 

Body Code posted. 

{

    "InvoiceNum": 100061,

    "InvoiceLine": 24,

    "NewUnitPrice": "40.00",

    "ds": {

        "InvcDtl": [{

            "RowMod": "U",

            "UD_SysRevID": ""

        }]

    }

}

 

 


0 replies

Be the first to reply!

Reply