Using our Custom Sample IDs, Overriding the ID Server

I am curious, is it possible to use outside sources for sample ids? For example we create barcodes using a separate system. We send those to barcodes to clients and they return the sample with our barcode attached.

I have tried to use the api to create samples using my custom id, but it seems that part of the request is simply ignored.

Thanks!