Get Control Number REST API to get the next control number for outbound EDI X12 and EDIFACT messages, including outgoing acknowledgments.
B2B Gateway
increases the current control number for the partner that you specify in the request and the API returns the next number in the sequence. You can use the number that the API returns as the control number in the next outbound message you send to the same partner with a custom mapping.