We would like that you implement the use of verbose in Create parcel. This gives more detailed information from the carrier when it fails. So instead of getting "Announcement failed" exception that means nothing to the user, it will give more details like: non_field_errors: "Service error: Die angegebene Straße kann nicht gefunden werden."
This example message comes from a shipment with DHL Germany.
From the Sendcloud API documentation:
Developers
If you are using this API for development purposes, you might want to use the errors query string in the URL. That allows you to visualize the errors from the carrier.
Hi,
We would like that you implement the use of verbose in Create parcel. This gives more detailed information from the carrier when it fails. So instead of getting "Announcement failed" exception that means nothing to the user, it will give more details like: non_field_errors: "Service error: Die angegebene Straße kann nicht gefunden werden."
This example message comes from a shipment with DHL Germany.
From the Sendcloud API documentation:
We have tested it, and the code below works.
public abstract class SendCloudApiAbstractResource { protected readonly SendCloudApi Client; protected string HostUrl = "https://panel.sendcloud.sc/api/v2/"; protected string Authorization; protected bool CreateRequest = true; protected bool GetRequest = true; protected bool UpdateRequest = true; protected bool DeleteRequest = false; protected string SingleResource = string.Empty; protected string ListResource = string.Empty; protected string CreateResource = string.Empty; protected string UpdateResource = string.Empty; protected string Resource = string.Empty; protected string DateTimeFormat = "yyyy-MM-dd HH:mm:ss"; protected string Verbose = "?errors=verbose-carrier";