-
|
Hi! As the title says I keep getting 403 Forbidden when calling ListIssuedDocuments api with entity.vat_number as query parameter. Dim config As New Configuration()
config.BasePath = basePath
config.AccessToken = accessToken
Try
Dim filter As New Filter()
filter.Where("entity.vat_number", [Operator].EQ, entityVatNumber)
'filter.And("date", [Operator].EQ, [date].ToString("yyyy-MM-dd"))
filter.And("number", [Operator].EQ, number)
Dim q = filter.BuildQuery()
Dim issuedDocumentsApi As New IssuedDocumentsApi(config)
Dim listIssuedDocumentsResponse = issuedDocumentsApi.ListIssuedDocuments(companyId, "invoice", Nothing, "detailed", Nothing, Nothing, Nothing, q)
If listIssuedDocumentsResponse.Data.Count > 0 Then
Dim issuedDocument = listIssuedDocumentsResponse.Data.Find(Function(id) id.Date = [date])
Return issuedDocument
Else
Return Nothing
End If
'Return If(listIssuedDocumentsResponse.Data.Count > 0, listIssuedDocumentsResponse.Data(0), Nothing)
Catch ex As ApiException
Return Nothing
End TryAny help would be much appreciated |
Beta Was this translation helpful? Give feedback.
Answered by
valmoz
Sep 9, 2022
Replies: 1 comment 8 replies
-
|
Hi Diego, Thanks |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
valmoz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Diego,
really strange.
Could you please contact our customer support, linking this discussion? I need to check some sensible data to verify your case and I don't want to publish it in this public discussion.
Thanks
Mauro