ࡱ > i k h
p bjbj .l `_`_p \ \) ( ( ( ( ( ( ( $ + - | ) ) ) ( ( `zFOS ( ,) 0 \) B. ? B. x B. ) ) M Z \) B. X r : [Advertiser] Send Coupon API
Description:
This API allows you to use an application to send coupon to a mobile without having to log into the advertiser's dashboard.
Url:https://mcpn.us/limeApi?ev=sendCoupon
Parameters
Parameter Name (Case
Sensitive)
ValueDescriptionRemarksuser (mandatory)Advertiser usernameThe advertisers username that matches the api_idapi_id (mandatory)Advertiser Api IdThe advertisers api_id that matches the usernameCan be generated from the advertiser's profile. Click on "Edit Profile."id (mandatory)Coupon IDThe coupon ID that need to sendmN (mandatory)Mobile NumberMobile Number to sendfirst (optional)First nameThe mobile numbers owner first namelast (optional)Last nameThe mobile numbers owner last namegender (optional)M or FThe mobile numbers owner genderemail (optional)Email addressThe mobile numbers owner emailbirthday (optional)Birth Day 1-31The mobile numbers owner birth daybirthmonth (optional)Birth Month 1-12The mobile numbers owner birth monthbirthyear (optional)Birth YearThe mobile numbers owner birth yearzip (optional)Zip CodeThe mobile numbers owner zip codeuserDefine1StringValue of the first custom fieldWill be added to the user only if custom fields have been configureduserDefine2StringValue of the second custom fieldWill be added to the user only if custom fields have been configureduserDefine3StringValue of the third custom fieldWill be added to the user only if custom fields have been configureduserDefine4StringValue of the fourth custom fieldWill be added to the user only if custom fields have been configureduserDefine5StringValue of the fifth custom fieldWill be added to the user only if custom fields have been configureduserDefine6dayNumberDay section of custom field 6. (Values 1-31)userDefine6monthNumberMonth section of custom field 6. (Values 0-11)userDefine6yearNumberYear section of custom field 6. (Value YYYY)userDefine7dayNumberDay section of custom field 7. (Values 1-31)userDefine7monthNumberMonth section of custom field 7. (Values 0-11)userDefine7yearNumberYear section of custom field 7. (Value YYYY)formatXml/jsonOptional for sending the parameters as xml file or json. If present then only values from XML/JSON will be used.isJsontrue/falseSet to true if need response in JSON formatDefault is false
Return Code
If the API succeeds, then it will return with status code 200.
If an error occurs or there is an invalid parameter, then it returns with status code 400 or 500 with an error message in the response.
If an optional parameter is invalid than the system will ignore this parameter and the API continue as it was not supplied.
Example:
https://mcpn.us/limeApi?ev=sendCoupon&user=advertiser@gmpizza.com&api_id=q5JA73WRLy13822c&id=123456&mN=15555555555
Example for XML:
https://mcpn.us/limeApi?ev=sendCoupon&format=xml
XML File:
user
api key
ID
Mobile
FirstName
LastName
Gender
Email
yyyy-MM-dd'T'HH:mm:ss'Z'
ZipCode
UserDefine1
UserDefine2
UserDefine3
UserDefine4
UserDefine5
yyyy-MM-dd'T'HH:mm:ss'Z'
yyyy-MM-dd'T'HH:mm:ss'Z'
true
Example for JSON:
https://mcpn.us/limeApi?ev=sendCoupon&format=json
JSON File:
{
"user": "user",
"apiId": "apiId",
"id": "id",
"mobile": "mobile",
"firstName": "firstName",
"lastName": "lastName",
"gender": "gender",
"email": "email",
"birthDate": "yyyy-MM-dd'T'HH:mm:ss'Z'",
"zipCode": "zipCode",
"userDefine1": "userDefine1",
"userDefine2": "userDefine1",
"userDefine3": "userDefine1",
"userDefine4": "userDefine1",
"userDefine5": "userDefine1",
"userDefine6": "yyyy-MM-dd'T'HH:mm:ss'Z'",
"userDefine7": "yyyy-MM-dd'T'HH:mm:ss'Z'",
"isJson": "true/false"
}
+ H X \ ] c d o pp\G )h^lS h*
B*CJ OJ QJ ^J aJ ph333 'h*
0J B*CJ OJ QJ ^J aJ ph333 'h*
0J B*CJ OJ QJ ^J aJ phDDD #h^lS B*CJ OJ QJ ^J aJ ph333 #h*
B*CJ OJ QJ ^J aJ ph333 /h n h*
5B*CJ OJ QJ \^J aJ ph333 )hK 5B*CJ! OJ QJ \^J aJ! phDDD )h: 5B*CJ! OJ QJ \^J aJ! phDDD )h*
5B*CJ! OJ QJ \^J aJ! phDDD + d\ Z $If [$ \$ d\ [$ \$ gd*
d\ Z [$ \$ gd*
[$ \$ gd*
! 3 G y { |
#
,
4
5
6
:
?
U
V
X
Y
Z
[
\
h
v
ۿ hEi B*ph333 h7 B*ph333 h;S h;S B*ph333 h*
CJ aJ h*
B*ph333 'h*
0J B*CJ OJ QJ ^J aJ phDDD #h*
B*CJ OJ QJ ^J aJ ph333 #h! B*CJ OJ QJ ^J aJ ph333 = ! 3 G y { \ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi { |
\ L L L > d\ Z $If gd;S d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi
,
6
V
X
\ L L L L d\ Z $If [$ \$ kdX $$If \ J p p 0 6 3 4 a bytEi X
Y
h
v
\ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi
\ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi
\ L L L L d\ Z $If [$ \$ kd\ $$If \ J p p 0 6 3 4 a bytEi
# & - N P Q b p # * , - 2 3 B M r t u x
#
*
+
,
7
8
>
?
_
`
p
hEi CJ aJ hEi hEi B*ph333 hEi B*ph333 h*
CJ aJ h*
B*ph333 T & - N P \ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi P Q b p \ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi \ L L L L d\ Z $If [$ \$ kd` $$If \ J p p 0 6 3 4 a bytEi * , \ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi , - B M r t \ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi t u \ L L L L d\ Z $If [$ \$ kdd $$If \ J p p 0 6 3 4 a bytEi +
\ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi +
,
8
?
`
\ L L L L d\ Z $If [$ \$ kd $$If \ J p p 0 6 3 4 a bytEi
\ L L L L d\ Z $If [$ \$ kdh $$If \ J p p 0 6 3 4 a bytEi + 2 S \ L L L L d\ Z $If [$ \$ kd
$$If \ J p p 0 6 3 4 a bytEi # $ * + 1 2 R S p ! " # ' ( T U V W g h i n o ( ) * + / 5 6 ; < = B C q r s t ~ h;S CJ aJ h;S h;S B*ph333 h) h;S B*ph333 hEi CJ aJ hEi B*ph333 R \ L L L L d\ Z $If [$ \$ kd
$$If \ J p p 0 6 3 4 a bytEi ! ( U V \ I I I I d\ Z $If [$ \$ gd;S kdl $$If \ J p p 0 6 3 4 a bytEi V W h o \ I I I I d\ Z $If [$ \$ gd;S kd $$If \ J p p 0 6 3 4 a byt/U \ I I I I d\ Z $If [$ \$ gd;S kd $$If \ J p p 0 6 3 4 a byt/U ) * \ I 6 6 6 d\ Z $If [$ \$ gd;S d\ $If [$ \$ gd;S kd|
$$If \ J p p 0 6 3 4 a byt/U * + < C r s \ I 6 I I d\ Z $If [$ \$ gd;S d\ $If [$ \$ gd;S kd. $$If \ J p p 0 6 3 4 a byt/U s t \ I 6 I I d\ Z $If [$ \$ gd;S d\ $If [$ \$ gd;S kd $$If \ J p p 0 6 3 4 a byt/U % ' ( , 5 : ; < = C D E I N O R S X b w z { 5 ; < b c h { źŨ #h
B*CJ OJ QJ ^J aJ ph333 #h*
B*CJ OJ QJ ^J aJ ph333 h; h
B*ph333 h
CJ aJ h*
h
B*ph333 h) h
B*ph333 h
B*ph333 h;S CJ aJ h;S h;S B*ph333 ; ; < \ I 6 I I d\ Z $If [$ \$ gd
d\ $If [$ \$ gd
kd $$If \ J p p 0 6 3 4 a byt/U < = D O { \ I 6 I I d\ Z $If [$ \$ gd
d\ $If [$ \$ gd
kdD $$If \ J p p 0 6 3 4 a bytEi c \ M M M M M M d\ Z [$ \$ gd*
kd $$If \ J p p 0 6 3 4 a bytEi 9 D E F G H I J K L M N O P \ ] ^ _ ` q ~ ۆpUU 5hNF 0J B*eh@fH ph333 q
r @ #hNF B*CJ OJ QJ ^J aJ ph333 h*
hta 5hZ=S 0J B*eh@fH ph333 q
r @ 5h{ 0J B*eh@fH ph333 q
r @ 5h*
0J B*eh@fH ph333 q
r @ #h*
B*CJ OJ QJ ^J aJ ph333 #h;S B*CJ OJ QJ ^J aJ ph333 ] ^ _ ` q ? ^ w 7$ 8$ H$ gdNF gdNF d\ [$ \$ gdNF gd*
d\ [$ \$ gd*
5 ? [ ^ w
* 5 R z ɷw )hW_ ho B*CJ OJ QJ ^J aJ ph333 #ho B*CJ OJ QJ ^J aJ ph333 )h*
hNF B*CJ OJ QJ ^J aJ ph333 hNF #hNF B*CJ OJ QJ ^J aJ ph333 5hNF 0J B*eh@fH ph333 q
r @ 5h` 0J B*eh@fH ph333 q
r @ . * R z " * + , > p q | ~ `gdo gdo d\ [$ \$ gdNF gdNF 7$ 8$ H$ gdNF
7$ 8$ H$ `gdNF z
! " $ * + , 5 8 < > K Y c k o p q u { | } ~ خخؓxt hNF 5h` 0J B*eh@fH ph333 q
r @ 5hNF 0J B*eh@fH ph333 q
r @ )h; hNF B*CJ OJ QJ ^J aJ ph333 )hW_ ho B*CJ OJ QJ ^J aJ ph333 #hNF B*CJ OJ QJ ^J aJ ph333 )h*
hNF B*CJ OJ QJ ^J aJ ph333 -~ ! #ho B*CJ OJ QJ ^J aJ ph333 )hd! hNF B*CJ OJ QJ ^J aJ ph333 )h*
hNF B*CJ OJ QJ ^J aJ ph333 #hNF B*CJ OJ QJ ^J aJ ph333 C I a ( T l n o p gd*
gdo gdNF ! * + . 5 F I K L R S V W ] _ ` a b c d n o r s | }
% ( * + )h*
hNF B*CJ OJ QJ ^J aJ ph333 #hNF B*CJ OJ QJ ^J aJ ph333 )hW_ hNF B*CJ OJ QJ ^J aJ ph333 M+ 4 5 6 9 Q T \ ^ _ ` k l m n o p )hW_ hNF B*CJ OJ QJ ^J aJ ph333 #hNF B*CJ OJ QJ ^J aJ ph333 )h*
hNF B*CJ OJ QJ ^J aJ ph333 , 1h/ =!"#$% $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 ,5 5p5/ 3 4
yt/U $$If !v h#v #vp#v:V 0 6 ,5 5p5/ 3 4
yt/U $$If !v h#v #vp#v:V 0 6 ,5 5p5/ 3 4
yt/U $$If !v h#v #vp#v:V 0 6 ,5 5p5/ 3 4
yt/U $$If !v h#v #vp#v:V 0 6 ,5 5p5/ 3 4
yt/U $$If !v h#v #vp#v:V 0 6 ,5 5p5/ 3 4
yt/U $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi $$If !v h#v #vp#v:V 0 6 5 5p5/ 3 4
ytEi x 2 & 6 F V f v 2 ( & 6 F V f v & 6 F V f v & 6 F V f v & 6 F V f v & 6 F V f v & 6 F V f v 8 X V ~ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 0 @ 6 6 6 6 6 _HmH nH sH tH @ ` @ *
N o r m a l CJ _H
aJ mH sH tH N @ 2 N *
H e a d i n g 3 d d @&[$\$ 5CJ \aJ D A` D D e f a u l t P a r a g r a p h F o n t R i@ R T a b l e N o r m a l 4
l 4 a ( k ( N o L i s t j j ^
T a b l e G r i d 7 :V 0 6 U 6 (A H y p e r l i n k >*B*ph B ^@ B 2Y{ N o r m a l ( W e b ) d d [$\$ * W`!* *
S t r o n g 5\B O 1B *
a p p l e - c o n v e r t e d - s p a c e B b`AB *
H T M L C o d e CJ OJ PJ QJ ^J aJ PK ! [Content_Types].xmlN0EH-J@%ǎǢ|ș$زULTB l,3;rØJB+$G]7O٭V