Recent DDP changes have broken label retrieval for non DDP international orders
Hi,
For context, my workflow is the following: eBay and Etsy orders are retrieved via the respective integrations. Shipping services are then purchased via the website (https://business.parcel.royalmail.com/), but labels are then retrieved via the API integration, by calling "https://api.parcel.royalmail.com/api/v1/orders/<order number>/label?documentType=postageLabel&includeReturnsLabel=false&includeCN=true" with the relevant Authorization header.
Since end of last month/early September, this endpoint has been returning 400 bad request errors when calling the API, citing missing fields. However a) this issue only occurs via the API, not when generating the labels via the website and b) the fields it claims are missing aren't things that are provided by the API call.
Example response from that endpoint:
[[{"accountOrderNumber":9043,"channelOrderReference":"3793323589","code":"9","message":"Required information are missing for Delivery Duty Paid services (Trading names: 'VAT number' is empty)"},{"accountOrderNumber":9043,"channelOrderReference":"3793323589","code":"11","message":"Required information are missing for Delivery Duty Paid services (Order: 'Phone number' is empty)"}]]
Regarding those errors, and why they are incorrect:
1) This only occurs when retrieving the labels via the API, the labels are generated correctly when doing so via the website.
2) "Required information are missing for Delivery Duty Paid services (Trading names: 'VAT number' is empty" This error is incorrect, as having not VAT number is completely valid behaviour and is in fact what the Click and Drop UI requests. We are a non VAT registered business, and as such do not have a VAT number. It is not a requirement when making shipments via the International Tracked and Signed service, and I believe is just overzealous request validation. I can work around this by inputting 'na' as in N/A (text input doesn't allow '/' character) to avoid this error, but that would be incorrect given how the VAT number field is supposed to be populated.
3) "Required information are missing for Delivery Duty Paid services (Order: 'Phone number' is empty)" the phone number of the seller (sender, ourselves) has been provided. If this is instead referring to the recipient phone number, which can be input via the address form, then the error is incorrect as the phone number is not a required field for this service
-
Anonymous commented
Also experiencing this same issue since you rushed through the changes for the USA. I assume this will be fixed in the next release.