1. Overview
The OMP provides comprehensive APIs for managing offers, merchants, data lists, and user authentication.
1.1. Key Features
-
JWT-based authentication with token refresh
-
Complete offer lifecycle management (CRUD, search, filters, history)
-
Merchant management with store location handling
-
Dynamic data lists for locations, categories, and configuration
-
Bulk operations for offers
-
CSV export capabilities
-
AI-powered content assistance
1.2. Authentication
All APIs (except auth endpoints) require a Bearer token:
Authorization: Bearer <token>
Authentication APIs
2. Login
Endpoint: POST /api/v1/auth/login
Purpose: Authenticate user and generate JWT tokens.
2.1. Request
POST /api/v1/auth/login HTTP/1.1
Content-Type: application/json
Content-Length: 68
Host: localhost:8080
{
"email" : "john.doe@crayondata.com",
"password" : "john@123"
}
| Path | Type | Description |
|---|---|---|
|
|
User email address |
|
|
User password |
2.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 100
{
"token" : "jwt-token",
"userId" : 31,
"role" : "Admin",
"refreshToken" : "refresh-token"
}
| Path | Type | Description |
|---|---|---|
|
|
JWT access token |
|
|
Authenticated user ID |
|
|
User role |
|
|
Refresh token |
3. Forgot Password
Endpoint: POST /api/v1/auth/forgotPassword
Purpose: Send password reset link to registered email.
3.1. Request
POST /api/v1/auth/forgotPassword HTTP/1.1
Content-Type: application/json
Content-Length: 41
Host: localhost:8080
{
"email" : "john.doe@crayondata.com"
}
| Path | Type | Description |
|---|---|---|
|
|
Registered email address |
3.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 100
{
"message" : "Password link successfully sent to the registered mail id",
"statusCode" : "OK"
}
| Path | Type | Description |
|---|---|---|
|
|
Password reset operation status |
|
|
HTTP status of the operation |
4. Sign Up
Endpoint: POST /api/v1/auth/signUp
Purpose: Register a new user account.
4.1. Request
POST /api/v1/auth/signUp HTTP/1.1
Content-Type: application/json
Content-Length: 161
Host: localhost:8080
{
"userName" : "John Doe",
"email" : "john.doe@crayondata.com",
"country" : "India",
"designation" : "Software Engineer",
"password" : "Password@123"
}
| Path | Type | Description |
|---|---|---|
|
|
User’s full name |
|
|
User email address |
|
|
User country |
|
|
User designation |
|
|
User password |
4.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 133
{
"message" : "User registered successfully",
"userId" : "31",
"userName" : "John Doe",
"email" : "john.doe@crayondata.com"
}
| Path | Type | Description |
|---|---|---|
|
|
Registration status message |
|
|
Generated user ID |
|
|
Registered user name |
|
|
Registered user email |
5. Verify Link
Endpoint: POST /api/v1/auth/verifyLink
Purpose: Verify user account using token.
5.1. Request
POST /api/v1/auth/verifyLink HTTP/1.1
Content-Type: application/json
Content-Length: 75
Host: localhost:8080
{
"email" : "john.doe@crayondata.com",
"token" : "verification-token"
}
| Path | Type | Description |
|---|---|---|
|
|
User email address |
|
|
Verification token |
5.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 66
{
"message" : "Verification Successful",
"status" : "active"
}
| Path | Type | Description |
|---|---|---|
|
|
Verification status |
|
|
Verification result message |
6. Resend Verify Link
Endpoint: POST /api/v1/auth/resendVerifyLink
Purpose: Resend email verification link.
6.1. Request
POST /api/v1/auth/resendVerifyLink HTTP/1.1
Content-Type: application/json
Content-Length: 41
Host: localhost:8080
{
"email" : "john.doe@crayondata.com"
}
| Path | Type | Description |
|---|---|---|
|
|
User email address |
6.2. Response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 83
{
"message" : "Verification link sent successfully",
"statusCode" : "CREATED"
}
| Path | Type | Description |
|---|---|---|
|
|
Verification link status message |
|
|
HTTP status of the operation |
7. Verify Email
Endpoint: POST /api/v1/auth/verifyEmail
Purpose: Verify user email address.
7.1. Request
POST /api/v1/auth/verifyEmail HTTP/1.1
Content-Type: application/json
Content-Length: 66
Host: localhost:8080
{
"email" : "john.doe@crayondata.com",
"token" : "token-123"
}
| Path | Type | Description |
|---|---|---|
|
|
User email address |
|
|
Verification token |
7.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 71
{
"message" : "Email verified successfully",
"status" : "SUCCESS"
}
| Path | Type | Description |
|---|---|---|
|
|
Success message |
|
|
Status value |
8. Update Password
Endpoint: PUT /api/v1/auth/updatePassword
Purpose: Reset user password using token.
8.1. Request
PUT /api/v1/auth/updatePassword HTTP/1.1
Content-Type: application/json
Content-Length: 97
Host: localhost:8080
{
"token" : "token-123",
"email" : "john.doe@crayondata.com",
"password" : "Password@123"
}
| Path | Type | Description |
|---|---|---|
|
|
Password reset token |
|
|
User email address |
|
|
New password |
8.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 72
{
"message" : "Password updated successfully",
"statusCode" : "OK"
}
| Path | Type | Description |
|---|---|---|
|
|
Password update status message |
|
|
HTTP status of the operation |
9. Refresh Token
Endpoint: PUT /api/v1/auth/refresh-token
Purpose: Generate new access token using refresh token.
9.1. Request
PUT /api/v1/auth/refresh-token?refreshToken=refresh-token-123 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Valid refresh token |
9.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 80
{
"accessToken" : "new-access-token",
"refreshToken" : "new-refresh-token"
}
| Path | Type | Description |
|---|---|---|
|
|
Newly generated access token |
|
|
Newly generated refresh token |
10. Logout
Endpoint: DELETE /api/v1/auth/logout
Purpose: Invalidate user session and logout.
10.1. Request
DELETE /api/v1/auth/logout?accessToken=access-token-123 HTTP/1.1
Content-Type: application/json
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Valid access token to logout |
10.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 60
{
"message" : "Logout successful",
"statusCode" : "OK"
}
| Path | Type | Description |
|---|---|---|
|
|
Logout status message |
|
|
HTTP status of logout operation |
11. Generate Token for Third Party
Endpoint: POST /api/v1/auth/generate-token-TP
Purpose: Generate token for third-party integration.
11.1. Request
POST /api/v1/auth/generate-token-TP HTTP/1.1
Content-Type: application/json
Content-Length: 48
Host: localhost:8080
{
"clientSecret" : "encrypted-client-secret"
}
| Path | Type | Description |
|---|---|---|
|
|
Encrypted client secret |
11.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 99
{
"token" : "jwt-token",
"userId" : 1,
"role" : "Admin",
"refreshToken" : "refresh-token"
}
| Path | Type | Description |
|---|---|---|
|
|
JWT access token |
|
|
User ID |
|
|
User role |
|
|
Refresh token |
User Management APIs
12. Get All Users
Endpoint: POST /api/v1/users
Purpose: Retrieve paginated list of users with filters.
12.1. Request
POST /api/v1/users HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 179
Host: localhost:8080
{
"offset" : 0,
"limit" : 10,
"filters" : {
"userPermission" : [ "Admin" ],
"status" : [ "Inactive" ]
},
"sortBy" : "",
"sortOrder" : "",
"searchWord" : ""
}
| Path | Type | Description |
|---|---|---|
|
|
Pagination offset |
|
|
Number of users per page |
|
|
Filter map (status, userPermission) |
|
|
Field used for sorting |
|
|
Sorting order (ASC/DESC) |
|
|
Search keyword |
12.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 295
{
"totalCount" : 1,
"usersListResponses" : [ {
"id" : 4,
"userName" : "ABCDEFGHIJ",
"email" : "testoffmgmtfg@yopmail.com",
"designation" : "Tester ",
"userPermission" : "Admin",
"country" : "India",
"lastActive" : "937 days ago",
"status" : "Inactive"
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
Total number of users |
|
|
User ID |
|
|
User name |
|
|
Email address |
|
|
User designation |
|
|
Assigned user role |
|
|
User country |
|
|
Last active timestamp |
|
|
Current user status |
13. Update User
Endpoint: PUT /api/v1/users
Purpose: Update user details.
13.1. Request
PUT /api/v1/users HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 122
Host: localhost:8080
{
"userId" : 4,
"country" : "India",
"designation" : "Tester",
"roleName" : "Admin",
"userStatus" : "INACTIVE"
}
| Path | Type | Description |
|---|---|---|
|
|
User ID |
|
|
User country |
|
|
User designation |
|
|
User role |
|
|
User status |
13.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 164
{
"messages" : [ "Changed ABCDEFGHIJ Designation from Tester to Tester" ],
"userId" : 4,
"userName" : "ABCDEFGHIJ",
"email" : "testoffmgmtfg@yopmail.com"
}
| Path | Type | Description |
|---|---|---|
|
|
List of response messages |
|
|
Updated user ID |
|
|
Updated user name |
|
|
Updated user email |
14. Get User By ID
Endpoint: GET /api/v1/users/{id}
Purpose: Retrieve user details by ID.
14.1. Request
GET /api/v1/users/31 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
User ID |
14.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 261
{
"userId" : 31,
"userName" : "Vishnupriya J",
"email" : "vishnupriyaj@crayondata.com",
"country" : "India",
"designation" : "ASE",
"userStatus" : "ACTIVE",
"lastActive" : "1 hour ago",
"role" : {
"roleId" : 1,
"roleName" : "Admin"
}
}
| Path | Type | Description |
|---|---|---|
|
|
User ID |
|
|
User name |
|
|
User email address |
|
|
User country |
|
|
User designation |
|
|
Current user status |
|
|
Last active timestamp |
|
|
Role ID |
|
|
Role name |
15. Activate User
Endpoint: PATCH /api/v1/users/activate/{id}
Purpose: Activate a user account.
15.1. Request
PATCH /api/v1/users/activate/4 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
User ID |
15.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 99
{
"message" : "User activated successfully",
"email" : "john.doe@example.com",
"userId" : 4
}
| Path | Type | Description |
|---|---|---|
|
|
User ID |
|
|
User Email ID |
|
|
Activation status message |
16. Deactivate User
Endpoint: PATCH /api/v1/users/deactivate/{id}
Purpose: Deactivate a user account.
16.1. Request
PATCH /api/v1/users/deactivate/4 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
User ID |
16.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 101
{
"message" : "User deactivated successfully",
"email" : "john.doe@example.com",
"userId" : 4
}
| Path | Type | Description |
|---|---|---|
|
|
User ID |
|
|
User Email ID |
|
|
Deactivation status message |
17. Check Email Availability
Endpoint: GET /api/v1/users/checkEmailAvailability/{email}
Purpose: Check if email is already registered.
17.1. Request
GET /api/v1/users/checkEmailAvailability/john.doe@crayondata.com HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Email address to check availability |
17.2. Response
HTTP/1.1 200 OK
Content-Disposition: inline;filename=f.txt
Content-Type: application/json
Content-Length: 25
{
"available" : false
}
| Path | Type | Description |
|---|---|---|
|
|
Indicates whether the email already exists |
18. Get App Logo
Endpoint: GET /api/v1/users/appLogo
Purpose: Retrieve application logo URL.
18.1. Request
GET /api/v1/users/appLogo HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
18.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 25
{
"logo" : "https://"
}
| Path | Type | Description |
|---|---|---|
|
|
Application logo URL for the authenticated user’s client |
19. Get User Filters
Endpoint: GET /api/v1/users/filters
Purpose: Retrieve available user filter options.
19.1. Request
GET /api/v1/users/filters HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
19.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 101
{
"userPermission" : [ "All", "Admin", "Approver" ],
"status" : [ "All", "Active", "Inactive" ]
}
| Path | Type | Description |
|---|---|---|
|
|
Available user status filters |
|
|
Available user permission filters |
20. Auto Suggest Users
Endpoint: POST /api/v1/users/search
Purpose: Search and suggest users by keyword.
20.1. Request
POST /api/v1/users/search HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 48
Host: localhost:8080
{
"searchWord" : "test",
"searchLimit" : 5
}
| Path | Type | Description |
|---|---|---|
|
|
Search keyword for user suggestions |
|
|
Maximum number of suggestions to return |
20.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 106
{
"searchResults" : [ "testoffmgmtfg@yopmail.com", "Alpha Testing test", "offermgmttest@yopmail.com" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of suggested user names |
Data List APIs
21. Get States
Endpoint: GET /api/v1/list/states
Purpose: Retrieve list of states by country.
21.1. Request
GET /api/v1/list/states?country=India&searchWord= HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Search keyword (optional) |
|
Country name |
21.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 87
{
"states" : [ "Andaman & Nicobar Islands", "Andhra Pradesh", "Arunachal Pradesh" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of states |
22. Get Categories
Endpoint: GET /api/v1/list/categories
Purpose: Retrieve list of all categories.
22.1. Request
GET /api/v1/list/categories HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
22.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 190
[ {
"label" : "Apparel And Accessories",
"value" : "apparel and accessories"
}, {
"label" : "Dining",
"value" : "dining"
}, {
"label" : "Electronics",
"value" : "electronics"
} ]
| Path | Type | Description |
|---|---|---|
|
|
Category display label |
|
|
Category value |
23. Get Countries
Endpoint: GET /api/v1/list/countries
Purpose: Retrieve list of countries.
23.1. Request
GET /api/v1/list/countries?searchWord= HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Search keyword for filtering countries (optional) |
23.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 55
{
"countries" : [ "Albania", "Algeria", "Andorra" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of countries |
24. Get Zipcodes
Endpoint: GET /api/v1/list/zipcodes
Purpose: Retrieve list of zipcodes for a specific city.
24.1. Request
GET /api/v1/list/zipcodes?searchWord=&country=India&state=Tamil+Nadu&city=Chennai HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Search keyword for filtering zip codes (optional) |
|
Country name |
|
State name |
|
City name |
24.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 51
{
"zipCodes" : [ "600001", "600002", "600004" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of zip codes |
25. Get Offer Types
Endpoint: GET /api/v1/list/offerTypes
Purpose: Retrieve list of available offer types.
25.1. Request
GET /api/v1/list/offerTypes HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
25.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 215
{
"offerTypes" : [ {
"Label" : "Card Linked",
"Value" : "card linked"
}, {
"Label" : "Cashback",
"Value" : "cashback"
}, {
"Label" : "Offline Coupon",
"Value" : "offline coupon"
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of available offer types |
|
|
Offer type label |
|
|
Offer type value |
26. Get Cities
Endpoint: GET /api/v1/list/cities
Purpose: Retrieve list of cities by country and state.
26.1. Request
GET /api/v1/list/cities?searchWord=&country=India&state=Tamil+Nadu HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Search keyword for filtering cities (optional) |
|
Country name |
|
State name |
26.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 65
{
"cities" : [ "Agasteeswaram", "Agastheeswaram", "Alandur" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of cities |
27. Get Roles
Endpoint: GET /api/v1/list/roles
Purpose: Retrieve list of available user roles.
27.1. Request
GET /api/v1/list/roles HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
27.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 139
[ {
"roleId" : 1,
"roleName" : "Admin"
}, {
"roleId" : 2,
"roleName" : "Approver"
}, {
"roleId" : 4,
"roleName" : "Manager"
} ]
| Path | Type | Description |
|---|---|---|
|
|
Role ID |
|
|
Role name |
28. Get Header Pages
Endpoint: GET /api/v1/list/headerPages
Purpose: Retrieve list of header pages for UI navigation.
28.1. Request
GET /api/v1/list/headerPages HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
28.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 571
{
"Dining" : "dining",
"Electronics" : "electronics",
"Apparel And Accessories" : "apparel and accessories",
"Travel" : "travel",
"Jewellery" : "jewellery",
"Home And Decor" : "home and decor",
"Personal Service Providers" : "personal service providers",
"Retail Stores" : "retail stores",
"Entertainment" : "entertainment",
"Miscellaneous Stores" : "miscellaneous stores",
"Exclusive Offers For You" : "exclusive offers for you",
"Visa" : "Visa",
"All Offers" : "All Offers",
"Expiring Soon" : "EXPIRING_SOON",
"Hyperlocal" : "Hyperlocal"
}
| Path | Type | Description |
|---|---|---|
|
|
Dining header page |
|
|
Electronics header page |
|
|
Apparel and Accessories header page |
|
|
Travel header page |
|
|
Jewellery header page |
|
|
Home and Decor header page |
|
|
Personal Service Providers header page |
|
|
Retail Stores header page |
|
|
Entertainment header page |
|
|
Miscellaneous Stores header page |
|
|
Exclusive Offers For You header page |
|
|
Visa header page |
|
|
All Offers header page |
|
|
Expiring Soon header page |
|
|
Hyperlocal header page |
29. Get Sub-categories
Endpoint: GET /api/v1/list/subCategories
Purpose: Retrieve the list of all sub-categories for a merchant.
29.1. Request
GET /api/v1/list/subCategories?merchantId=HDFC106772 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Merchant ID used to retrieve the sub-categories |
29.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 55
[ "restaurants", "cafés & coffee shops", "fast food" ]
| Path | Type | Description |
|---|---|---|
|
|
Sub-category |
Offer APIs
30. Get All Offers
Endpoint: POST /api/v1/offers
Purpose: Retrieve paginated list of offers with filtering and sorting capabilities.
30.1. Request
POST /api/v1/offers HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 259
Host: localhost:8080
{
"offset" : 0,
"limit" : 2,
"myOfferToggle" : false,
"filters" : {
"offerType" : [ ],
"offerSource" : [ ],
"offerChannel" : [ ],
"merchantNames" : [ ],
"status" : [ ]
},
"sortBy" : "",
"sortOrder" : "",
"searchWord" : ""
}
| Path | Type | Description |
|---|---|---|
|
|
Pagination offset (optional) |
|
|
Number of records per page (optional) |
|
|
Flag to fetch only user offers |
|
|
Offer filters map (optional) |
|
|
Filter by offer channel (optional) |
|
|
Filter by status (optional) |
|
|
Filter by offer source (optional) |
|
|
Filter by offer type (optional) |
|
|
Filter by merchant names (optional) |
|
|
Field used for sorting (optional) |
|
|
Sorting order (ASC/DESC) (optional) |
|
|
Search keyword (optional) |
30.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 3851
{
"totalCount" : 47771,
"offerListResponse" : [ {
"offerId" : 416767,
"offerDescription" : "The Tata Neu Infinity HDFC Bank Credit card holder (other than Infinia, Diners, Regalia, Tata Neu) would earn 6% Cashback, on booking on Myntra via HDFC Bank SmartBuy portal. _x000D_\nSmartBuy lists Shop section that allows user to make booking on Myntra site. The user benefit is 6% Cashback in the form of NeuCoins. _x000D_\n_x000D_\n<p><strong>How do I calculate the exact benefit on Shopping using SmartBuy offers?</strong></p>_x000D_\nWe have a Savings Calculator that will assist you with the above calculations. Pls access it on this link: https://offers.reward360.in/v1/savings_calculator_x000D_\n<p><strong>SmartBuy benefits have upper capping and other terms which you can refer on this link:</strong></p>: https://offers.smartbuy.hdfcbank.com/offer_details/tata-neu-hdfc-bank-credit-card/21138/Z2Sklms%3D_x000D_\n_x000D_\n<p><strong>When can I make use of SmartBuy offers?</strong></p>_x000D_\nSmartBuy offers are available 24*7, and are long term offers stretching weeks/months. This gives you the peace of mind and freedom of building a repeat habit of making travel transactions using HDFC Bank payment instruments, knowing that the offer would be available. _x000D_\n_x000D_\nIf you have more questions around SmartBuy benefits, you may read them on FAQ section and program T&C_x000D_\nFAQ section link - https://offers.reward360.in/faqs_x000D_\nT&C link - https://offers.reward360.in/terms_conditions",
"offerStatus" : "Live",
"offerType" : "card linked",
"merchantName" : "t nagat location",
"offerSource" : "CARDS & EASYEMI",
"validFrom" : "2026-11-13 00:00:00",
"validTo" : "2026-12-31 00:00:00",
"channel" : "In-Store",
"lastUpdated" : "2026-11-13 07:56:24.386364",
"offerTitle" : "near by list test",
"rejectionReason" : "",
"nextActions" : "Pause, View"
}, {
"offerId" : 416766,
"offerDescription" : "The Tata Neu Infinity HDFC Bank Credit card holder (other than Infinia, Diners, Regalia, Tata Neu) would earn 6% Cashback, on booking on Myntra via HDFC Bank SmartBuy portal. _x000D_\nSmartBuy lists Shop section that allows user to make booking on Myntra site. The user benefit is 6% Cashback in the form of NeuCoins. _x000D_\n_x000D_\n<p><strong>How do I calculate the exact benefit on Shopping using SmartBuy offers?</strong></p>_x000D_\nWe have a Savings Calculator that will assist you with the above calculations. Pls access it on this link: https://offers.reward360.in/v1/savings_calculator_x000D_\n<p><strong>SmartBuy benefits have upper capping and other terms which you can refer on this link:</strong></p>: https://offers.smartbuy.hdfcbank.com/offer_details/tata-neu-hdfc-bank-credit-card/21138/Z2Sklms%3D_x000D_\n_x000D_\n<p><strong>When can I make use of SmartBuy offers?</strong></p>_x000D_\nSmartBuy offers are available 24*7, and are long term offers stretching weeks/months. This gives you the peace of mind and freedom of building a repeat habit of making travel transactions using HDFC Bank payment instruments, knowing that the offer would be available. _x000D_\n_x000D_\nIf you have more questions around SmartBuy benefits, you may read them on FAQ section and program T&C_x000D_\nFAQ section link - https://offers.reward360.in/faqs_x000D_\nT&C link - https://offers.reward360.in/terms_conditions",
"offerStatus" : "Live",
"offerType" : "card linked",
"merchantName" : "perungudi location",
"offerSource" : "CARDS & EASYEMI",
"validFrom" : "2026-11-13 00:00:00",
"validTo" : "2026-12-31 00:00:00",
"channel" : "In-Store",
"lastUpdated" : "2026-11-13 07:56:24.386364",
"offerTitle" : "near by list test",
"rejectionReason" : "",
"nextActions" : "Pause, View"
} ],
"paginationDropdown" : [ 5, 25, 100 ]
}
| Path | Type | Description |
|---|---|---|
|
|
Total number of offers |
|
|
List of offers |
|
|
Offer ID |
|
|
Offer description |
|
|
Offer status |
|
|
Offer type |
|
|
Merchant name |
|
|
Offer source |
|
|
Offer valid from date |
|
|
Offer valid to date |
|
|
Offer channel |
|
|
Last updated timestamp |
|
|
Offer title |
|
|
Reason for rejection |
|
|
Available next actions |
|
|
Pagination dropdown values |
31. Get Offer By ID
Endpoint: GET /api/v1/offers/{offerId}
Purpose: Retrieve detailed information of a specific offer by its ID.
31.1. Request
GET /api/v1/offers/2102 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Unique identifier of the offer |
31.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2793
{
"offerId" : 2102,
"channel" : "Online",
"merchantId" : "DC48",
"merchantName" : "Rosemary Perfumes",
"category" : "retail stores",
"validFrom" : "2021-05-01 00:00:00",
"validTo" : "2022-02-03 00:00:00",
"offerType" : "offline coupon",
"offerValue" : 16.0,
"offerValueCurrency" : "SAR",
"offerValueType" : "cpa_percentage",
"applicableCountry" : "United Arab emirates",
"offerTitle" : "Get upto 10% discount on Rosemary Perfumes",
"offerSource" : "arabclicks",
"offerVariant" : "",
"offerDescription" : "Get upto 10% discount on Rosemary Perfumes\n1. The offer is valid upto 2022-02-03\n2. The offer is valid for Perfumes, Gifts only\n3. The offer is applicable for Desktop/Web, Mobile\n4. The offer is valid on all users only\n5. Coupons are applicable for $BANKNAME$ card users only\n6. Coupon is applicable at online\n7. Accidental Loss of coupon shall not be covered \n8. Coupons are not transferable \n9. Coupons cannot be replaced if emails are deleted by the claimant\n10. Customer is redirected to third party website – Terms of third party website will be applicable on the shopping experience\n11. The offer is applicable on select categories/products ONLY",
"storeLocation" : [ {
"cdfLocationId" : 1132,
"address" : "",
"city" : "all",
"country" : "all",
"countryCode" : "",
"state" : "all",
"latitude" : null,
"longitude" : null,
"storeName" : "Store 1",
"zipCode" : "",
"mapLink" : "",
"associatedWithLiveOffers" : false
} ],
"couponCode" : "AC114",
"multipleConversions" : 1,
"offerImages" : "https://dpimages.crayondata.com/high-res-image/adib/rosemary_offer1.jpeg",
"howToRedeem" : "1. Click on 'Claim' at the bottom of the Offer Page.\n2. Click on 'Redeem Now' to get redirected to the merchant website.\n3. Make sure the product you purchase is valid under offer T&C\n4. At checkout on the merchant website, make sure to paste the coupon code.",
"offerUrl" : "https://www.rosemaryperfumes.com/",
"termsConditions" : "1. The offer is valid upto 2022-02-03\n2. The offer is valid for Perfumes, Gifts only\n3. The offer is applicable for Desktop/Web, Mobile\n4. The offer is valid on all users only\n5. Coupons are applicable for $BANKNAME$ card users only\n6. Coupon is applicable at online\n7. Accidental Loss of coupon shall not be covered \n8. Coupons are not transferable \n9. Coupons cannot be replaced if emails are deleted by the claimant\n10. Customer is redirected to third party website – Terms of third party website will be applicable on the shopping experience\n11. The offer is applicable on select categories/products ONLY",
"merchantChannel" : "Online",
"categoryType" : "",
"applicableCards" : "",
"applicableProducts" : null,
"subCategory" : null
}
| Path | Type | Description |
|---|---|---|
|
|
Offer ID |
|
|
Offer channel |
|
|
Merchant identifier |
|
|
Merchant name |
|
|
Offer category |
|
|
Offer valid from date |
|
|
Offer valid to date |
|
|
Type of offer |
|
|
Offer value |
|
|
Currency of offer value |
|
|
Type of offer value |
|
|
Applicable country |
|
|
Offer title |
|
|
Source of the offer |
|
|
Variant of the offer |
|
|
Detailed description of the offer |
|
|
List of store locations |
|
|
CDF location ID |
|
|
Store address |
|
|
City |
|
|
Country |
|
|
Country code |
|
|
State |
|
|
Latitude |
|
|
Longitude |
|
|
Store name |
|
|
Zip code |
|
|
Map link |
|
|
Whether store is linked to live offers |
|
|
Coupon code for the offer |
|
|
Multiple conversions flag |
|
|
Offer image URLs |
|
|
Instructions to redeem the offer |
|
|
Offer landing page URL |
|
|
Terms and conditions |
|
|
Merchant channel |
|
|
Category type |
|
|
Applicable cards |
|
|
Applicable products(optional) |
|
|
Sub-category |
32. Add Online Offer
Endpoint: POST /api/v1/offers/create
Purpose: Create a new online offer.
32.1. Request
POST /api/v1/offers/create HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 1567
Host: localhost:8080
{
"channel" : "Online",
"merchantId" : "HDFC5130",
"validFrom" : "2027-05-27 00:00:00.000",
"validTo" : "2027-05-29 23:59:59.000",
"offerType" : "card linked",
"offerValue" : 10.0,
"offerValueCurrency" : "",
"offerValueType" : "cpa_percentage",
"applicableCountry" : "India",
"offerTitle" : "API doc automation 1",
"offerSource" : "123",
"offerVariant" : "",
"offerDescription" : "<p>--</p>",
"categoryType" : "Category",
"storeLocation" : [ ],
"couponCode" : "",
"multipleConversions" : 0,
"offerImages" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4",
"curatedImages" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4",
"howToRedeem" : "<p>--</p>",
"offerUrl" : "https://www.google.com",
"termsConditions" : "<p>--</p>",
"createdBy" : "User email id",
"applicableCards" : "ALL CREDIT CARDS (EXCEPT CO-BRANDED),ALL CREDIT/DEBIT CARDS (EXCEPT CO-BRANDED),ALL DEBIT CARDS,CONSUMER LOANS,DINERS BLACK,INFINIA,OTHER CREDIT CARDS,REGALIA,TATA NEU INFINITY,TATA NEU PLUS",
"applicableProducts" : [ "Product" ],
"subCategory" : "Sub-category",
"offerUrlValid" : true
}
| Path | Type | Description |
|---|---|---|
|
|
Offer channel (In-Store / Online / Both) |
|
|
Merchant ID |
|
|
Offer start date |
|
|
Offer end date |
|
|
Type of offer |
|
|
Offer value |
|
|
Currency of offer value (optional) |
|
|
Payout type (cpa_flat / cpa_percentage / cpa_reward_points) |
|
|
Applicable country |
|
|
Offer title |
|
|
Offer source |
|
|
Offer variant (optional) |
|
|
Offer description |
|
|
Store locations list (optional) [If provided, city, state, country, zipcode, latitude, longitude are required] |
|
|
Coupon code (optional) |
|
|
0 or 1 for multiple conversions |
|
|
Offer image base64 (optional) |
|
|
Redeem instructions |
|
|
Required for Online/Both |
|
|
Terms and conditions |
|
|
Applicable cards |
|
|
Category type (optional) |
|
|
Curated images base64 (optional) |
|
|
Created by (optional) |
|
|
Offer URL validation flag (optional) |
|
|
Applicable products(optional) |
|
|
Sub-category |
32.2. Response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 79
{
"offerId" : 416798,
"sessionId" : "1",
"status" : "Inserted into GMR"
}
| Path | Type | Description |
|---|---|---|
|
|
Offer ID |
|
|
Offer creation session ID |
|
|
Creation status |
33. Add Offline Offer
Endpoint: POST /api/v1/offers/create
Purpose: Create a new offline offer with store location details.
33.1. Request
POST /api/v1/offers/create HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 2454
Host: localhost:8080
{
"channel" : "In-Store",
"merchantId" : "HDFC5130",
"validFrom" : "2027-05-27 00:00:00.000",
"validTo" : "2027-05-29 23:59:59.000",
"offerType" : "card linked",
"offerValue" : 10.0,
"offerValueCurrency" : "",
"offerValueType" : "cpa_percentage",
"applicableCountry" : "India",
"offerTitle" : "API doc automation 1",
"offerSource" : "123",
"offerVariant" : "",
"offerDescription" : "<p>--</p>",
"categoryType" : "Category",
"storeLocation" : [ {
"cdfLocationId" : null,
"address" : "Block 1, DivyaSree Omega Survey No 13, Kothaguda",
"city" : "Kothaguda",
"country" : "India",
"countryCode" : "",
"state" : "Telangana",
"latitude" : 17.458414,
"longitude" : 78.37256,
"storeName" : "Store 1",
"zipCode" : "500084",
"mapLink" : "https://www.google.com/maps/?q=17.4584134,78.3725586",
"associatedWithLiveOffers" : false
}, {
"cdfLocationId" : null,
"address" : "Rio Business Park, Mahadevapura Village, Krishnarajapuram, Hobli, Bengaluru East",
"city" : "Bengaluru",
"country" : "India",
"countryCode" : "",
"state" : "Karnataka",
"latitude" : 12.982804,
"longitude" : 77.69169,
"storeName" : "Store 2",
"zipCode" : "560037",
"mapLink" : "https://www.google.com/maps/?q=12.9828045,77.6916908",
"associatedWithLiveOffers" : false
} ],
"couponCode" : "",
"multipleConversions" : 0,
"offerImages" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4",
"curatedImages" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4",
"howToRedeem" : "<p>--</p>",
"offerUrl" : "https://www.google.com",
"termsConditions" : "<p>--</p>",
"createdBy" : "User email id",
"applicableCards" : "ALL CREDIT CARDS (EXCEPT CO-BRANDED),ALL CREDIT/DEBIT CARDS (EXCEPT CO-BRANDED),ALL DEBIT CARDS,CONSUMER LOANS,DINERS BLACK,INFINIA,OTHER CREDIT CARDS,REGALIA,TATA NEU INFINITY,TATA NEU PLUS",
"applicableProducts" : [ "Product" ],
"subCategory" : "Sub-category",
"offerUrlValid" : true
}
| Path | Type | Description |
|---|---|---|
|
|
Offer channel (In-Store / Online / Both) |
|
|
Merchant ID |
|
|
Offer start date |
|
|
Offer end date |
|
|
Type of offer |
|
|
Offer value |
|
|
Currency of offer value (optional) |
|
|
Payout type (cpa_flat / cpa_percentage / cpa_reward_points) |
|
|
Applicable country |
|
|
Offer title |
|
|
Offer source |
|
|
Offer variant (optional) |
|
|
Offer description |
|
|
Store locations list (required for Offline offers) |
|
|
Store location ID (not required - auto generated) |
|
|
Store address (Optional for Both and Online channels) |
|
|
Store city |
|
|
Store country |
|
|
Store country code (Optional) |
|
|
Store state |
|
|
Store latitude |
|
|
Store longitude |
|
|
Store name (Optional) |
|
|
Store zip code |
|
|
Google map location link (Optional) |
|
|
Indicates whether the store is associated with live offers (Optional) |
|
|
Coupon code (optional) |
|
|
0 or 1 for multiple conversions |
|
|
Offer image base64 (optional) |
|
|
Redeem instructions |
|
|
Required for Online/Both |
|
|
Terms and conditions |
|
|
Applicable cards |
|
|
Category type (optional) |
|
|
Curated images base64 (optional) |
|
|
Created by (optional) |
|
|
Offer URL validation flag (optional) |
|
|
Applicable products(optional) |
|
|
Sub-category |
33.2. Response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 79
{
"offerId" : 416800,
"sessionId" : "1",
"status" : "Inserted into GMR"
}
| Path | Type | Description |
|---|---|---|
|
|
Offer ID |
|
|
Offer creation session ID |
|
|
Creation status |
34. Update Offer
Endpoint: PUT /api/v1/offers/{offerId}?updateType=OFFER_UPDATE
Purpose: Update an existing offer’s details (updateType = OFFER_UPDATE).
34.1. Request
PUT /api/v1/offers/415265?updateType=OFFER_UPDATE HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 1551
Host: localhost:8080
{
"channel" : "Online",
"merchantId" : "HDFC5130",
"validFrom" : "2027-05-27 00:00:00.000",
"validTo" : "2027-05-29 23:59:59.000",
"offerType" : "card linked",
"offerValue" : 10.0,
"offerValueCurrency" : "",
"offerValueType" : "cpa_percentage",
"applicableCountry" : "India",
"offerTitle" : "API doc automation 1 test",
"offerSource" : "123",
"offerVariant" : "",
"offerDescription" : "<p>--</p>",
"categoryType" : "",
"storeLocation" : [ {
"cdfLocationId" : null,
"address" : "Block 1, DivyaSree Omega Survey No 13, Kothaguda",
"city" : "Kothaguda",
"country" : "India",
"countryCode" : "",
"state" : "Telangana",
"latitude" : 17.458414,
"longitude" : 78.37256,
"storeName" : "Store 1",
"zipCode" : "500084",
"mapLink" : "https://www.google.com/maps/?q=17.4584134,78.3725586",
"associatedWithLiveOffers" : false
} ],
"couponCode" : "",
"multipleConversions" : 0,
"offerImages" : "https://dpimages.crayondata.com/high-res-image/dev/HDFC5130off1779685722155.jpeg",
"curatedImages" : "https://dpimages.crayondata.com/high-res-image/dev/HDFC5130off1779685722155.jpeg",
"howToRedeem" : "<p>--</p>",
"offerUrl" : "https://www.google.com",
"termsConditions" : "<p>--</p>",
"applicableCards" : "ALL CREDIT CARDS (EXCEPT CO-BRANDED),ALL CREDIT/DEBIT CARDS (EXCEPT CO-BRANDED),ALL DEBIT CARDS,CONSUMER LOANS,DINERS BLACK,INFINIA,OTHER CREDIT CARDS,REGALIA,TATA NEU INFINITY,TATA NEU PLUS",
"applicableProducts" : [ "Product" ],
"subCategory" : "Sub-category"
}
| Parameter | Description |
|---|---|
|
ID of the offer to update |
| Parameter | Description |
|---|---|
|
Type of update (OFFER_UPDATE or DUPLICATE) |
| Path | Type | Description |
|---|---|---|
|
|
Offer channel |
|
|
Merchant ID |
|
|
Valid from datetime |
|
|
Valid to datetime |
|
|
Offer type |
|
|
Offer value |
|
|
Currency (optional) |
|
|
Payout type |
|
|
Applicable country |
|
|
Offer title |
|
|
Offer source |
|
|
Offer variant (optional) |
|
|
Offer description |
|
|
Category type (optional) |
|
|
Store locations |
|
|
Store location ID (not required - auto generated) |
|
|
Store address |
|
|
City |
|
|
Country |
|
|
Country code (optional) |
|
|
State |
|
|
Latitude |
|
|
Longitude |
|
|
Store name (optional) |
|
|
Zip code |
|
|
Map link (optional) |
|
|
Whether store is linked to live offers |
|
|
Coupon code (optional) |
|
|
Multiple conversions flag |
|
|
Offer images URL/base64 (optional) |
|
|
Curated images URL/base64 (optional) |
|
|
How to redeem |
|
|
Offer URL |
|
|
Terms and conditions |
|
|
Applicable cards |
|
|
Applicable products(optional) |
|
|
Sub-category |
34.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 68
{
"offerId" : 415265,
"message" : "Offer Updated Successfully"
}
| Path | Type | Description |
|---|---|---|
|
|
Updated offer ID |
|
|
Update status message |
35. Duplicate Offer
Endpoint: PUT /api/v1/offers/{offerId}?updateType=OFFER_DUPLICATE
Purpose: Create a duplicate copy of an existing offer (updateType = OFFER_DUPLICATE).
35.1. Request
PUT /api/v1/offers/415257?updateType=OFFER_DUPLICATE HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 1551
Host: localhost:8080
{
"channel" : "Online",
"merchantId" : "HDFC5130",
"validFrom" : "2027-05-27 00:00:00.000",
"validTo" : "2027-05-29 23:59:59.000",
"offerType" : "card linked",
"offerValue" : 10.0,
"offerValueCurrency" : "",
"offerValueType" : "cpa_percentage",
"applicableCountry" : "India",
"offerTitle" : "API doc automation 1 test",
"offerSource" : "123",
"offerVariant" : "",
"offerDescription" : "<p>--</p>",
"categoryType" : "",
"storeLocation" : [ {
"cdfLocationId" : null,
"address" : "Block 1, DivyaSree Omega Survey No 13, Kothaguda",
"city" : "Kothaguda",
"country" : "India",
"countryCode" : "",
"state" : "Telangana",
"latitude" : 17.458414,
"longitude" : 78.37256,
"storeName" : "Store 1",
"zipCode" : "500084",
"mapLink" : "https://www.google.com/maps/?q=17.4584134,78.3725586",
"associatedWithLiveOffers" : false
} ],
"couponCode" : "",
"multipleConversions" : 0,
"offerImages" : "https://dpimages.crayondata.com/high-res-image/dev/HDFC5130off1779685722155.jpeg",
"curatedImages" : "https://dpimages.crayondata.com/high-res-image/dev/HDFC5130off1779685722155.jpeg",
"howToRedeem" : "<p>--</p>",
"offerUrl" : "https://www.google.com",
"termsConditions" : "<p>--</p>",
"applicableCards" : "ALL CREDIT CARDS (EXCEPT CO-BRANDED),ALL CREDIT/DEBIT CARDS (EXCEPT CO-BRANDED),ALL DEBIT CARDS,CONSUMER LOANS,DINERS BLACK,INFINIA,OTHER CREDIT CARDS,REGALIA,TATA NEU INFINITY,TATA NEU PLUS",
"applicableProducts" : [ "Product" ],
"subCategory" : "Sub-category"
}
| Parameter | Description |
|---|---|
|
ID of the offer to update |
| Parameter | Description |
|---|---|
|
Type of update (OFFER_UPDATE or DUPLICATE) |
| Path | Type | Description |
|---|---|---|
|
|
Offer channel |
|
|
Merchant ID |
|
|
Valid from datetime |
|
|
Valid to datetime |
|
|
Offer type |
|
|
Offer value |
|
|
Currency (optional) |
|
|
Payout type |
|
|
Applicable country |
|
|
Offer title |
|
|
Offer source |
|
|
Offer variant (optional) |
|
|
Offer description |
|
|
Category type (optional) |
|
|
Store locations |
|
|
Store location ID (not required - auto generated) |
|
|
Store address |
|
|
City |
|
|
Country |
|
|
Country code (optional) |
|
|
State |
|
|
Latitude |
|
|
Longitude |
|
|
Store name (optional) |
|
|
Zip code |
|
|
Map link (optional) |
|
|
Whether store is linked to live offers |
|
|
Coupon code (optional) |
|
|
Multiple conversions flag |
|
|
Offer images URL/base64 (optional) |
|
|
Curated images URL/base64 (optional) |
|
|
How to redeem |
|
|
Offer URL |
|
|
Terms and conditions |
|
|
Applicable cards |
|
|
Applicable products(optional) |
|
|
Sub-category |
35.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 71
{
"offerId" : 416799,
"message" : "Offer Duplicated Successfully"
}
| Path | Type | Description |
|---|---|---|
|
|
Updated offer ID |
|
|
Update status message |
36. Get Live Offers By Merchant
Endpoint: GET /api/v1/offers/merchant/{merchantId}?offerType=LIVE_OFFERS
Purpose: Retrieve only live/published offers for a specific merchant (offerType = LIVE_OFFERS).
36.1. Request
GET /api/v1/offers/merchant/HDFC12116?offerType=LIVE_OFFERS HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Unique merchant identifier |
| Parameter | Description |
|---|---|
|
Type of merchant offers (ALL_OFFERS / LIVE_OFFERS) (optional) |
36.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 301
{
"offerListResponse" : [ {
"offerId" : 415752,
"offerDetails" : "<p>--</p>",
"offerType" : "card linked",
"validFrom" : "2026-07-06 00:00:00",
"validTo" : "2030-07-10 23:59:59",
"channel" : "Online",
"offerStatus" : "Live",
"offerTitle" : "API doc test live"
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of offers for merchant |
|
|
Offer ID |
|
|
Offer details |
|
|
Offer type |
|
|
Offer start date |
|
|
Offer end date |
|
|
Offer channel |
|
|
Offer status |
|
|
Offer title |
37. Get All Offers By Merchant
Endpoint: GET /api/v1/offers/merchant/{merchantId}?offerType=ALL_OFFERS
Purpose: Retrieve all offers for a specific merchant (offerType = ALL_OFFERS).
37.1. Request
GET /api/v1/offers/merchant/HDFC106772?offerType=ALL_OFFERS HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Unique merchant identifier |
| Parameter | Description |
|---|---|
|
Type of merchant offers (ALL_OFFERS / LIVE_OFFERS) (optional) |
37.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 896
{
"offerListResponse" : [ {
"offerId" : 415222,
"offerDetails" : "<p>25% off on food</p>",
"offerType" : "Ofline coupon",
"validFrom" : "2026-05-19 00:00:00",
"validTo" : "2026-05-26 23:59:59",
"channel" : "In-Store",
"offerStatus" : "Expired",
"offerTitle" : "50%off on all 990"
}, {
"offerId" : 415221,
"offerDetails" : "<p>25% off on food</p>",
"offerType" : "Ofline coupon",
"validFrom" : "2026-05-14 00:00:00",
"validTo" : "2026-05-16 23:59:59",
"channel" : "In-Store",
"offerStatus" : "Expired",
"offerTitle" : "50%off on all 990"
}, {
"offerId" : 415160,
"offerDetails" : "25% off on food",
"offerType" : "Ofline coupon",
"validFrom" : "2026-03-30 00:00:00",
"validTo" : "2026-03-30 00:00:00",
"channel" : "In-Store",
"offerStatus" : "Expired",
"offerTitle" : "50%off on all 990"
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of offers for merchant |
|
|
Offer ID |
|
|
Offer details |
|
|
Offer type |
|
|
Offer start date |
|
|
Offer end date |
|
|
Offer channel |
|
|
Offer status |
|
|
Offer title |
38. Search Offer
Endpoint: POST /api/v1/offers/search
Purpose: Search offers by keyword for auto-suggest functionality.
38.1. Request
POST /api/v1/offers/search HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 27
Host: localhost:8080
{
"searchWord" : "test"
}
| Path | Type | Description |
|---|---|---|
|
|
Search keyword used for auto-suggest or offer search |
38.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 91
[ "Test Offline Payzapp Offer pPnHM3", "testnearby", "test bu es new fields test payzapp" ]
| Path | Type | Description |
|---|---|---|
|
|
List of matched offer search results |
39. Get Dynamic Offer Filters
Endpoint: GET /api/v1/offers/filters
Purpose: Retrieve available dynamic filter options for offers.
39.1. Request
GET /api/v1/offers/filters HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
39.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 202
{
"offerType" : [ "All", "card linked", "Card Linked" ],
"offerSource" : [ "All", "11Dec2024", "123" ],
"offerChannel" : [ "All", "Both", "In-Store" ],
"status" : [ "All", "Draft", "Expired" ]
}
| Path | Type | Description |
|---|---|---|
|
|
Available offer channels |
|
|
Available offer statuses |
|
|
Available offer sources |
|
|
Available offer types |
40. Offer Actions
Endpoint: POST /api/v1/offers/status
Purpose: Perform bulk actions on offers (Submit, Pause, Resume, Withdraw).
40.1. Request
POST /api/v1/offers/status HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 62
Host: localhost:8080
{
"actionType" : "OFFER_SUBMIT",
"offerIds" : [ 415265 ]
}
| Path | Type | Description |
|---|---|---|
|
|
Action to perform on the offers. Supported values: OFFER_PAUSE, OFFER_RESUME, OFFER_WITHDRAW, OFFER_SUBMIT |
|
|
List of offer IDs |
|
|
Offer ID |
40.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 122
{
"sessionIds" : [ "1" ],
"status" : "Pending",
"error" : null,
"invalidOfferIds" : [ ],
"errorMessages" : [ ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of session IDs |
|
|
Status of the action response |
|
|
Error message if any |
|
|
List of invalid offer IDs |
|
|
Detailed error messages |
41. Approve or Reject Offer
Endpoint: POST /api/v1/offers/review
Purpose: Approve or reject offers.
41.1. Request
POST /api/v1/offers/review HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 149
Host: localhost:8080
{
"actionType" : "OFFER_APPROVE",
"offerIds" : [ {
"offerId" : 415712,
"rejectionReason" : null
} ],
"commonRejectionReason" : null
}
| Path | Type | Description |
|---|---|---|
|
|
Action to perform (OFFER_APPROVE or OFFER_REJECT) |
|
|
List of offers to process |
|
|
Offer ID |
|
|
Reason for rejection |
|
|
Common rejection reason for all offers |
41.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 122
{
"sessionIds" : [ "1" ],
"status" : "Pending",
"error" : null,
"invalidOfferIds" : [ ],
"errorMessages" : [ ]
}
| Path | Type | Description |
|---|---|---|
|
|
Processing session IDs |
|
|
Status of the approval/rejection request |
|
|
Error message if the operation failed |
|
|
List of invalid offer IDs |
|
|
Detailed error messages for invalid offers |
42. Get Applicable Cards
Endpoint: GET /api/v1/offers/applicableCards
Purpose: Retrieve list of all applicable card types for offers.
42.1. Request
GET /api/v1/offers/applicableCards HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
42.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 133
{
"applicableCards" : [ "ALL CREDIT CARDS (EXCEPT CO-BRANDED)", "ALL CREDIT/DEBIT CARDS (EXCEPT CO-BRANDED)", "ALL DEBIT CARDS" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of applicable cards |
43. Get Credit Limit
Endpoint: GET /api/v1/offers/ai/credit-limit
Purpose: Retrieve AI-generated credit limit suggestions for offer fields.
43.1. Request
GET /api/v1/offers/ai/credit-limit?offerId=415265 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Offer ID (optional) |
43.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 126
{
"HOW_TO_REDEEM" : 0,
"TOTAL_RETRY_LIMIT" : 5,
"OFFER_TITLE" : 0,
"TERMS_CONDITIONS" : 0,
"OFFER_DESCRIPTION" : 0
}
| Path | Type | Description |
|---|---|---|
|
|
Credit limit for offer title |
|
|
Credit limit for offer description |
|
|
Credit limit for terms and conditions |
|
|
Credit limit for how to redeem |
|
|
Credit limit for retry |
44. Get Offer Source
Endpoint: GET /api/v1/offers/offerSource
Purpose: Retrieve available offer sources and their variants.
44.1. Request
GET /api/v1/offers/offerSource HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
44.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 178
{
"offerSources" : [ {
"source" : "",
"variants" : [ ]
}, {
"source" : "11Dec2024",
"variants" : [ ]
}, {
"source" : "123",
"variants" : [ ]
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of offer sources |
|
|
Offer source name |
|
|
List of variants for the source |
|
|
Variant value |
45. Get Offer History
Endpoint: POST /api/v1/offers/history/{offerId}
Purpose: Retrieve offer history with filters.
45.1. Request
POST /api/v1/offers/history/415264 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 148
Host: localhost:8080
{
"timeZone" : "Asia/Kolkata",
"filters" : {
"field" : [ "All", "status" ],
"toDate" : "2026-05-28",
"fromDate" : "2026-05-25"
}
}
| Parameter | Description |
|---|---|
|
ID of the offer |
| Path | Type | Description |
|---|---|---|
|
|
Timezone used for displaying history timestamps (optional) |
|
|
Filters for offer history (optional) |
|
|
Filter by modified field and action type (optional) |
|
|
Filter from a date (optional) |
|
|
Filter till a date (optional) |
45.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 941
{
"offerId" : 415264,
"merchantName" : "test brand name ed",
"offerTitle" : "test data ",
"offerStatus" : "EXPIRED",
"offerHistoryList" : [ {
"offerHistoryId" : 194789,
"actionDateTime" : "2026-05-25 16:19:07",
"userName" : "System",
"field" : "Status",
"action" : "Status Change",
"previousValue" : "Scheduled",
"newValue" : "Live",
"comments" : ""
}, {
"offerHistoryId" : 194788,
"actionDateTime" : "2026-05-25 16:03:31",
"userName" : "Vignesh Mohanraj",
"field" : "Status",
"action" : "Status Change",
"previousValue" : "Pending for Approval",
"newValue" : "Scheduled",
"comments" : ""
}, {
"offerHistoryId" : 194786,
"actionDateTime" : "2026-05-25 15:58:23",
"userName" : "Vignesh Mohanraj",
"field" : "Status",
"action" : "Status Change",
"previousValue" : "Draft",
"newValue" : "Pending for Approval",
"comments" : ""
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
Offer ID |
|
|
Merchant name |
|
|
Offer title |
|
|
Current offer status |
|
|
Offer history entries |
|
|
Offer History ID |
|
|
Date and time of action |
|
|
User who performed the action |
|
|
Field that was modified |
|
|
Action performed |
|
|
Previous value before update |
|
|
New value after update |
|
|
Additional comments |
46. Get Dynamic Offer History Filters
Endpoint: GET /api/v1/offers/history/filters/{offerId}
Purpose: Retrieve available filter options for offer history.
46.1. Request
GET /api/v1/offers/history/filters/415264 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Offer ID |
46.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 35
{
"field" : [ "All", "status" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of modified fields and Actions performed |
47. Download Offer History CSV
Endpoint: POST /api/v1/offers/history/download/{offerId}
Purpose: Download offer history as CSV file.
47.1. Request
POST /api/v1/offers/history/download/415264 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 190
Host: localhost:8080
{
"timeZone" : "Asia/Kolkata",
"filters" : {
"field" : [ "All", "status" ],
"toDate" : "2026-05-28",
"fromDate" : "2026-05-25"
},
"offerHistoryIds" : [ 194788, 194789 ]
}
| Parameter | Description |
|---|---|
|
Offer ID |
| Path | Type | Description |
|---|---|---|
|
|
Timezone used for displaying history timestamps (optional) |
|
|
Filters for offer history (optional) |
|
|
Filter by modified field and action type (optional) |
|
|
Filter from a date (optional) |
|
|
Filter till a date (optional) |
|
|
Offer History IDs |
48. Download Offers CSV
Endpoint: POST /api/v1/offers/download
Purpose: Download offers as CSV with filters.
48.1. Request
POST /api/v1/offers/download HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 485
Host: localhost:8080
{
"offset" : 0,
"filters" : {
"fromDate" : {
"dateStart" : "2026-04-05",
"dateEnd" : "2026-05-30"
},
"offerType" : [ "online coupon" ],
"offerSource" : [ "SMARTBUY" ],
"offerChannel" : [ "Both" ],
"merchantNames" : [ "Test vayapar new user" ],
"toDate" : {
"dateStart" : "2026-05-28",
"dateEnd" : "2026-05-31"
},
"status" : [ "Expired" ]
},
"offerIds" : [ ],
"searchWord" : "",
"sortBy" : "",
"sortOrder" : ""
}
| Path | Type | Description |
|---|---|---|
|
|
Pagination offset |
|
|
Offer filters |
|
|
Offer channel filter |
|
|
Offer status filter |
|
|
Offer source filter |
|
|
Offer type filter |
|
|
Merchant name filter |
|
|
From date filter |
|
|
From start date |
|
|
From end date |
|
|
To date filter |
|
|
To start date |
|
|
To end date |
|
|
List of offer IDs |
|
|
Search keyword |
|
|
Sort field |
|
|
Sort order (ASC/DESC) |
Merchant APIs
49. Get All Merchants
Endpoint: POST /api/v1/merchants
Purpose: Retrieve paginated list of merchants with filters.
49.1. Request
POST /api/v1/merchants HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 204
Host: localhost:8080
{
"offset" : 0,
"limit" : 2,
"filters" : {
"country" : [ ],
"channel" : [ ],
"offerCountRange" : [ ],
"category" : [ ]
},
"sortBy" : "",
"sortOrder" : "",
"searchWord" : ""
}
| Path | Type | Description |
|---|---|---|
|
|
Pagination offset |
|
|
Number of records per page |
|
|
Merchant filters map (optional) |
|
|
Filter by channel (optional) |
|
|
Filter by category (optional) |
|
|
Filter by offer count range (optional) |
|
|
Filter by country (optional) |
|
|
Sorting field (optional) |
|
|
Sorting order ASC/DESC (optional) |
|
|
Search keyword (optional) |
49.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 653
{
"merchantListResponses" : [ {
"merchantId" : "HDFC107122",
"merchantName" : "guindy location",
"merchantDescription" : "",
"category" : "apparel and accessories",
"offerCount" : 1,
"channel" : "In-Store",
"country" : "",
"lastUpdated" : "2026-11-13T07:56:24.318149"
}, {
"merchantId" : "HDFC107119",
"merchantName" : "anna nagar location",
"merchantDescription" : "",
"category" : "apparel and accessories",
"offerCount" : 1,
"channel" : "In-Store",
"country" : "",
"lastUpdated" : "2026-11-13T07:56:24.318149"
} ],
"totalCount" : 25905,
"paginationDropdown" : [ 10, 25, 50 ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of merchants |
|
|
Merchant ID |
|
|
Merchant name |
|
|
Merchant description |
|
|
Merchant category |
|
|
Offer count |
|
|
Channel |
|
|
Country |
|
|
Last updated timestamp |
|
|
Total merchant count |
|
|
Pagination dropdown values |
50. Get Merchant By ID
Endpoint: GET /api/v1/merchants/{merchantId}
Purpose: Retrieve merchant details by ID.
50.1. Request
GET /api/v1/merchants/HDFC106772 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
ID of the Merchant |
50.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 769
{
"merchantId" : "HDFC106772",
"merchantName" : "new spring 570",
"registeredCompanyName" : "",
"brandLogos" : "https://dpimages.crayondata.com/high-res-image/resized/500X500/The_Raymond_Shop.webp",
"merchantDescription" : "",
"category" : "dining",
"applicableMarketPlaces" : "",
"channel" : "In-Store",
"merchantUrl" : "https://amazon1.com",
"country" : "",
"state" : "",
"city" : "",
"postalZipcode" : "",
"merchantBannerImage" : "https://dpimages.crayondata.com/high-res-image/hdfc/genric_updated/1280x800/3469.webp",
"merchantImage" : "https://dpimages.crayondata.com/high-res-image/hdfc/genric_updated/1280x800/3469.webp",
"clientName" : "HDFC",
"phoneNumber" : "nan",
"isHyperLocal" : 1,
"tradeLicenseNumber" : "LIC123459"
}
| Path | Type | Description |
|---|---|---|
|
|
Merchant ID |
|
|
Merchant name |
|
|
Registered company name |
|
|
Brand logos |
|
|
Merchant description |
|
|
Merchant category |
|
|
Applicable marketplaces |
|
|
Channel |
|
|
Merchant URL |
|
|
Country |
|
|
State |
|
|
City |
|
|
Postal/Zip code |
|
|
Merchant banner image |
|
|
Merchant image |
|
|
Client name |
|
|
Phone number |
|
|
Hyperlocal flag |
|
|
Trade license number |
51. Search Merchant Names
Endpoint: POST /api/v1/merchants/search?searchType=MERCHANTS
Purpose: Search merchants by keyword.
51.1. Request
POST /api/v1/merchants/search?searchType=MERCHANTS HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 40
Host: localhost:8080
{
"searchWord" : "unittest merchant"
}
| Parameter | Description |
|---|---|
|
Merchant search type (MERCHANTS or CAMPAIGN_MERCHANTS) |
| Path | Type | Description |
|---|---|---|
|
|
Merchant search keyword |
51.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 156
[ {
"merchantName" : "unittest merchant 4 update",
"merchantId" : "HDFC25205",
"category" : "personal service providers",
"channel" : "In-Store"
} ]
| Path | Type | Description |
|---|---|---|
|
|
Merchant name |
|
|
Merchant ID |
|
|
Merchant category |
|
|
Merchant channel |
52. Search Campaign Merchant Names
Endpoint: POST /api/v1/merchants/search?searchType=CAMPAIGN_MERCHANTS
Purpose: Search merchants for campaign selection.
52.1. Request
POST /api/v1/merchants/search?searchType=CAMPAIGN_MERCHANTS HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 27
Host: localhost:8080
{
"searchWord" : "test"
}
| Parameter | Description |
|---|---|
|
Merchant search type (MERCHANTS or CAMPAIGN_MERCHANTS) |
| Path | Type | Description |
|---|---|---|
|
|
Merchant search keyword |
52.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 418
[ {
"merchantName" : "testbulkuploadeditadd18thfeb",
"merchantId" : "HDFC105009",
"category" : "personal service providers",
"channel" : "Online"
}, {
"merchantName" : "soft drinks test xls",
"merchantId" : "HDFC105690",
"category" : "entertainment",
"channel" : "Both"
}, {
"merchantName" : "test sanity new raw",
"merchantId" : "HDFC106775",
"category" : "electronics",
"channel" : "Both"
} ]
| Path | Type | Description |
|---|---|---|
|
|
Merchant name |
|
|
Merchant ID |
|
|
Merchant category |
|
|
Merchant channel |
53. Create Merchant
Endpoint: POST /api/v1/merchants/create
Purpose: Create a new merchant.
53.1. Request
POST /api/v1/merchants/create HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 1278
Host: localhost:8080
{
"merchantName" : "Nike Store",
"businessName" : "Nike Inc.",
"phoneNumber" : "+91-7777777777",
"isHyperLocal" : 0,
"tradeLicenseNumber" : "LIC-003",
"merchantDescription" : "Test merchant",
"category" : "entertainment",
"operatingCountries" : "",
"channel" : "Online",
"websiteUrl" : "https://nike.com",
"country" : "",
"state" : "",
"city" : "",
"postalCode" : "",
"merchantLogo" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4",
"merchantImage" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4",
"merchantBanner" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABTIAAAL5CAYAAACD2NutAAAgAElEQVR4nOzdfXhU9b33+88IhhYbNi3GHGOoINQEuqUNJDUbfJ6qGHaSKoi9JdvU0HoHOCqtGs8mgd2DwX1MdRfxImRbDTfuwS0CegglRuyIjzQ2gXSnLSRtEJUYm0Z2K+M+kxXHptY43dfCZJ3S374Iq6z16xD/fA/gG2fBv/70Fc+HptBXKflhmCwsLmp+f19zcnB4"
}
| Path | Type | Description |
|---|---|---|
|
|
Merchant name |
|
|
Business name (optional) |
|
|
Phone number (optional) |
|
|
Hyperlocal flag (optional) |
|
|
Trade license number (optional) |
|
|
Merchant description (optional) |
|
|
Merchant category |
|
|
Operating countries (optional) |
|
|
Channel (In-Store/Online/Both) |
|
|
Website URL |
|
|
Country (optional) |
|
|
State (optional) |
|
|
City (optional) |
|
|
Postal code (optional) |
|
|
Merchant logo (base64) (optional) |
|
|
Merchant image (base64) (optional) |
|
|
Merchant banner (base64) (optional) |
53.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 47
{
"sessionId" : "1",
"status" : "Pending"
}
| Path | Type | Description |
|---|---|---|
|
|
Upload session ID |
|
|
Merchant creation status |
54. Update Merchant
Endpoint: PUT /api/v1/merchants/{merchantId}
Purpose: Update existing merchant details.
54.1. Request
PUT /api/v1/merchants/HDFC106789 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 813
Host: localhost:8080
{
"merchantName" : "test data third party intergration",
"businessName" : "test data third party intergration003",
"merchantDescription" : "",
"category" : "entertainment",
"phoneNumber" : "+91-9876545676",
"isHyperLocal" : 0,
"tradeLicenseNumber" : "6543wb",
"operatingCountries" : "India",
"channel" : "Both",
"websiteUrl" : "https://www.amazon.in",
"country" : "",
"state" : "",
"city" : "",
"postalCode" : "",
"merchantLogo" : "https://dpimages.crayondata.com/high-res-image/dev/testdatathirdpartyintergration0031779430882296.jpeg",
"merchantImage" : "https://dpimages.crayondata.com/high-res-image/dev/TestMerchantmeHj9XJxrxboth1784019389810.jpeg",
"merchantBanner" : "https://dpimages.crayondata.com/high-res-image/dev/testdatathirdpartyintergration0031779430880268.jpeg"
}
| Parameter | Description |
|---|---|
|
Merchant ID |
| Path | Type | Description |
|---|---|---|
|
|
Merchant name (optional) |
|
|
Business name (optional) |
|
|
Merchant description (optional) |
|
|
Merchant category (optional) |
|
|
Phone number (optional) |
|
|
Hyperlocal flag |
|
|
Trade license number (optional) |
|
|
Operating countries (optional) |
|
|
Merchant channel |
|
|
Website URL (optional) |
|
|
Country (optional) |
|
|
State (optional) |
|
|
City (optional) |
|
|
Postal code (optional) |
|
|
Merchant logo URL/base64 (optional) |
|
|
Merchant image URL/base64 (optional) |
|
|
Merchant banner URL/base64 (optional) |
54.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 47
{
"sessionId" : "1",
"status" : "Success"
}
| Path | Type | Description |
|---|---|---|
|
|
Upload session ID |
|
|
Merchant update status |
55. Type Ahead Merchants
Endpoint: POST /api/v1/merchants/typeAhead
Purpose: Auto-suggest merchants by keyword.
55.1. Request
POST /api/v1/merchants/typeAhead HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 27
Host: localhost:8080
{
"searchWord" : "test"
}
| Path | Type | Description |
|---|---|---|
|
|
Merchant search keyword with minimum 3 characters |
55.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 29
[ "TEST001", "test", "Test" ]
| Path | Type | Description |
|---|---|---|
|
|
List of merchant names |
56. Get Merchant Filters
Endpoint: GET /api/v1/merchants/filters
Purpose: Retrieve available merchant filter options.
56.1. Request
GET /api/v1/merchants/filters HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
56.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 157
{
"category" : [ "All", "apparel and accessories", "dining" ],
"channel" : [ "All", "Both", "In-Store" ],
"country" : [ "All", "Albania", "Algeria" ]
}
| Path | Type | Description |
|---|---|---|
|
|
Available merchant channels (optional) |
|
|
Available merchant categories (optional) |
|
|
Available merchant countries (optional) |
57. Get Merchant Stores
Endpoint: POST /api/v1/merchants/stores/{merchantId}
Purpose: Retrieve store locations for a merchant.
57.1. Request
POST /api/v1/merchants/stores/HDFC26409 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 187
Host: localhost:8080
{
"filters" : {
"country" : [ "all", "India" ],
"city" : [ "all", "Chennai", "Mumbai", "Pune" ],
"state" : [ "all", "Maharashtra", "Tamil Nadu" ]
},
"offerId" : 415265
}
| Parameter | Description |
|---|---|
|
Merchant ID |
| Path | Type | Description |
|---|---|---|
|
|
Dynamic filter map for country/state/city (optional) |
|
|
Country filter list (optional) |
|
|
State filter list (optional) |
|
|
City filter list (optional) |
|
|
Offer ID for filtering store locations (optional) |
57.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 668
{
"storeLocations" : [ {
"cdfLocationId" : 927493,
"address" : "tbm",
"city" : "Chennai",
"country" : "India",
"countryCode" : "",
"state" : "Tamil Nadu",
"latitude" : null,
"longitude" : null,
"storeName" : "Store 3",
"zipCode" : "0000",
"mapLink" : "",
"associatedWithLiveOffers" : false
}, {
"cdfLocationId" : 927494,
"address" : "karadi",
"city" : "Pune",
"country" : "India",
"countryCode" : "",
"state" : "Maharashtra",
"latitude" : null,
"longitude" : null,
"storeName" : "Store 4",
"zipCode" : "0000",
"mapLink" : "",
"associatedWithLiveOffers" : false
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of merchant store locations |
|
|
CDF location ID |
|
|
Store address |
|
|
City |
|
|
Country |
|
|
Country code |
|
|
State |
|
|
Latitude |
|
|
Longitude |
|
|
Store name |
|
|
Zip code |
|
|
Map link |
|
|
Whether store is linked to live offers |
58. Get Merchant Store Filters
Endpoint: GET /api/v1/merchants/stores/filters/{merchantId}
Purpose: Retrieve store filter options for a merchant.
58.1. Request
GET /api/v1/merchants/stores/filters/HDFC26409 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Merchant ID |
58.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 129
{
"country" : [ "All", "India" ],
"state" : [ "All", "Maharashtra", "Tamil Nadu" ],
"city" : [ "All", "Chennai", "Pune" ]
}
| Path | Type | Description |
|---|---|---|
|
|
Country filter values |
|
|
State filter values |
|
|
City filter values |
59. Delete Merchant Stores
Endpoint: DELETE /api/v1/merchants/stores/{merchantId}
Purpose: Delete store locations for a merchant.
59.1. Request
DELETE /api/v1/merchants/stores/HDFC105861 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 190
Host: localhost:8080
{
"city" : "all",
"country" : "all",
"state" : "all",
"address" : "VISIT_NEAREST_STORE-Visit / Contact the nearest merchant store.",
"zipCode" : "0000",
"storeName" : "Store 1"
}
| Parameter | Description |
|---|---|
|
Merchant ID |
| Path | Type | Description |
|---|---|---|
|
|
City |
|
|
Country |
|
|
State |
|
|
Address |
|
|
Zip code |
|
|
Store name |
59.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 65
{
"message" : "Store Location deleted",
"statusCode" : "OK"
}
| Path | Type | Description |
|---|---|---|
|
|
Response message |
|
|
HTTP status |
60. Get All Merchant View Card
Endpoint: POST /api/v1/merchants/merchant-viewcard/
Purpose: Retrieve merchant view card details.
60.1. Request
POST /api/v1/merchants/merchant-viewcard/ HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 37
Host: localhost:8080
{
"merchantIds" : [ "HDFC12116" ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of merchant IDs |
60.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 356
[ {
"cdfMerchantId" : "HDFC12116",
"merchantName" : "Akasaki DD Mobile",
"merchantImage" : "https://dpimages.crayondata.com/high-res-image/hdfc/genric_updated/1280x800/3459.webp",
"category" : "retail stores",
"cdfOfferId" : "415752",
"offerTitle" : "API doc test live",
"validTo" : "2030-07-10T23:59:59",
"applicableChannel" : "Online"
} ]
| Path | Type | Description |
|---|---|---|
|
|
Merchant ID |
|
|
Merchant name |
|
|
Merchant image URL |
|
|
Merchant category |
|
|
Offer ID |
|
|
Offer title |
|
|
Offer valid till date |
|
|
Applicable channel (Online/In-Store/Both) |
61. Get Merchant Id
Endpoint: GET /api/v1/merchants?sessionId={sessionId}
Purpose: Retrieve the merchant ID generated using the sessionId.
61.1. Request
GET /api/v1/merchants?sessionId=8309 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Uploaded session ID |
61.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 33
{
"merchantId" : "HDFC106961"
}
| Path | Type | Description |
|---|---|---|
|
|
Merchant ID generated after merchant creation |
Campaign APIs
62. Get Campaign By ID
Endpoint: GET /api/v1/campaigns/{campaignId}
Purpose: Retrieve campaign details by ID.
62.1. Request
GET /api/v1/campaigns/900182 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
ID of the Campaign |
62.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 952
{
"campaignId" : 900182,
"campaignName" : "Banner Campaign Test",
"campaignDescription" : "<p>--</p>",
"campaignStatus" : "active",
"campaignType" : "MANUALLY_CURATED",
"campaignCategory" : "OFFER_MERCHANTS",
"campaignMerchants" : [ {
"merchantId" : "HDFC105787",
"merchantName" : "Havmor exc",
"rank" : 0,
"offerRankDetails" : null
} ],
"images" : {
"default" : "https://dpimages.crayondata.com/high-res-image/dev/camp_Default1782190574054.jpeg",
"thumbnail" : "https://dpimages.crayondata.com/high-res-image/dev/camp_Thumbnail1782190576974.jpeg"
},
"validFrom" : "2026-06-23 00:00:00",
"validTo" : "2026-07-26 23:59:59",
"heroCampaign" : false,
"bannerCampaign" : false,
"pageName" : null,
"hideOnHomePage" : true,
"allUsers" : false,
"clientAssetIds" : [ "WEB_APP", "OBOP" ],
"cities" : [ "all" ],
"applicableForClient" : "LIFESTYLE",
"howToAvail" : "",
"termsAndConditions" : ""
}
| Path | Type | Description |
|---|---|---|
|
|
Campaign ID |
|
|
Campaign name |
|
|
Campaign description |
|
|
Campaign status |
|
|
Campaign type |
|
|
Campaign category |
|
|
List of merchants associated with the campaign |
|
|
Merchant ID |
|
|
Merchant name |
|
|
Merchant rank within the campaign |
|
|
Offer rank details (can be null) |
|
|
Campaign images |
|
|
Default image URL |
|
|
Thumbnail image URL |
|
|
Campaign start date |
|
|
Campaign end date |
|
|
Whether the campaign is a hero campaign |
|
|
Whether the campaign is a banner campaign |
|
|
Page where the campaign is displayed |
|
|
Whether the campaign is hidden on the home page |
|
|
Whether the campaign is applicable to all users |
|
|
List of client asset IDs |
|
|
Applicable cities |
|
|
Applicable client |
|
|
Instructions to avail the campaign |
|
|
Campaign terms and conditions |
63. Get All Campaigns
Endpoint: POST /api/v1/campaigns
Purpose: Retrieve paginated list of campaigns with filters.
63.1. Request
POST /api/v1/campaigns HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 311
Host: localhost:8080
{
"offset" : 0,
"limit" : 10,
"filters" : {
"fromDate" : {
"dateStart" : "2026-06-22",
"dateEnd" : "2027-06-27"
},
"campaignType" : [ "MANUALLY_CURATED" ],
"campaignSource" : [ "HDFC" ],
"status" : [ "Draft" ]
},
"sortBy" : "",
"sortOrder" : "",
"searchWord" : ""
}
| Path | Type | Description |
|---|---|---|
|
|
Pagination offset |
|
|
Number of records per page |
|
|
Campaign filters object |
|
|
Campaign status filter list |
|
|
Campaign source filter list |
|
|
Campaign type filter list |
|
|
Date range filter object |
|
|
Start date (yyyy-MM-dd) |
|
|
End date (yyyy-MM-dd) |
|
|
Sorting field |
|
|
Sorting order |
|
|
Search keyword |
63.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 531
{
"totalCount" : 1,
"campaignListResponse" : [ {
"campaignId" : 900248,
"campaignName" : "API Doc test",
"campaignDescription" : "",
"campaignStatus" : "Draft",
"validFrom" : "2027-04-20 00:00:00",
"validTo" : "2027-04-30 23:59:59",
"createdDate" : "2026-10-12 11:11:29.633715",
"lastUpdated" : "2026-10-12 11:11:29.63372",
"rejectionReason" : "",
"nextActions" : "Submit for Approval, Edit, View",
"campaignType" : "MANUALLY_CURATED"
} ],
"paginationDropdown" : [ 10, 25, 50 ]
}
| Path | Type | Description |
|---|---|---|
|
|
Total number of campaigns |
|
|
List of campaigns |
|
|
Campaign ID |
|
|
Campaign name |
|
|
Campaign description |
|
|
Campaign status |
|
|
Campaign start date |
|
|
Campaign end date |
|
|
Campaign creation timestamp |
|
|
Campaign last updated timestamp |
|
|
Rejection reason if any |
|
|
Available actions |
|
|
Campaign type |
|
|
Pagination options |
64. Create Campaign
Endpoint: POST /api/v1/campaigns/create
Purpose: Create a new campaign.
64.1. Request
POST /api/v1/campaigns/create HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 945
Host: localhost:8080
{
"name" : "Campaign doc new ",
"description" : "<p>--</p>",
"campaignCategory" : "OFFER_MERCHANTS",
"nameAr" : "NA",
"descriptionAr" : "NA",
"images" : {
"default" : "https://dpimages.crayondata.com/high-res-image/dev/camp_default.jpeg",
"thumbnail" : "https://dpimages.crayondata.com/high-res-image/dev/camp_thumb.jpeg"
},
"startDateTime" : "2027-06-30T00:00:00+05:30",
"endDateTime" : "2027-07-04T23:59:59+05:30",
"allUsers" : false,
"campaignMerchants" : [ {
"merchantId" : "HDFC106831",
"merchantName" : "Test jun 24 EIP jewellery",
"rank" : 0,
"offerRankDetails" : null
} ],
"heroCampaign" : false,
"bannerCampaign" : false,
"pageName" : null,
"hideOnHomePage" : true,
"applicableForClient" : "LIFESTYLE",
"cities" : [ "all" ],
"campaignType" : "MANUALLY_CURATED",
"clientAssetIds" : [ "WEB_APP", "OBOP" ],
"howToAvail" : "<p>--</p>",
"termsAndConditions" : "<p>--</p>"
}
| Path | Type | Description |
|---|---|---|
|
|
Campaign name |
|
|
Campaign description |
|
|
Campaign category |
|
|
Arabic name |
|
|
Arabic description |
|
|
Campaign images |
|
|
Default image |
|
|
Thumbnail image |
|
|
Campaign start datetime |
|
|
Campaign end datetime |
|
|
Applicable for all users |
|
|
Merchant list |
|
|
Merchant ID |
|
|
Merchant name |
|
|
Merchant rank |
|
|
Merchant offer rank details |
|
|
Hero campaign flag |
|
|
Banner campaign flag |
|
|
Page name |
|
|
Hide on home page flag |
|
|
Applicable client type |
|
|
List of cities |
|
|
Campaign type |
|
|
Client asset IDs |
|
|
How to avail |
|
|
Terms and conditions |
64.2. Response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 57
{
"sessionId" : "1",
"status" : "Inserted into GMR"
}
| Path | Type | Description |
|---|---|---|
|
|
Upload session ID |
|
|
Campaign creation status |
65. Update Campaign
Endpoint: PUT /api/v1/campaigns/{campaignId}?updateType=CAMPAIGN_UPDATE
Purpose: Update existing campaign.
65.1. Request
PUT /api/v1/campaigns/900184?updateType=CAMPAIGN_UPDATE HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 882
Host: localhost:8080
{
"name" : "Campaign doc 1",
"description" : "<p>--</p>",
"nameAr" : "NA",
"descriptionAr" : "NA",
"images" : {
"thumbnail" : "https://dpimages.crayondata.com/high-res-image/dev/camp_thumb.jpeg",
"default" : "https://dpimages.crayondata.com/high-res-image/dev/camp_default.jpeg"
},
"startDateTime" : "2027-06-30T00:00:00+05:30",
"endDateTime" : "2027-07-04T23:59:59+05:30",
"allUsers" : false,
"campaignMerchants" : [ {
"merchantId" : "HDFC105786",
"merchantName" : "Chocolate new exc",
"rank" : 0,
"offerRankDetails" : null
} ],
"heroCampaign" : false,
"bannerCampaign" : false,
"pageName" : null,
"hideOnHomePage" : true,
"applicableForClient" : "LIFESTYLE",
"campaignType" : "MANUALLY_CURATED",
"clientAssetIds" : [ "WEB_APP", "OBOP" ],
"howToAvail" : "how to avail",
"termsAndConditions" : "terms and conditions"
}
| Parameter | Description |
|---|---|
|
Campaign ID |
| Parameter | Description |
|---|---|
|
CAMPAIGN_UPDATE or CAMPAIGN_DUPLICATE |
| Path | Type | Description |
|---|---|---|
|
|
Campaign name |
|
|
Campaign description |
|
|
Arabic name |
|
|
Arabic description |
|
|
Campaign images map |
|
|
Default image URL |
|
|
Thumbnail image URL |
|
|
Start datetime |
|
|
End datetime |
|
|
All users flag |
|
|
Merchant list |
|
|
Merchant ID |
|
|
Merchant name |
|
|
Rank |
|
|
Offer rank details |
|
|
Hero campaign flag |
|
|
Banner campaign flag |
|
|
Page name |
|
|
Hide on home page |
|
|
Applicable client |
|
|
Campaign type (either MANUALLY_CURATED or MERCHANT_CAMPAIGN) |
|
|
Client assets |
|
|
How to avail |
|
|
T&C |
65.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 74
{
"campaignId" : 900184,
"message" : "Campaign Updated Successfully"
}
| Path | Type | Description |
|---|---|---|
|
|
Campaign ID |
|
|
Status message |
66. Campaign Actions
Endpoint: POST /api/v1/campaigns/status
Purpose: Perform bulk actions on campaigns.
66.1. Request
POST /api/v1/campaigns/status HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 68
Host: localhost:8080
{
"actionType" : "CAMPAIGN_SUBMIT",
"campaignIds" : [ 900184 ]
}
| Path | Type | Description |
|---|---|---|
|
|
Action type: CAMPAIGN_PAUSE | CAMPAIGN_RESUME | CAMPAIGN_WITHDRAW | CAMPAIGN_SUBMIT |
|
|
List of campaign IDs to perform action on |
66.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 125
{
"sessionIds" : [ "1" ],
"status" : "Pending",
"error" : null,
"invalidCampaignIds" : [ ],
"errorMessages" : [ ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of upload session IDs generated for the action |
|
|
Overall processing status (e.g., Pending, Success) |
|
|
Error message if any global failure occurs |
|
|
List of campaign IDs that failed processing |
|
|
Detailed per-campaign error information |
67. Approve or Reject Campaign
Endpoint: POST /api/v1/campaigns/review
Purpose: Approve or reject campaigns.
67.1. Request
POST /api/v1/campaigns/review HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 158
Host: localhost:8080
{
"actionType" : "CAMPAIGN_APPROVE",
"campaignIds" : [ {
"campaignId" : 900208,
"rejectionReason" : null
} ],
"commonRejectionReason" : null
}
| Path | Type | Description |
|---|---|---|
|
|
CAMPAIGN_APPROVE or CAMPAIGN_REJECT |
|
|
List of campaigns to process |
|
|
Campaign ID |
|
|
Rejection reason (required for reject flow) |
|
|
Common rejection reason for all campaigns |
67.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 125
{
"sessionIds" : [ "1" ],
"status" : "Pending",
"error" : null,
"invalidCampaignIds" : [ ],
"errorMessages" : [ ]
}
| Path | Type | Description |
|---|---|---|
|
|
List of upload session IDs generated for the action |
|
|
Overall processing status (e.g., Pending, Success) |
|
|
Error message if any global failure occurs |
|
|
List of campaign IDs that failed processing |
|
|
Detailed per-campaign error information |
68. Search Campaign
Endpoint: POST /api/v1/campaigns/search
Purpose: Search campaigns by keyword.
68.1. Request
POST /api/v1/campaigns/search HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 26
Host: localhost:8080
{
"searchWord" : "cam"
}
| Path | Type | Description |
|---|---|---|
|
|
Campaign search keyword (minimum 3 characters) |
68.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 64
[ "Test campaign 2511", "campaign test 0212", "Campaign new 1" ]
| Path | Type | Description |
|---|---|---|
|
|
List of matching campaign names or suggestions |
69. Get Campaign History Filters
Endpoint: GET /api/v1/campaigns/history/filters/{campaignId}
Purpose: Retrieve history filter options for a campaign.
69.1. Request
GET /api/v1/campaigns/history/filters/900182 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Campaign ID for history filters |
69.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 35
{
"field" : [ "All", "status" ]
}
| Path | Type | Description |
|---|---|---|
|
|
Dynamic filter values |
70. Get Campaign History
Endpoint: POST /api/v1/campaigns/history/{campaignId}
Purpose: Retrieve campaign history.
70.1. Request
POST /api/v1/campaigns/history/900184 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 149
Host: localhost:8080
{
"timeZone" : "Asia/Calcutta",
"filters" : {
"field" : [ "campaign_name" ],
"toDate" : "2026-07-09",
"fromDate" : "2026-06-30"
}
}
| Parameter | Description |
|---|---|
|
Campaign ID |
| Path | Type | Description |
|---|---|---|
|
|
Timezone for history response |
|
|
Start date filter |
|
|
End date filter |
|
|
Fields to filter history on |
70.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 390
{
"campaignId" : 900184,
"campaignName" : "Campaign doc 1",
"campaignStatus" : "DRAFT",
"campaignHistoryList" : [ {
"campaignHistoryId" : 1330,
"actionDateTime" : "2026-06-30 16:11:20",
"userName" : "Vishnupriya J",
"field" : "Campaign Name",
"action" : "Edit",
"previousValue" : "Campaign doc",
"newValue" : "Campaign doc 1",
"comments" : ""
} ]
}
| Path | Type | Description |
|---|---|---|
|
|
Campaign ID |
|
|
Campaign name |
|
|
Campaign status |
|
|
List of campaign history records |
|
|
History record ID |
|
|
Action timestamp |
|
|
User who performed action |
|
|
Field changed |
|
|
Action type |
|
|
Old value |
|
|
New value |
|
|
Additional comments |
71. Download Campaign History CSV
Endpoint: POST /api/v1/campaigns/history/download/{campaignId}
Purpose: Download campaign history as CSV.
71.1. Request
POST /api/v1/campaigns/history/download/900184 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 180
Host: localhost:8080
{
"timeZone" : "Asia/Calcutta",
"filters" : {
"field" : [ "campaign_name" ],
"toDate" : "2026-07-09",
"fromDate" : "2026-06-30"
},
"campaignHistoryIds" : null
}
| Parameter | Description |
|---|---|
|
Campaign ID |
| Path | Type | Description |
|---|---|---|
|
|
Timezone for CSV export |
|
|
Start date filter |
|
|
End date filter |
|
|
Fields included in history export |
|
|
Optional list of history IDs to filter export |
72. Get Campaign Filters
Endpoint: GET /api/v1/campaigns/filters
Purpose: Retrieve available campaign filter options.
72.1. Request
GET /api/v1/campaigns/filters HTTP/1.1
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
72.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 167
{
"campaignType" : [ "All", "MANUALLY_CURATED", "MERCHANT_CAMPAIGN" ],
"campaignSource" : [ "All", "CRAYON", "HDFC" ],
"status" : [ "All", "Draft", "Expired" ]
}
| Path | Type | Description |
|---|---|---|
|
|
Campaign type filter values (e.g., MANUALLY_CURATED, MERCHANT_CAMPAIGN) |
|
|
Campaign source filter values (e.g., CRAYON, HDFC) |
|
|
Campaign status filter values (e.g., Draft, Live, Expired) |
Bulk Upload APIs
73. Get Bulk Upload Status
Endpoint: GET /api/v1/bulkUpload/status
Purpose: Retrieve bulk upload session status.
73.1. Request
GET /api/v1/bulkUpload/status?offset=0&limit=3&sessionType=BULK_UPLOAD HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Pagination offset |
|
Number of records per page |
|
Type of upload session |
73.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1857
{
"uploadStatusResponse" : [ {
"id" : 9343,
"fileName" : "test nearby (1).xlsx",
"createdAt" : "Nov 13, 2026",
"status" : "COMPLETED",
"fileSize" : 15117,
"failedDocUrl" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/data_validation/Output/9343/invalid/data/csv/offer.csv",
"note" : "",
"userUploadedFile" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/input/csv/1794556416346/test%20nearby%20%281%29.xlsx",
"successDocUrl" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/data_validation/Output/9343/valid/data/csv/offer.csv",
"uploadedBy" : "AUTOMATION ACCOUNT 2 HDFC"
}, {
"id" : 9328,
"fileName" : "template (17).xlsx",
"createdAt" : "Nov 12, 2026",
"status" : "COMPLETED",
"fileSize" : 13527,
"failedDocUrl" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/data_validation/Output/9328/invalid/data/csv/offer.csv",
"note" : "",
"userUploadedFile" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/input/csv/1794481924511/template%20%2817%29.xlsx",
"successDocUrl" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/data_validation/Output/9328/valid/data/csv/offer.csv",
"uploadedBy" : "AUTOMATION ACCOUNT 4 VY"
}, {
"id" : 9327,
"fileName" : "template (17).xlsx",
"createdAt" : "Nov 12, 2026",
"status" : "FAILURE",
"fileSize" : 13357,
"failedDocUrl" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/data_validation/Output/9327/invalid/data/csv/offer.csv",
"note" : "Upload failed due to invalid offer data. No valid records found.",
"userUploadedFile" : "https://bank-maya-data.s3.amazonaws.com/bulk_upload/dev/input/csv/1794481508013/template%20%2817%29.xlsx",
"successDocUrl" : "",
"uploadedBy" : "AUTOMATION ACCOUNT 4 VY"
} ],
"totalCount" : 1462
}
| Path | Type | Description |
|---|---|---|
|
|
Upload session ID |
|
|
Uploaded file name |
|
|
Upload timestamp |
|
|
Current upload status |
|
|
Size of the uploaded file in bytes |
|
|
URL of the failed records document |
|
|
Additional upload notes |
|
|
Original uploaded file URL |
|
|
URL of the successfully processed document |
|
|
User who uploaded the file |
|
|
Total number of upload records |
74. Bulk Offer Upload
Endpoint: POST /api/v1/bulkUpload/offers
Purpose: Upload offers in bulk via Excel file.
74.1. Request
POST /api/v1/bulkUpload/offers HTTP/1.1
Content-Type: multipart/form-data; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=file; filename=offers.xlsx
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
dummy content
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
| Part | Description |
|---|---|
|
Excel file containing bulk offers |
74.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 72
{
"offerId" : null,
"sessionId" : "422554",
"status" : "SUCCESS"
}
| Path | Type | Description |
|---|---|---|
|
|
Offer ID (Null) |
|
|
Bulk upload session ID |
|
|
Bulk upload status |
75. Download File
Endpoint: GET /api/v1/bulkUpload/download/{uploadSessionId}
Purpose: Download uploaded file or processed result.
75.1. Request
GET /api/v1/bulkUpload/download/1562 HTTP/1.1
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
| Parameter | Description |
|---|---|
|
Upload session ID |
75.2. Response
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="offers.xlsx"
Content-Length: 18
Dummy file content
| Name | Description |
|---|---|
|
Content type of the downloaded file |
|
Content disposition containing the downloaded file name |
OMP Support APIs
76. Get Support Config
Endpoint: GET /api/v1/support/config
Purpose: Retrieve the OMP Support form configuration (support email, pre-filled user details, client and categories).
76.1. Request
GET /api/v1/support/config HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
76.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 380
{
"supportEmail" : "offermanagement@crayondata.com",
"userName" : "John Doe",
"email" : "john.doe@crayondata.com",
"clientName" : "HDFC",
"categories" : {
"LOGIN_ACCESS" : "Login & Access",
"MERCHANTS" : "Merchants",
"OFFERS" : "Offers",
"CAMPAIGNS" : "Campaigns",
"BULK_UPLOAD" : "Bulk Upload",
"REPORTS" : "Reports",
"OTHER" : "Other"
}
}
| Path | Type | Description |
|---|---|---|
|
|
Support email address the request is sent to (read-only) |
|
|
Logged-in user’s name (pre-fill for 'Your name') |
|
|
Logged-in user’s email (pre-fill for 'Reply-to email') |
|
|
Logged-in user’s client name (read-only) |
|
|
Support categories as key/label map |
77. Raise Support Request
Endpoint: POST /api/v1/support/requests
Purpose: Raise an OMP Support request. Sends the request to the support team and an acknowledgement mail to the user.
77.1. Request
POST /api/v1/support/requests HTTP/1.1
Content-Type: multipart/form-data; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Authorization: Bearer <JWT_TOKEN>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/130.0.0.0
Host: localhost:8080
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=request
Content-Type: application/json
{"name":"John Doe","replyToEmail":"john.doe@crayondata.com","category":"Offers","subject":"Test - Offer Hub is not visible","description":"Test - Offer hub page is not visible and re-directed","appVersion":"2.4.1","sourcePage":"/offers/hub"}
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=attachments; filename=error-screen.png
Content-Type: image/png
<<png data>>
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
| Name | Description |
|---|---|
|
Bearer authentication token |
|
Browser user agent (used to derive browser / OS) |
| Part | Description |
|---|---|
|
Support request details (application/json) |
|
Optional attachments (up to 3 files, 5 MB each: PNG, JPG, PDF, XLSX, CSV) |
| Path | Type | Description |
|---|---|---|
|
|
User’s name (required) |
|
|
Reply-to email address (required) |
|
|
Category key or label from the support config (required) |
|
|
Subject (required, max 150 characters) |
|
|
Issue description (required, max 2000 characters) |
|
|
Frontend application version |
|
|
Page the user came from (shown in the support mail) |
77.2. Response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 151
{
"referenceNumber" : "OMP-SUP-000123",
"replyToEmail" : "john.doe@crayondata.com",
"status" : "SENT",
"sentAt" : "2026-11-12T09:52:00+05:30"
}
| Path | Type | Description |
|---|---|---|
|
|
Unique support reference number |
|
|
Email address the acknowledgement was sent to |
|
|
Support request status |
|
|
Time the support mail was sent (ISO-8601 with offset, in the configured support time zone) |
Internal APIs
78. Trigger Country Dataset Load
Endpoint: POST /api/v1/internal/countries/loadData
Purpose: Trigger country data pipeline.
78.1. Request
POST /api/v1/internal/countries/loadData HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 72
Host: localhost:8080
{
"countriesEntityName" : "Countries",
"authKey" : "test-auth-key"
}
| Path | Type | Description |
|---|---|---|
|
|
Country entity name (Countries or CountriesTest) |
|
|
Authorization key for triggering the dataset load |
78.2. Response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 81
{
"message" : "Countries Data Pipeline Triggered",
"statusCode" : "CREATED"
}
| Path | Type | Description |
|---|---|---|
|
|
Response message |
|
|
HTTP status of the operation |
79. Clear Cache
Endpoint: POST /api/v1/internal/clearCache
Purpose: Clear application cache.
79.1. Request
POST /api/v1/internal/clearCache HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Host: localhost:8080
79.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 61
{
"message" : "Cache Cleared",
"statusCode" : "CREATED"
}
| Path | Type | Description |
|---|---|---|
|
|
Cache clear operation status message |
|
|
HTTP status of the cache clear operation |
80. Generate Client Secret
Endpoint: POST /api/v1/internal/generate-clientSecret
Purpose: Generate client secret for third-party integration.
80.1. Request
POST /api/v1/internal/generate-clientSecret HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 90
Host: localhost:8080
{
"clientId" : 1,
"email" : "john.doe@crayondata.com",
"password" : "Password@123"
}
| Path | Type | Description |
|---|---|---|
|
|
Client ID |
|
|
Client email address |
|
|
Client password |
80.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 44
{
"ClientSecret" : "client secret token"
}
| Path | Type | Description |
|---|---|---|
|
|
Generated encrypted client secret |
81. Add Client
Endpoint: POST /api/v1/internal/add-client
Purpose: Register a new client.
81.1. Request
POST /api/v1/internal/add-client HTTP/1.1
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Content-Length: 180
Host: localhost:8080
{
"clientName" : "Test Client",
"emailDomains" : "testclient.com",
"isThirdparty" : false,
"isApprovalSkip" : false,
"restrictedEndpoints" : "/api/v1/test,/api/v1/demo"
}
| Path | Type | Description |
|---|---|---|
|
|
Name of the client |
|
|
Allowed email domain(s) for the client |
|
|
Indicates whether the client is a third-party client |
|
|
Indicates whether approval workflow should be skipped |
|
|
Comma-separated list of restricted API endpoints |
81.2. Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 65
{
"clientId" : 1,
"message" : "Client Created Successfully"
}
| Path | Type | Description |
|---|---|---|
|
|
Generated client ID |
|
|
Client creation status |
Error Codes & Exception Reference
| Exception | HTTP Status | When Thrown |
|---|---|---|
|
404 Not Found |
When requested user does not exist in the system |
|
401 Unauthorized |
When authentication fails or user lacks required permissions |
|
500 Internal Server Error |
When an unexpected server-side error occurs |
|
404 Not Found |
When requested offer ID does not exist |
|
500 Internal Server Error |
When email sending fails (verification, notification, etc.) |
|
500 Internal Server Error |
Generic catch-all for unhandled business logic errors |
|
409 Conflict |
When trying to create a merchant that already exists |
|
500 Internal Server Error |
When JWT token generation fails |
|
401 Unauthorized |
When user account is deactivated/suspended |
|
404 Not Found |
When specified role does not exist |
|
400 Bad Request |
When login credentials are incorrect |
|
400 Bad Request |
When email verification fails |
|
400 Bad Request |
When user profile update fails |
|
400 Bad Request |
When trying to register with existing email/username |
|
400 Bad Request |
When provided token is invalid or malformed |
|
404 Not Found |
When expected response data is not found |
|
400 Bad Request |
When client/tenant ID does not exist |
|
400 Bad Request |
When requested merchant ID does not exist |
|
400 Bad Request |
When trying to create an offer that already exists |
|
400 Bad Request |
When invalid argument is passed to a method |
|
400 Bad Request |
When method argument fails validation |
|
400 Bad Request |
When input data fails validation rules |
|
400 Bad Request |
When @Valid annotated request body fails validation |
|
401 Unauthorized |
When Spring Security authentication fails |
|
401 Unauthorized |
When user lacks required role/permission |
|
401 Unauthorized |
When JWT signature verification fails |
|
401 Unauthorized |
When JWT token has expired |
|
401 Unauthorized |
When JWT token structure is invalid |
|
- (no response) |
When requesting non-existent static resource |
|
500 Internal Server Error |
Catch-all for any unhandled exceptions |