Japanese retailer Lawson has agreed to purchase all shares and receivables of smaller rival am/pm Japan Co. from Rex Holdings.