cancel
Showing results for 
Search instead for 
Did you mean: 
jefffenn
Occasional Member - Level 2

Inactivate a vendor via API

Does anyone know how to make a vendor inactive via the api?  The delete method hides the vendor from the vendor list.  We need to inactivate the vendor instead of deleting them.  

 

I see an ISACTIVE property that is set to Y on active vendors.  The GET method fails to pull vendors that are inactive.  (which is another issue).

 

Thanks,

-Jeff

5 REPLIES 5
KevinD
Community Manager
Community Manager

@jefffenn is the option shown below not available for you?

 

KevinD_0-1691698266059.png

 


Thank you,
Kevin
SAP Concur Community Manager
Did this response answer your question? Be sure to select “Accept as Solution” so your fellow community members can be helped by it as well.
PnufferFSP
Occasional Member - Level 1

HI Kevin, I'll second jeffenn's comment that we'd like to be able to use this feature in via the API.  Is it the "StatusList" item, and is there a better defintion of the values to provide (this reference doesn't indicate anything about modifying the records status)
SAP Concur Developer Center | Vendor v3.1

jefffenn
Occasional Member - Level 2

Hi Kevin,

Yes, we can see that option in the Concur interface.  However, we aren't able to inactivate a vendor through the REST API.  We need to be able to do that.  Any ideas on if there is a field to do that?

Thanks,

-Jeff

PranitaGadi
New Member - Level 1

Hi Jefffenn,

 

I am going through the same issue you mentioned. May I ask if you found a resolution to it?

PoojaKumatkar
Frequent Member - Level 1

Hi @PranitaGadi ,

 

I am not 100% sure on this but would like you to try this. I tried searching this on chatgpt and got below response.

 

In Concur Invoice API v3.1, when working with the Vendor object, the statuslist endpoint allows you to retrieve all possible status values that can be assigned to a vendor. This is useful to understand the valid status options that you can set when you are creating or updating a vendor.

To retrieve the valid status values for a vendor, you can use the GET /vendors/statuslist endpoint.

Here is how you would generally retrieve the available status values:

Endpoint:

GET /vendors/statuslist

Response Example:

The response will typically return a list of status values that can be assigned to vendors. The exact values can vary based on the configuration of your Concur instance, but here are some common values you might encounter:

{
  "statusList": [
    {
      "code": "ACTIVE",
      "description": "Vendor is active"
    },
    {
      "code": "INACTIVE",
      "description": "Vendor is inactive"
    },
    {
      "code": "SUSPENDED",
      "description": "Vendor is temporarily suspended"
    },
    {
      "code": "PENDING",
      "description": "Vendor is pending approval or setup"
    },
    {
      "code": "DELETED",
      "description": "Vendor has been deleted"
    }
  ]
}

Common Status Values:

  • ACTIVE: The vendor is active and available for use.
  • INACTIVE: The vendor is inactive and not available for use.
  • SUSPENDED: The vendor is temporarily suspended, possibly for review or other reasons.
  • PENDING: The vendor's account or setup is pending approval or finalization.
  • DELETED: The vendor has been deleted from the system.

Usage:

When updating a vendor, you can pass one of these status values through the status field in the vendor update request.

Example for updating a vendor status to INACTIVE:

{
    "status": "INACTIVE"
}

Important:

  1. Check Configuration: The exact list of status codes and descriptions can vary based on the specific configuration of your SAP Concur instance, so it's essential to fetch the status list dynamically using the API for the most accurate data.
  2. API Authentication: Ensure you have valid API authentication credentials (OAuth tokens, etc.) to make requests.

Documentation Reference:

For more details, refer to the official Concur Invoice API documentation:

 

 

Please try this and let me know what all statuses you get after fetching vendor statuslist. 

 

Thanks!
Regards,
Pooja