Register | Login | Feedback | 日本

mokugift rewards
The meaningful and effective way to motivate your customers

Rewards Home | How it works| How we plant| FAQ| Developer Center

Contact mokugift:

415.508.6658

sales@mokugift.com

Contact Form

Developers Menu

Mokugift API Home
Mokugift Sandbox
Login to access IDs & Passcodes

Mokugift API: Query Rewards for the Month

Description

This call would return the list of all Rewards created for the specified campaign in the specified month.

API version = 1.0

Request Information

EndPoint URL:

http://www.mokugift.com/api/rewards_in_month/<campaign_id>/<month>/<year>

HTTP Method:

GET

Request Parameters

Parameter

Value

Description

<campaign_id> (on URL)

String (required)

The unique ID for the reward campaign.

<month> (on URL)

Integer

The specified month {1..12}. If both month and year do not exist, it implies the current month & year.

<year> (on URL)

Integer

The specified year, eg. 2008. If both month and year do not exist, it implies the current month & year.

Sample Request 1: (current month)

Sample Request 2:

Response Elements

Fields

Parent Field

Description

result

n/a

Root element that contain the whole response

version

result

Version of the Mokugift API.

status

result

Status of this call: Success or Failed.

summary

result

The summary of all activites for the campaign in the specified month.

reward_count

summary

The number of rewards created for the campaign in the specified month.

tree_count

summary

The number of trees planted for the campaign in the specified month.

rewards

result

This element contain all the rewards in the specified month.

reward

rewards

This element contain all the information of each reward.

id

reward

Unique ID of the reward.

date

reward

The date when the reward was created.

recipient_email

reward

The email of the recipient of the reward.

tree_count

reward

The number of trees planted for the reward.

error

result

Only when status=Failed. Error Information: code & description. Please see Complete list of Errors

Sample Response 1:

Sample Response 2: (Example error when <month>=13)

Copyright © 2009 Mokugift All Right Reserved