• Credit

    US flag
  • Credit

    US flag

XYZ fintech has launched a premium credit card product in partnership with ABC Bank. Soon after the launch, they received many applications for the new credit card.

XYZ fintech has a tie up with Modern Associates for printing the new cards. They have sent an embossing file with the details of 1000 cards to be printed. They have provided Modern Associates with the requisite designs, colours, and security requirements to print the cards.

Each card that XYZ fintech dispatches bears a unique reference number to track the delivery status. This tracking ID is given by the courier service provider.

In this cookbook, we will see how XYZ fintech tracks the printing and delivery statuses of a credit card issued to a specific customer.

This API returns the status of cards against a specific order ID.

GET/tenants/{tenant}/cards/orders/{orderID}
Request payload
Switch Theme
Expand More
Copy
curl -X 'GET' \
  'http://tools.corp.zeta.in/api/api/v1/ifi/140827/cards/orders/1ad48202-d590-4bef-a1ad-5739961a1da1' \
  -H 'accept: cards/json'
Code Copied
JSON sample
Switch Theme
Expand More
Copy
{
  "quantity": 1,
  "orderID": "string",
  "cardSkuID": "string",
  "expiry": {
    "month": 0,
    "year": 5
  },
  "thirdLineEmbossing": "string",
  "fourthLineEmbossing": "string",
  "deliveryAddress": {
    "name": "string",
    "addressLine1": "string",
    "addressLine2": "string",
    "addressLine3": "string",
    "addressLine4": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postalCode": "string",
    "contactNumber": "string"
  },
  "tenantAttributes": {
    "corporateName": "string",
    "corporateID": "string",
    "templateID": "string"
  },
  "vendorAttributes": {
    "consignmentID": "string"
  },
  "additionalAttributes": {},
  "tags": [
    "string"
  ],
  "orderStatus": "ORDER_PLACED",
  "orderedAt": "2021-10-01T09:04:05.712Z"
Code Copied
GET/api/v1/tenants/{tenantId}/couriers/{courierId}/tracking/{trackingId}
Request payload
Switch Theme
Expand More
Copy
curl -X 'GET' \
  'http://tools.corp.zeta.in/api/api/v1/ifi/140827/couriers/cbsjbcsk-xcal-cbja-bkai-cbajbckbaalo/tracking/46281836183618' \
  -H 'accept: porter/json'
Code Copied
JSON sample
Switch Theme
Expand More
Copy
{
  "courierId": "cbsjbcsk-xcal-cbja-bkai-cbajbckbaalo",
  "trackingId": "46281836183618",
  "tenantId": "140827",
  "estimatedDeliveryDate": "{\"year\": 2021, \"month\": 2, \"day\": 5}",
  "expectedDeliveryDate": "{\"year\": 2021, \"month\": 2, \"day\": 4}",
  "trackingStatus": {
    "status": "TRACKING_NUMBER_GENERATED",
    "statusDescription": "SHIPMENT ARRIVED AT HUB",
    "createdAtTimestampZone": {
      "offset": {
        "totalSeconds": 0,
        "id": "string",
        "rules": {
          "transitions": [
            "#/components/schemas/ZoneOffsetTransition"
          ],
          "transitionRules": [
            "#/components/schemas/ZoneOffsetTransitionRule"
          ],
          "fixedOffset": false
        }
      },
      "zone": {
        "id": "string",
        "rules": {
          "transitions": [
            "#/components/schemas/ZoneOffsetTransition"
          ],
          "transitionRules": [
            "#/components/schemas/ZoneOffsetTransitionRule"
          ],
          "fixedOffset": false
        }
      },
      "nano": 0,
      "hour": 0,
      "minute": 0,
      "second": 0,
      "dayOfYear": 0,
      "dayOfWeek": "MONDAY",
      "month": "JANUARY",
      "dayOfMonth": 0,
      "year": 0,
      "monthValue": 0,
      "chronology": {
        "id": "string",
        "calendarType": "string"
      }
    }
  },
  "trackingCheckpoints": [
    {
      "status": "TRACKING_NUMBER_GENERATED",
      "statusDescription": "SHIPMENT ARRIVED AT HUB",
      "createdAtTimestampZone": {
        "offset": {
          "totalSeconds": 0,
          "id": "string",
          "rules": {
            "transitions": [
              "#/components/schemas/ZoneOffsetTransition"
            ],
            "transitionRules": [
              "#/components/schemas/ZoneOffsetTransitionRule"
            ],
            "fixedOffset": false
          }
        },
        "zone": {
          "id": "string",
          "rules": {
            "transitions": [
              "#/components/schemas/ZoneOffsetTransition"
            ],
            "transitionRules": [
              "#/components/schemas/ZoneOffsetTransitionRule"
            ],
            "fixedOffset": false
          }
        },
        "nano": 0,
        "hour": 0,
        "minute": 0,
        "second": 0,
        "dayOfYear": 0,
        "dayOfWeek": "MONDAY",
        "month": "JANUARY",
        "dayOfMonth": 0,
        "year": 0,
        "monthValue": 0,
        "chronology": {
          "id": "string",
          "calendarType": "string"
        }
      },
      "location": "AHMEDABAD HUB"
    }
  ],
  "additionalAttributes": {},
  "signature": "string",
  "signed": false,
  "signatoryJID": "string"
}
Code Copied