Reputation: 1
Error from shippo itself using their api reference
The Api documentation says commercial_invoice /commercialInvoice type is string , but validation says it's supposed to be a boolean . And this property is optional but it's being required when i try making a international shipment.
commercialInvoice?: string | undefined;
This is the error message i get
{"commercial_invoice":["Must be a valid boolean."]}
I have uninstalled the library and installed again, also tried making the commercial invoice a boolean , but i got an error that, it's a type of string.
Upvotes: 0
Views: 69
Reputation: 1
Shippo was having conflict between their validation schema and the type returned from their api. issue has been resolved with new version 2.2.4
Upvotes: 0