added code samples for VC API and Cart API