Ebay MIP upload *.csv error "Item.Country missing" - api

currently I am trying to upload articles to ebay with https://developer.ebay.com/products/mip but getting a result file back where for each article the error appears:
No <Item.Country> exists or <Item.Country> is specified as an empty tag in the request.
Every required field shown here https://developer.ebay.com/devzone/merchant-products/mipng/user-guide-en/default.html#definitions-combined-feed.html?TocPath=Inventory%2520management%257CFeed%2520definitions%257C_____5 is present and also the "Localized For" field.
Does someone have a clue what I miss to make it work?
This is the problematic CSV:
SKU,Return Policy,Payment Policy,Shipping Policy,Category,Channel ID,Fulfillment Type,List Price,Location ID,Picture URL 1,Condition,EAN,Product Description,Title,Localized For,Total Ship to Home Quantity,VATPercent,Best Offer Enabled,BO Auto Accept Price,BO Auto Decline Price,Country
1011689,Return Policy - Test Text,Payment Policy - Test Text,Shipping Policy - TestText,,EBAY_DE,SHIP_TO_HOME,10,75172 Pforzheim,https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/EBay_logo.svg/1000px-EBay_logo.svg.png,NEW,4008153740657,Really long description,Title of article,de_DE,10,19,true,10,5,DE
and this the response csv:
SKU, Group ID, Locale, Channel ID, Item ID, Status, Message Type, Message ID, Message
1011689,,de_DE,EBAY_DE,,FAILED,ERROR,10009,No <Item.Country> exists or <Item.Country> is specified as an empty tag in the request.

The Problem was that on the Merchant Platform Frontend no Store Location was set.
Also policies have to be created before.

Related

Unable to POST NZ employee openingBalances to Xero?

I am attempting to create a single opening balances record against an existing employee but keep getting a 400 Bad Request response with this detail...
At least one NZ opening balance item is required in the request
I am following the instructions as per this documentation...
https://developer.xero.com/documentation/api/payrollnz/employeeopeningbalances#post-opening-balances
URL : {DestinationID} is properly replaced with the employee GUIDhttps://api.xero.com/payroll.xro/2.0/employees/{DestinationID}/openingBalances
JSON Body[{"periodEndDate":"2011-01-30T00:00:00","daysPaid":5.00,"unpaidWeeks":0.00,"grossEarnings":1442.31}]
The Xero forums and support is pretty unreliable so I'm posting here in the hopes for a better response.
After some trial and error using the API Explorer that Xero provides I was able to get it working using their example....
I eventually learned that daysPaid and unpaidWeeks must both be integer whole numbers or else it fails.... The error message provided is misleading but this resolves the problem.

How do I get the documentID in Business Objects Restful API?

I'm trying to figure out how to download a PDF from the BOE restful API.
I've been following the answer from ƘɌỈSƬƠƑ here:
SAP BI Open Doc URL for retrieving pdf
I was able to accomplish step 1 (getting the token).
But on the second step, it mentions using the documentID.
e.g.
/biprws/raylight/v1/documents/5690743/parameters
On the front end of BOE, if I click on the report, and choose Properties, it shows me that the "ID/CUID" is:
ID, CUID:746001, AdgNq_GsaqhOqnzc4gRN_Jg
Does that mean the "DocumentID" is 746001?
I'm not sure if I'm using the correct ID, because when I hit:
/biprws/raylight/v1/documents/746001/parameters
I get:
<error>
<error_code>100</error_code>
<message>Rule not respected (Argument 'reportIds' must not be null)</message>
</error>
You don't need to obtain prompt information (/parameters endpoint).
I think you are using the correct ID since the error is on the report. You obtain a 404 Not Found response status, if the document does not exist.
After a successful login, simply call /biprws/raylight/v1/documents/5690743 and add to your request an header with name Accept and value application/pdf. Of course the X-SAP-LogonToken should also be provided.
It will export the whole document. If you only need a specific report, you need to retrieve its ID first. Call the URI /biprws/raylight/v1/documents/5690743/reports with Accept header equals to application/json.
Choose one of the report, and get its ID (for example, in my case reportID equals 1234). Then you can export the report as a PDF by calling the URI: /biprws/raylight/v1/documents/5690743/reports/1234 with Accept header equals to application/pdf.

SoftLayer blockstorage status

I am trying to retrieve SoftLayer Block storages.
I am using the following URL:
https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask[iscsiNetworkStorage.volumeStatus]
from which I recieve JSON-data.
What I want to know is, if the ISCSI Storage status is "ACTIVE" or something similar.
Here is the JSON-data which is received:
"capacityGb":20
"volumeStatus":"PROVISION_COMPLETED"
"volumeStatus":{"createDate":"2016-02-02T00:49:19-06:00","message":"Volume Provisioning has completed.","scheduleId":null,"typeId":314,"volumeId":8904469}}
How do I get to know the status?
The property used to know the status of a Network storage volume is volumeStatus , please see: SoftLayer_Network_Storage datatypes.
It seems when ‘volumeStatus’ value is null, the item is “inactive”, otherwise if it has a value (“Volume Provisioning has completed.”), the item is "active".
https://[username]:[apikey]#api.softlayer.com/rest/v3/SoftLayer_Account/getIscsiNetworkStorage?objectMask=mask[username,volumeStatus]
Method: GET
References:
SoftLayer_Account::getIscsiNetworkStorage

Create custom Kibana dashboard with custom query

I have 2 log files, 1 for Apache and another for a custom app. To query the logs for errors, the Apache log has log level tag as ERROR while the custom app has a response code tag 500.
I have a dashboard that shows the total errors in Apache log that matches tag = Error and second for total errors that match response code = 500.
My challenge is how to combine both errors as one rather than separating it. I have searched online for documentation on how to define query as global error = total with tag = error in apache log TYPE & total with response = 500 in xxx log type.
Thanks
Assuming you don't want to somehow correlate Apache and application logs but simply want all events that match either condition, i.e. the sum of both types of errors, this works (adjust field names to taste):
(type:apache AND tags:error) OR (type:custom AND response_code:500)

422 Unprocessable Entity during fulfillment API call

I am receiving a 422 Unprocessable Entity error when attempting to add a tracking number to a fulfillment to an order via a POST to the below url with the message body below. The order is still open and all lines should be fulfilled with the same tracking number. The error body received is "All line items of a fulfillment must use the same fulfillment service". I am able to authenticate successfully first and the GET API for this order works correctly.
https://*.myshopify.com/admin/orders/{order id}/fulfillments.json
You cannot create a single fulfillment where line items cannot be contained in the same shipment. Check the line items you are trying to fulfill, if one of them uses a different service, you won't be able to create that fulfillment.
Instead you'll need to create N separate fulfillments where N is the distinct number of fulfillment services for the line items in that order.