My Products
Help
Stefan Hult
PARTNER

Attribute in customers

by Stefan Hult

Hi

One of our customers has got problems with an integration that has been in operation for over a year now.

In the code, it retrieves a customer with a special attribute value.
We send the following url and get a response 200 back, but with a blank body.


These suddenly apply to almost all customers. When tested of 1000 customers we got a hit on 80 of them!
This is what the attribute looks like on the customer record.

"attributes": [
{

"id": "NETS", "value": "945643725"
},
{

"id": "OLDCUSTNO", "value": "4510008922"
}
],

Any suggestions?

6 REPLIES 6
Accepted solution
Yıldırım
VISMA
Yıldırım
VISMA

by Yıldırım

Summary:

1) Created a New Attribute > Customer Class > Assigned the attribute to that customer class
2) POST New Customer > Assign Attribute Value 

{
    "name": {
        "value": "API - Attribute 05"
    },
    "overrideWithClassValues": true,
    "customerClassId": {
        "value": "5"
    },
    "attributeLines": [
        {
            "attributeId": {
                "value": "NEWCUSTNO"
            },
            "attributeValue": {
                "value": "txt1"
            }
        }
    ]
}

 

3) Make a GET Request > Filtering Parameter is only "Attribute" {"NEWCUSTNO":"txt1"} 

https://integration.visma.net/API/controller/api/v1/customer?attributes=%7B%22NEWCUSTNO%22%3A%22txt1%22%7D

3.1) Empty Array Response []

4) Adding "PageNumber" to the request filtering parameter 
4.1) Customer with the attribute matching is retrieved.

----------------------------------------------------------------------------------------------------------

Workaround: Adding PageNumber & PageSize to the GET - Parameters 

Status: This has been registered as a bug and conveyed to the development team. We will provide further updates as more information is available.

Stefan Hult
PARTNER

by Stefan Hult

Hi
Any news about the problem. I tested it today and it is still the same.
The customer starts to panic. The application handles customer payments and imports about 500 a day. They can't handle it manually.
Is there any more information needed to troubleshoot?

 

Yıldırım
VISMA

by Yıldırım

Hi Stefan, could you please share your company name & ID ? <developersupport@visma.com>

Stefan Hult
PARTNER

by Stefan Hult

Thanks Yildrim

These are not new attributes, has been used for several years now.

Yıldırım
VISMA

by Yıldırım

Hello, we're currently investigating this. 

- How attribute values have been assigned ? Are those new Attributes & values ?