API Shipment Endpoint: Stricter Field Validation

2025/07/11

To improve reliability, the Ship&co API / shipments endpoint now enforces tighter validation. Requests that fail any rule are rejected with descriptive error messages.

Key changes

  1. setup.pack_size — must be an integer (e.g., 80); strings like "80" are invalid.

  2. setup.print_start_location — must be an integer for A4 label services (yuupacket_regular, yuumail_regular, yamato_direct_mail, yamato_nekopos, yamato_kuroneko_yuupacket).

  3. products.hs_code — if supplied, must be 6–15 digits; omit the field entirely if no code is available.

  4. customs.duty_paid & customs.content_type — these fields must live inside the customs object, not inside setup.


© 2014-2025 Ship&co made with ❤ in Kyoto, Japan. All rights reserved.

〒604-8072 京都市中京区八百屋町117

© 2014-2025 Ship&co made with ❤ in Kyoto, Japan. All rights reserved.

〒604-8072 京都市中京区八百屋町117

© 2014-2025 Ship&co made with ❤ in Kyoto, Japan. All rights reserved.

〒604-8072 京都市中京区八百屋町117