Skip to main content
Answer

How to receive deleted customers from Acumatica via API

  • December 7, 2021
  • 7 replies
  • 363 views

Forum|alt.badge.img

Hello Team,

Could you clarify, is it possible to receive deleted customers from Acumatica via API?
If yes, which endpoint (screen) it is necessary to use?

I opened Web Services Endpoints and didn’t find here the necessary endpoint.


Thank you!

Best answer by jinin

Hi @Andrew1986

Please find the below approach. It may help you.

  1. Create a GI with Customer table and add the date Filter condition and the DeletedDatabaseRecord as true.
  2. Check the Show Deleted records checkbox 
  3. Create a endpoint with the GI 
  4. Make a API call.

Url: Url/entity/EndpointName/20.200.001/DeletedCustomer?$expand=DeletedCustomerDetails

Method: PUT

Request:

{

    "FromDate": {

        "value": "2021-12-01"

    },

    "ToDate": {

        "value": "2021-12-10"

    }

}

 

7 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • December 7, 2021

Hi @Andrew1986 

Please try like below,

 

Method: Delete

URL: Url/entity/Default/18.200.001/Customer/CUST01(provide customer Name)

Request: No Request

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • December 7, 2021

This example to remove the Customer or to receive removed customer from Acumatica?

Also I see you send the Customer ID in the request.
Is it possible to specify a period in the request and receive deleted customers by the period?

Thank you!


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • December 7, 2021

Hi @Andrew1986 

The above request to delete customer. Not receive the deleted customer records from Acumatica. I will check and update you.


Forum|alt.badge.img
  • Author
  • Freshman I
  • December 7, 2021

Okay, thank you!


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • December 7, 2021

Hi @Andrew1986

Please find the below approach. It may help you.

  1. Create a GI with Customer table and add the date Filter condition and the DeletedDatabaseRecord as true.
  2. Check the Show Deleted records checkbox 
  3. Create a endpoint with the GI 
  4. Make a API call.

Url: Url/entity/EndpointName/20.200.001/DeletedCustomer?$expand=DeletedCustomerDetails

Method: PUT

Request:

{

    "FromDate": {

        "value": "2021-12-01"

    },

    "ToDate": {

        "value": "2021-12-10"

    }

}

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • December 7, 2021

Hi @Andrew1986  There is NO default REST API is available to fetch the deleted customers.

As mentioned above by Jini, to get the deleted customers we need to come up alternate option to create a simple GI for deleted customers and make an API call to GI to fetch the results.


Forum|alt.badge.img
  • Author
  • Freshman I
  • December 7, 2021

Team,

Thank you a lot!