User Profile
mrtnsn
38
Posts
12
Kudos
1
Solution
05-10-2021
08:26
> a 429 status code will be in the response, and the client should detect this and know that the request must be retried later. If this is the case then please also provide "Retry-After" header with the seconds until the request can be run again. That way we can at least easily queue the request. Also, you should probably clarify if your talking "Rate limiting" or "Throttling", because this sounds a lot like "Rate limiting".
... View more
06-11-2020
11:19
I think you have to go through "Location" to get the ediCode. So use the ID from customer endpoint "location": {
"countryId": "string",
"id": "string",
"name": "string"
}, Then call "/controller/api/v1/location" with "?locationId=x". That should give you "ediCode": "string",
... View more
26-10-2020
10:40
It worked via Postman so I will investigate what is happening when setting a field to true from the code.
... View more
26-10-2020
10:25
Thank you for testing it. Is there something else, like settings, customer profile, etc, that can stop it from working? Because running the same query here does not work.
... View more
26-10-2020
10:13
Just copy pasted the json from PHP without correcting it. The JSON that is sent is correct. Can you try with setting all the checkboxes to false first? And then updating a single of them to true again? Because with this current customer I cannot set a single of those fields to true via the API.
... View more
26-10-2020
09:55
Hi, trying to update a customer but some of the fields is not updated. Endpoint: /controller/api/v1/customer/{customerCd} JSON: {
"sendInvoicesByEmail" => {
"value" => true
}
} Response: 204 GUI: The field I tried to update did not set properly. I have also tried to update "printInvoices", "acceptAutoInvoices", "printStatements", and most of the other checkboxes that can be found in this window without success. I have also tried to add other fields and these fields do update just fine, e.g. add a char to the name of the customer. The first update I did today did work, I set "acceptAutoInvoices" to "false", after this no other update call have worked. Also it seems the field "MailDunningLetters" is missing from the API.
... View more
09-10-2020
09:51
Hi Magnus, Is it possible to use webhooks to trigger when an document is released?
... View more
08-10-2020
14:57
1 Kudo
It should be possible to DELETE an customer via the API. This is possible through the GUI and the endpoint should replicate the behaviour of that action. The response should contain good error messages for when an customer cannot be deleted.
... View more
08-10-2020
08:27
When looking at the documentation I cannot find an endpoint for DELETE /controller/api/v1/customer/{customerCd}. Is there any other way of deleting a customer?
... View more
29-09-2020
13:47
If you'd like to get other fields exposed, please share short information regarding the need thus this can help the development team during the assessment process. Is not as much as I need these now, as it's missing from API when comparing with the UI. So comparing with the UI the following fields marked with X is missing. Each field explained: ItemClassCD (id) Filters the result based on the given ItemClassCD (id) InventoryID Filters the result based on the given InventoryID SiteID Filters the result based on the given SiteID (warehouse) InventoryPriceClassID Filters the result based on the given InventoryPriceClassID OwnerID Filters the result based on the given OwnerID (owner of the price) WorkGroupID Filters the result based on the given WorkGroupID (workgroup owner of price) MyOwner (checkbox) = Could be programatically fixed with OwnerID This should be skipped for the API MyWorkGroup (checkbox)= Could be programatically fixed with WorkGroupID This should be skipped for the API
... View more
25-09-2020
11:18
When comparing the UI filters with the API filters it seems to be missing some fields. Missing fields: ItemClassCD InventoryID SiteID InventoryPriceClassID OwnerID WorkGroupID MyOwner (checkbox) = Could be programatically fixed with OwnerID MyWorkGroup (checkbox)= Could be programatically fixed with WorkGroupID I think these should be added with this idea so that the API is closer to the UI for this endpoint.
... View more
25-09-2020
09:47
You can use the inspect tool in the GUI; ctrl + alt + click on the field you want info about. If it's not active for you, you have to first activate it from: Users (screen SM201010), find your user and activate the "Customizer" role
... View more
24-09-2020
13:30
Thank you for the update. -API should not require any additional field in the POST request to realize Re-Open action Based on the documentation "This method requires a sales order update dto where the order type is initialised.", so that will still be true I guess. Or if it will be changed to use the same DTO schema as CancelSalesOrderActionDto only requiring "orderType" to be set.
... View more
24-09-2020
12:22
But it doesn't follow the same behaviour as GUI, unless I'm misunderstanding what it does in the GUI. In the GUI, I can click the "Reopen order" button and it will change status from "Cancelled" to "Open" and be saved, without any changes done to any other field (that I can see). When running the code as provided earlier the document is "not found". Also, if I try your example by adding a field to change (description in this test) I get the following error. {"message":"Order can't be reopened because it is not completed"} But as mentioned earlier this is working without changing any fields in the GUI.
... View more
24-09-2020
10:47
Trying to open a "Cancelled" order. Using the GUI to trigger "reopen" works.
Endpoint:
POST /controller/api/v1/salesorder/000001/action/reopenSalesOrder
JSON:
{
"saleOrderUpdateDto": {
"orderType": {
"value": "SO"
}
}
}
Response:
{"message":"No document data found"}
Expected:
ReopenSalesOrderActionResultDto object containing actionId, actionResult and errorInfo.
GUI, I'm expecting "reopen" to be number 2. And number 1 to be a normal update with changing the status to open. If not, that explains the issue I'm having right now.
... View more
22-09-2020
08:59
2 Kudos
Currently it's only possible to get the customer sales prices. It should also be possible to update and create new ones. Example use case: We adjust the sales prices of our products based on a number of factors that we're currently calculating outside of Visma.net. This would let us mass-update/create all those prices. Screen ID: AR202010
... View more
Activity Feed for mrtnsn
- Got a Kudo for Create/Update CustomerSalesPrice. 14-04-2022 11:20
- Kudoed Re: New throttling policy is in the planning stage: "Concurrent Requests Limit Policy" for plh. 22-10-2021 12:05
- Kudoed Svar: New throttling policy is in the planning stage: "Concurrent Requests Limit Policy" for adrianm. 19-10-2021 07:28
- Posted Sv: New throttling policy is in the planning stage: "Concurrent Requests Limit Policy" on News in Developers Visma.net. 05-10-2021 08:26
- Got a Kudo for Customer DELETE endpoint. 23-09-2021 14:54
- Kudoed Re: Input wanted: Change of endpoint InventorySummary for Yıldırım. 02-06-2021 08:09
- Got a Kudo for Create/Update CustomerSalesPrice. 17-05-2021 16:30
- Posted Sv: Where is the Customer EDI Code in API? on Forum in Developers Visma.net. 06-11-2020 11:19
- Posted Re: CustomerUpdate issues on Forum in Developers Visma.net. 26-10-2020 10:40
- Posted Re: CustomerUpdate issues on Forum in Developers Visma.net. 26-10-2020 10:25
- Posted Re: CustomerUpdate issues on Forum in Developers Visma.net. 26-10-2020 10:13
- Posted CustomerUpdate issues on Forum in Developers Visma.net. 26-10-2020 09:55
- Kudoed Re: Getting error on get inventory based on inventorynumber with . for adrianm. 22-10-2020 09:48
- Kudoed Webhook notifications for Visma Cloud Services Status for Yıldırım. 13-10-2020 12:24
- Posted Re: Placing POReceipts on SupplierInvoice on Forum in Developers Visma.net. 09-10-2020 09:51
- Posted Customer DELETE endpoint on Ideas in Developers Visma.net. 08-10-2020 14:57
- Posted Re: Customer DELETE endpoint on Forum in Developers Visma.net. 08-10-2020 14:55
- Posted Customer DELETE endpoint on Forum in Developers Visma.net. 08-10-2020 08:27
- Posted Sv: Create/Update CustomerSalesPrice on Ideas in Developers Visma.net. 29-09-2020 13:47
- Posted Sv: Create/Update CustomerSalesPrice on Ideas in Developers Visma.net. 25-09-2020 14:17