Contracts based on dynamic purchasing systems