Getting Started with For Me To Coupon
If you would like to take a look at some sample code for processing
the FMTC Deals feed, you may download that here.
These demo files contain everything you need to setup a database and
process your feed.
Below we've included some tips for writing your own integration.
There are two fields that you should pay special attention to when processing the FMTC Deals feed.
Below we've included some tips for writing your own integration.
There are two fields that you should pay special attention to when processing the FMTC Deals feed.
- The 'status' field - This is the easiest way to determine if a couponID is valid or not. If the status is 'active' then the deal is valid at the time of download. Be sure to only display the deal according to the begin and expire dates, however.
- The 'lastupdated' field - This will contain the date and time that the deal was last updated. In the demo script available above, comparing the last updated value in the feed to the value stored internally is an easy way to determine if the couponID needs to be processed further.
-
Full Feed Process - This is best used to populate your database and, if necessary, sync your internal database to the active couponIDs in our feed.
- Using the getDeals HTTP call with no arguments delivers the entire database of deals.
- When processing the full feed, only couponIDs with the status of 'active' and with an 'expired' time in the future should be displayed on your site. If you are processing the feed for the first time, ignore any couponIDs that don't have the status 'active'. If you are processing the feed for the purpose of syncing your database with the feed any coupon IDs with a status other than 'active' should be removed. Likewise, any couponIDs you previously received from FMTC that are no longer found in the full feed should be removed.
- Incremental Process - This is the ideal solution for keeping your
internal database up-to-date with FMTC. Here are some notes on processing
the feed incrementally.
- Querying the getDeals API with the &incremental=1 switch will return to you all the couponIDs that have been inserted, updated, or deleted since your last download. As you process the downloaded couponIDs, pay special attention to any couponID with the status of 'expired' or 'deleted'. These can be removed immediately from your database and must be prevented from displaying to visitors. Any couponIDs with the status of 'active' and not in your local databases should be inserted.
- If a couponID comes in the incremental feed and is already in
your database, it is an updated deal and we are letting you know
that the couponID should be updated in your system. In this case,
you can look to the Change Audit field to determine which field(s)
changed since your last download.
- For example, "Categories Change" denote that the "Categories" field has changed, "Expiration Date Change" denotes that the ExpirationDate field has changed.
Creating Secondary Logins
Only one person can be logged into your For Me To Coupon account at a time. If you have multiple members of your team that need access at once, you can create additional logins for those team members using these instructions.
- Login to your For Me To Coupon account.
- Click on Account Settings.
- On the right hand side is a box called Additional Logins.
- Enter your team member's name, desired username, email address, and password.
- Click Save Settings.
- The page will refresh and the new login will be listed above the form fields. If your team member's email address or username are already in existence, you'll receive an error and should contact us to sort out the issue.