Skip to content

Commit 3514882

Browse files
committed
Updated APIs
Coupon, transaction, organization, points, task, and index.html
1 parent aebc840 commit 3514882

File tree

8 files changed

+408
-48
lines changed

8 files changed

+408
-48
lines changed

build/index.html

Lines changed: 236 additions & 16 deletions
Large diffs are not rendered by default.

source/includes/_coupon.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coupon
1+
# Coupon
22
Coupon represents store promotions or discounts created through Capillary Campaign Manager. A single campaign could contain one or more coupons or coupon series. Coupons are issued to loyalty or non-loyalty customers through SMS or email.
33

44
You cannot create new coupons using coupon APIs. You can just send or retrieve coupons that are already created in your campaigns. Hence, it is important to note the coupon code, coupon id or coupon series id for making API calls.
@@ -221,7 +221,7 @@ code | Coupon code that you want to issue to the customer
221221

222222
<aside class="warning"> You can pass either coupon id or code. Any one parameter is required</aside>
223223

224-
## Redeem Coupons
224+
## Redeem Coupon
225225

226226
```html
227227
# Sample Request
@@ -362,7 +362,7 @@ Batch Support | No
362362
### Request URL
363363
`http://{host}/v1.1/coupon/redeem?{identifierName}={identifierValue}&format={xml/json}`
364364

365-
### Request Parameters
365+
### Request Body Parameters
366366
Parameter | Datatype | Description
367367
--------- | -------- | -----------
368368
identifierName* | enum | Unique identifier of the customer whose coupon needs to be redeemed.
@@ -371,6 +371,9 @@ code | string | Coupon code that need to be redeemed.
371371
validation_code | string | Validation code is required for the orgs that use validation based redemption.
372372
number | string | Transaction number against which the coupon needs to be redeemed.
373373
amount | double | Transaction amount against which the coupon is redeemed.
374+
custom_fields | obj | Coupon redemption level custom fields.
375+
name | string | Name of the custom field.
376+
value | string | Custom field value.
374377

375378
<aside class="warning"> You need to pass either `code` or `id` as applicable </aside>
376379

