Is there a limit on api.global data being passed?

Question

When passing api.global data from a Quote header to a line item logic, is there a limit on the amount of data that can be passed? My guess is that the JVM is basically the limit, but I want to double check.

Answer

The limit is approx. 16 MB and it is defined by the DEFAULT_MAX_PACKET_SIZE parameter.

This limit applies only when api.global is persisted. The Quote header and line item is the same thread. So there is no need to serialize/persist in between. The limit is used just for serialization, i.e., lists => dirty pass hand over.

Found an issue in documentation? Write to us.