My Products
Help
MarcusMonde
CONTRIBUTOR *

How to Update a Cross Reference to Make It Global?

by MarcusMonde

Hi,

I'm trying to figure out how to update a cross reference so that it becomes global.

 

Here's an example:

I want to update the cross reference (UNLCDHS) on item 100002 so that the alternateType becomes global.

 

I'm making a PUT request to the following URL:
https://integration.visma.net/API/controller/api/v1/inventory/100002/crossReferences/Global/UNLCDHS


Request Body:

{
"alternateType": {
"value": "Global"
},
"alternateID": {
"value": "UNLCDHS"
}
}


If I set the value to "Global" (as indicated in the documentation), I receive the following error message:

{"message":"Error updating the cross-reference. Update failed. Inventory Cross-reference with Alternate type: 'GLBL' and Alternate ID: 'UNLCDHS' not found."}

 

If I instead use "GLBL", I get a different error:

{"message":"VismaId: 3601307b-450f-4297-8dab-21543cd63c87. Error updating the cross-reference. Invalid Alternate Type Value"}

 

I've tried several different combinations, but haven't been able to make the cross reference global. What is the correct approach?

 

I would appreciate any guidance you can provide.

0 REPLIES 0