Skip to content

Add Ticket

This endpoint creates a ticket for the given customer.

1
POST /customers/<customerId>/tickets

Input Parameters

Path Param Type Required Description
customerId string Required Unique identifier for customer
JSON Prop Type Required Description
offerIds int[] Required List of offerIds with comma seperated
transactionIds int[] Required List of transactionIds with comma seperated
redemptionIds int[] Optional List of redemptionIds with comma seperated
issueTypeIds int[] Required List of issueTypeIds with comma seperated. See the IssueType section for details
ticketStatus int Required Status of the ticket. See the TicketStatus section for details
comment string Required CSR comments
cardlyticsComment string Optional Cardlytics comments
goodwillAmount decimal Optional Good will amount
userEmail string Required Logged in user mail id
resolutionType int Required Resolution type of the ticket. See the ResolutionType section for details
createdBy string Required Name of the user who is creating the ticket

Output

This endpoint returns an HTTP response indicating success (201) or failure (500).


Example

Request

1
POST /v1/customers/12896/tickets
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
  "resolutionType": 0,
  "offerIds": [
    1000024911
  ],
  "transactionIds": [
    26140
  ],
  "comment": "Test comments",
  "fiTicketId": "Test 123",
  "issueTypeIds": [
    0,
    1,
    2
  ],
  "ticketStatus": 2,
  "userEmail": "test@cardlytics.com",
  "createdBy": "Tier2User1"
}

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
    {
        "ticketId": 55,
        "fiTicketId": "Test 123",
        "customerId": 12896,
        "ticketStatus": {
          "id": 2,
          "name": "Closed"
        },
        "comment": "Test comments",
        "cardlyticsComment": null,
        "goodwillAmount": null,
        "createDt": "2021-09-10T18:35:56.013",
        "createdBy": "Malt Tier2User1",
        "updateDt": null,
        "updatedBy": null,
        "resolutionType": {
          "id": 0,
          "name": "No Credit: Not eligible for reward"
        }
    }