Hi All,
I have an API call to make as follows:
PUT /v1/{location_id}/items/{item_id}/fees/{fee_id}
My Code is as follows:
The logged error I am getting back from the job is:
ResponseError. Reason: Bad Request, Response: {"type":"bad_request","message":"invalid json"}
The issue is ABMShared.feeTaxID {fee_id} is not in json format, I have tried to wrap it in brackets but is does not work.
Thanks for some guidance in advance.
I have an API call to make as follows:
PUT /v1/{location_id}/items/{item_id}/fees/{fee_id}
My Code is as follows:
B4X:
Dim j As HttpJob
j.Initialize("j", Me)
j.PostString("https://connect.squareup.com/v1/" & myLocation & "/items/" & itemToken & "/fees/", ABMShared.feeTaxID)
j.GetRequest.SetHeader("Authorization", myBearer)
j.GetRequest.SetContentType("application/json")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.JobName)
End If
j.Release
The logged error I am getting back from the job is:
ResponseError. Reason: Bad Request, Response: {"type":"bad_request","message":"invalid json"}
The issue is ABMShared.feeTaxID {fee_id} is not in json format, I have tried to wrap it in brackets but is does not work.
Thanks for some guidance in advance.