The Group Commerce platform allows purchases with or without an associated profile (a user account). A purchase without a profile does not require the user to be signed up or logged in when purchasing. Because of this, the purchase order is not associated with any particular profile. If a user then signs up (creates a profile) after placing orders without a profile, he may want to associate those orders with his new profile so that he can view them in his purchase history page. This method, linkable orders, is the first of two steps in that process (the second step is Link Orders).
Linkable orders finds orders that have been placed with a specific email address (presumably the email address that the user created his new profile with) and that are not associated with that new profile. It marks those orders with a confirmationToken, and returns both the confirmationToken and a list of the ids of those orders. It optionally sends an email to the email address that can be used to verify that the user actually owns that email address. The email will contain a link of the form
Note that linkable orders are only associated with consumers with consumer type Unknown or Visitor. This means that if an order was placed by a consumer with consumer type Account, it is not eligible for linking, and will not be returned for a get linkable orders request. Purchases without an associated user account will be associated with consumers of type Visitor, and purchases with an associated user account will be associated with consumers of type Account.
See Link Orders for the next step.
userKey - the user key of the user's newly created account that he wants to link his old anonymously-purchased orders to
base response fields
confirmationToken - The unique confirmation token that marks the old orders and can be used to verify that the consumer owns the email address used to make the anonymous purchases.
orderIds - A list of the order ids that were placed anonymously by the email address. These orders will be linked to the user's new profile during the Link Orders call.