source/includes/_customer.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ optin_status=true | - | Returns the services (SMS/email) to which the customer h
18851885
expiry_schedule=true | - | Returns the details of points expiry summary with number of points to expire, program ID, and date and time of expiry.
18861886
expired_points=true | - | Returns the details of expired points of the customer.
18871887
points_summary=true | - | Returns the history of points issued and redeemed.
1888-
promotion_points=true | - | Returns the history of promotional points issued and redeemed. It also shows the store that issued the points and expiry date for each set of points issued.
1888+
promotion_points=true | - | Returns the history of promotional points issued and redeemed. It also shows the store that issued the points and expiry date for each set of points issued. You can get up to 1000 results (maximum limit).
18891889
membership_retention_criteria=true | - | Returns the criteria set for membership or tier retention (usually for membership based loyalty program).
18901890
tier_upgrade_criteria=true | - | Returns the tier upgrade criteria configured in `tier_update_criteria` object of response payload.<br>This is supported only if the tier upgrade strategy is based on Lifetime Points, Lifetime Purchases, or Current Points, but not on tracker based strategy. Also, you will not see upgrade criteria if the customer is in the highest tier.
18911891
mlp=true | - | Retrieves the details of each loyalty program of the customer if the org has multiple loyalty programs (multi-brand loyalty).
@@ -3661,7 +3661,7 @@ https://us.api.capillarytech.com/v1.1/customer/referrals&mobile=9197407983xx
36613661
<element>
36623662
<identifier>971564265901</identifier>
36633663
<invited_on>2020-01-29 13:37:36.0</invited_on>
3664-
<name>Siddhant</name>
3664+
<name>Siva</name>
36653665
<till>
36663666
<code>jotun.uae.admin.2</code>
36673667
<name>jotun.uae.admin.2</name>
@@ -3670,7 +3670,7 @@ https://us.api.capillarytech.com/v1.1/customer/referrals&mobile=9197407983xx
36703670
<element>
36713671
<identifier>97150000099</identifier>
36723672
<invited_on>2020-01-29 13:55:32.0</invited_on>
3673-
<name>Harry Test</name>
3673+
<name>Harry</name>
36743674
<till>
36753675
<code>jotun.uae.admin.2</code>
36763676
<name>jotun.uae.admin.2</name>
@@ -3679,7 +3679,7 @@ https://us.api.capillarytech.com/v1.1/customer/referrals&mobile=9197407983xx
36793679
<element>
36803680
<identifier>97150000099</identifier>
36813681
<invited_on>2020-01-30 14:56:12.0</invited_on>
3682-
<name>Test</name>
3682+
<name>Jim</name>
36833683
<till>
36843684
<code>jotun.uae.admin.2</code>
36853685
<name>jotun.uae.admin.2</name>
@@ -3779,7 +3779,7 @@ https://us.api.capillarytech.com/v1.1/customer/referrals&mobile=9197407983xx
37793779
},
37803780
{
37813781
"identifier":"971564265901",
3782-
"name":"Siddhant",
3782+
"name":"Siva",
37833783
"invited_on":"2020-01-29 13:37:36.0",
37843784
"till":{
37853785
"code":"jotun.uae.admin.2",
@@ -3788,7 +3788,7 @@ https://us.api.capillarytech.com/v1.1/customer/referrals&mobile=9197407983xx
37883788
},
37893789
{
37903790
"identifier":"97150000099",
3791-
"name":"Harry Test",
3791+
"name":"Harry",
37923792
"invited_on":"2020-01-29 13:55:32.0",
37933793
"till":{
37943794
"code":"jotun.uae.admin.2",
@@ -3797,7 +3797,7 @@ https://us.api.capillarytech.com/v1.1/customer/referrals&mobile=9197407983xx
37973797
},
37983798
{
37993799
"identifier":"97150000099",
3800-
"name":"Test",
3800+
"name":"Jim",
38013801
"invited_on":"2020-01-30 14:56:12.0",
38023802
"till":{
38033803
"code":"jotun.uae.admin.2",
@@ -4647,12 +4647,12 @@ HTTP Method | POST
46474647
Batch Support | Yes
46484648

46494649
### Request URL
4650-
`https://{host}/v1.1/customer/subscriptions?format={xml/json}`
4650+
`https://{host}/1.1/customer/subscriptions?format={xml/json}`
46514651

46524652
### Request Body Parameters
46534653
Parameter | Datatype | Description
46544654
--------- | -------- | -----------
4655-
mobile/email/external_id/id* | Provide any of the customer identifiers to update subscription details.
4655+
mobile/email/external_id/id* | string | Provide any of the customer identifiers to update subscription details.
46564656
priority* | enum | Specify the service that you want to update. Value: `TRANS` for personalized messages, and `BULK` for campaign or promotional messages.
46574657
scope | enum | Set scope to 'all' always.
46584658
channel* | enum | Pass the communication channel that you want to update. Value: `sms`, `email`.

source/includes/_organization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ http://apac.api.capillarytech.com/v1.1/organization/entities?format=json&type=ti
441441
}
442442
}
443443
```
444-
Retrieves the details of zones, stores, store servers, concepts or TILLs configured for the current organization.
444+
Retrieves the details of zones, stores, store servers, concepts or TILLs configured for the current organization. By default, it fetches up to 200 entities.
445445

446446
### Resource Information
447447
| | |
@@ -467,7 +467,7 @@ sub_entities_count | int | Limit the number of sub-entities to retrieve for each
467467
details | enum | Pass `basic` to see only basic information excluding currency, time-zone, and language information.
468468
exclude_locale | enum | Pass `1` to exclude time zone details, `0` to retrieve base_timezone details of an entity. Default value is `0`.
469469
start_id | long | Fetches entities that are above the offset number you pass. Offset is the position of the entity in the db record. The value is assigned based on the sequence of creation. For example, start_id=10 retrieves all the entities from record number 11.
470-
limit | int | Limit the number of entities to retrieve.
470+
limit | int | Limit the number of entities to retrieve. Default value is 200.
471471
modified_since | date | Retrieves the entities that are modified on or after a specific date. Pass the date in `YYYY-MM-DD` format.
472472
active_only | boolean | Pass `true` to retrieve the list of only active stores.
473473
scope | string | Default value: `STORE_CUSTOM_FIELDS`.

source/includes/_points.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Points represent loyalty points of an organization that are issued to the loyalt
55
Points cannot be issued through APIs. It can be issued only through modules such as Loyalty Manager, Data Import and Member Care.
66
</aside>
77

8-
The APIs of points entity are interdependent. For example, to redeem points, first you need to check whether a customer can redeem those points (`isreedemable`), validate customer's registered mobile number by issuing validation code, and then redeem points using the validation code received by the customer.
8+
The APIs of points entity are interdependent. For example, to redeem points, first you need to check whether a customer can redeem those points (`isredeemable`), validate customer's registered mobile number by issuing validation code, and then redeem points using the validation code received by the customer.
99

1010
The points entity allows you to perform the following tasks:
1111

@@ -18,7 +18,7 @@ The points entity allows you to perform the following tasks:
1818
> Sample Request
1919
2020
```html
21-
http://us.intouch.capillarytech.com/v1.1/points/isredeemable?points=100&issue_otp=true&mobile=44700900999&format=json
21+
http://us.intouch.capillarytech.com/v1.1/points/isredeemable?program_id=504&points=100&issue_otp=true&mobile=44700900999&format=json
2222
```
2323
> Sample Response
2424
@@ -145,6 +145,8 @@ Parameter | Datatype | Description
145145
--------- | -------- | -----------
146146
identifier* | enum | Pass any of the identifier type of the customer.
147147
value | string | Pass the respective identifier value of the customer to issue validation code.
148+
program_id | long | Unique ID of the loyalty program from which points need to redeem.
149+
group_redemption | boolean | Pass `true` for group redemption - points earned in one program need to redeem in a different program of the org.
148150
points* | int | Number of points to redeem.
149151
issue_otp | boolean | Pass `true` to issue OTP if the validation is successful.
150152
validation_code | string | OTP issued to the customer's mobile number.
@@ -295,7 +297,8 @@ http://us.intouch.capillarytech.com/v1.1/points/redeem?validation_type=SMS&progr
295297
"transaction_number": "red123",
296298
"till_id": "",
297299
"notes": "10 points redemption by SMS.",
298-
"validation_code": "4PZGXC"
300+
"validation_code": "4PZGXC",
301+
"group_redemption": "false"
299302
}
300303
]
301304
}
@@ -319,6 +322,7 @@ http://us.intouch.capillarytech.com/v1.1/points/redeem?validation_type=SMS&progr
319322
<till_id />
320323
<transaction_number>red123</transaction_number>
321324
<validation_code>4PZGXC</validation_code>
325+
<group_redemption>false</group_redemption>
322326
</element>
323327
</redeem>
324328
</root>
@@ -445,6 +449,8 @@ transaction_number | string | Provide the transaction number for which the point
445449
validation_code* | string | Provide the validation code received by the customer through `points/validationcode`.
446450
redemption_time | date-time | Provide the redemption date and time in YYYY-MM-DD HH-MM-SS format.
447451
program_id | long | Program id associated to the points that you want to redeem. Required only for orgs with MLP enabled.
452+
till_id | string | Till ID from which points are redeemed.
453+
group_redemption | boolean | Pass `true` for cross program redemption, that is, redeem loyalty points earned in a loyalty program in a different loyalty program of the org. Default value is `false`.
448454

449455
<aside class="notice">Parameters marked with * are mandatory.</aside>
450456

@@ -499,7 +505,7 @@ Code | Description
499505
814 | No points were redeemed on this transaction number
500506
815 | Unable to process points at this moment. Please try again later
501507
816 | Unable to find customer in this organization
502-
817 | Points redemption failed
508+
817 | Points redemption failed.
503509
818 | Points you are trying to redeem are more than the available points
504510
819 | Points you are trying to redeem are more than the maximum allowed redemption limit.<br> Unable to send message to customer
505511
820 | Unable to process. Customer is marked as fraud
@@ -514,6 +520,7 @@ Code | Description
514520
860 | Unable to issue OTP
515521
881 | Customer is not registered into the loyalty program
516522
888 | Configuration is invalid. Please report to Capillary Support
523+
889 | Points processing failed. Please try again later.
517524
894 | Unable to process points at this moment. Please try again later
518525
895 | Loyalty program is not configured for your organization
519526
898 | Unable to process points at this moment. Please try again later

source/includes/_task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ http://us.api.capillarytech.com/v1.1/task/reminder?format=xml&only_for_stores=tr
13931393
<local_id></local_id>
13941394
<time>2016-05-30 12:12:12</time>
13951395
<created_by>453345</created_by>
1396-
<!-- created_by needs to be assoc_id -->
1396+
<!-- created_by needs to be associate_id of the admin user -->
13971397
<template>Please note this</template>
13981398
<remindee_id>1245332</remindee_id>
13991399
</reminder>

source/includes/_transaction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,8 @@ old_type | enum | Previous transaction type - usually `NOT_INTERESTED` for retro
22022202
```html
22032203
https://us.api.capillarytech.com/v1.1/transaction/get?number=BILL7&format=json
22042204
```
2205+
2206+
22052207
> Sample Response
22062208
22072209
```json

0 commit comments

Comments
 (0)