SDK version
10.1
PHP version
8.1
What went wrong?
Previously only The Netherlands had support for setPackageType(1) (mailbox packages).
Recently support was added for more countries, including Belgium.
But I get this error from your API when setting pakacge type to 1, for an Belgium address:
data.shipments[0].options.tracked Shipment option tracked is required and must be 1 for international mailbox packages - Unknown error: {"fields":["data.shipments[0].options.tracked"],"human":["data.shipments[0].options.tracked Shipment option tracked is required and must be 1 for international mailbox packages"]}. Please contact MyParcel.
But there is no setTracked(1) method available.
Pull request
I made a quick mockup implementation to set it using $consignment->setTracked(1).
main...ymschaap:sdk:main
SDK version
10.1
PHP version
8.1
What went wrong?
Previously only The Netherlands had support for setPackageType(1) (mailbox packages).
Recently support was added for more countries, including Belgium.
But I get this error from your API when setting pakacge type to 1, for an Belgium address:
But there is no setTracked(1) method available.
Pull request
I made a quick mockup implementation to set it using $consignment->setTracked(1).
main...ymschaap:sdk:main