Extend and interact with
Commission Factory
When a request fails validation, the API returns a standard error object describing every reason the request was rejected.
The response body contains an Errors array of strings:
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"Errors": [
"MerchantId is required.",
"ReportedCurrencyCode must be a 3-letter ISO currency code."
]
}
HTTP/1.1 400 Bad Request
Content-Type: application/xml
<Error xmlns="https://api.commissionfactory.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Errors xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>MerchantId is required.</a:string>
<a:string>ReportedCurrencyCode must be a 3-letter ISO currency code.</a:string>
</Errors>
</Error>