Answers.Body: <p>I am not sure why you need to import a discount code. A discount code is needed for online transactions so that civi knows to charge a reduced price yet still create a membership. Here the transaction has already taken place offline. </p>
  
  <p>Import the contributions for the actual amount paid, with a contributions source of, say, Student (or student discounted price if you think you might forget the student price was discounted).  Then import the memberships. There is no link between contributions and memberships when they are both imported, so the membership "won't care" how much money was paid for it.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-11T04:55:25.107Z
Answers.LastActivityDate: 2016-03-11T04:55:25.107Z
Answers.UserDisplayName: JoAnne
Body: <p>We offer a discounted membership to graduates of affiliated training programmes - to minimise the processing work, the course administrator fills out a template spreadsheet and sends it to us, and deposits the fees in bulk.
  We tidy the file, save it as csv then run a contacts import followed by a member import.</p>
  
  <p>Although we initially used a separate membership type with a lower fee, the problem of having to manually change membership type after one year led us to switch to applying standard individual memberships and creating a discount code.</p>
  
  <p>However, I can't find discount code anywhere in the field matching for either membership or contributions imports.
  How can I apply the discount so that contribution records do not show the full price?</p>
  
Tags: <civimember><import><cividiscount>
Title: Including discount codes in membership imports
ThreadText: # Including discount codes in membership imports
  
  (Asked by: username_0 on 2016-03-10)
  
  We offer a discounted membership to graduates of affiliated training programmes - to minimise the processing work, the course administrator fills out a template spreadsheet and sends it to us, and deposits the fees in bulk.
  We tidy the file, save it as csv then run a contacts import followed by a member import.
  
  Although we initially used a separate membership type with a lower fee, the problem of having to manually change membership type after one year led us to switch to applying standard individual memberships and creating a discount code.
  
  However, I can't find discount code anywhere in the field matching for either membership or contributions imports.
  How can I apply the discount so that contribution records do not show the full price?
  
  **Tags:** civimember, import, cividiscount
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-11. Score: 3
  
  I am not sure why you need to import a discount code. A discount code is needed for online transactions so that civi knows to charge a reduced price yet still create a membership. Here the transaction has already taken place offline.
  
  Import the contributions for the actual amount paid, with a contributions source of, say, Student (or student discounted price if you think you might forget the student price was discounted). Then import the memberships. There is no link between contributions and memberships when they are both imported, so the membership "won't care" how much money was paid for it.
  
  
  ---
  
  