Membership

Objects

Membership object

Attribute Description
cardInstanceId Unique identifier of the membership card instance. e.g. 796fc94f-a9db-437a-90d9-7357002632d7
customerId Owner of the membership card. e.g. Burger King Alpharetta.
merchantId Unique identifier of the merchant who issued the membership card. e.g. 418D20AC-A872-415B-ADB1-38EA90171898
cardName Name of the card.
cardNumber Number of the card. e.g. 208738491092
description Description of the membership card.
cardType Type of the card. Possible values are LOYALTY and GIFT.
balance Remaining balance in the card if available. e.g. 10.00
pin PIN number of the card if available.
frontImageBase64 Byte code of the front image of the card.
backImageBase64 Byte code of the back image of the card.
status Status of membership card. Possible values are ADDED and REMOVED.
createTime Date and time when the membership card created.
Format is yyyy-MM-dd’T’HH:mm:ss.SZ
e.g. “2019-02-08T14:23:35.443-0500”
yyyy: Year, e.g. 1996 <br>MM: Month in year, e.g. 07
dd: day in month, e.g. 10
HH:hour in day(0-23), e.g.0
mm:Minute in hour, e.g. 30
ss: Second in minute, e.g. 50
S: Millisecond in the minute, e.g. 443
Z: Timezone offset in hours(RFC 822 pattern), e.g. -0800
barcodeType Redeemable barcode type. Possible values are
- UPC_A: 1D Product, UPC-A
- UPC_E: 1D Product, UPC-3
- EAN_8: 1D Product, EAN_8
- EAN_13: 1D Product, EAN-13
- UPC_EAN_EXTENSION: 1D Product, UPC EAN Extension
- CODE_39: 1D Industrial, Code-39
- CODE_93: 1D Industrial, Code-93
- CODE_128: 1D Industrial, Code-128
- CODABAR: 1D Industrial, Code-128
- ITF: 1D Industrial, ITF
- RSS_14: 1D Industrial, RSS-14
- RSS_EXPANDED: 1D Industrial, RSS-Expanded
- QR_CODE: 2D, QR Code
- DATA_MATRIX: 2D, Data Matrix
- AZTEC: 2D, Aztec
- PDF_417: 2D, PDF-417
- MAXICODE: 2D, MaxiCode
- QRCODE: Deprecated. QR Code for backward compatibility
- None: No barcode selected.
- UNKNOWN: Unknown
backgroundColor HTML color code. e.g. #FFFFFF
updateTime Date and time when the membership card updated.
Format is yyyy-MM-dd’T’HH:mm:ss.SZ
e.g. “2019-02-08T14:23:35.443-0500”
yyyy: Year, e.g. 1996 <br>MM: Month in year, e.g. 07
dd: day in month, e.g. 10
HH:hour in day(0-23), e.g.0
mm:Minute in hour, e.g. 30
ss: Second in minute, e.g. 50
S: Millisecond in the minute, e.g. 443
Z: Timezone offset in hours(RFC 822 pattern), e.g. -0800

Membership merchant object

Attribute Description
merchantId Unique identifier of merchant. e.g. 3D4F43E3-5B0A-462E-8A1D-305ED8EE045D
walletId Your tenant ID who manages the membership merchant. e.g. JANUS
merchantName Name of merchant
updateDtim Last time the merchant is updated.
Format is yyyy-MM-dd’T’HH:mm:ss.SZ
e.g. “2019-02-08T14:23:35.443-0500”
yyyy: Year, e.g. 1996 <br>MM: Month in year, e.g. 07
dd: day in month, e.g. 10
HH:hour in day(0-23), e.g.0
mm:Minute in hour, e.g. 30
ss: Second in minute, e.g. 50
S: Millisecond in the minute, e.g. 443
Z: Timezone offset in hours(RFC 822 pattern), e.g. -0800
merchantBackgroundImageUrl URL to retrieve merchant background image
merchantImageUrl URL to retrieve merchant logo
barcodeType Redeemable barcode type supported by the merchant. Possible values are
- UPC_A: 1D Product, UPC-A
- UPC_E: 1D Product, UPC-3
- EAN_8: 1D Product, EAN_8
- EAN_13: 1D Product, EAN-13
- UPC_EAN_EXTENSION: 1D Product, UPC EAN Extension
- CODE_39: 1D Industrial, Code-39
- CODE_93: 1D Industrial, Code-93
- CODE_128: 1D Industrial, Code-128
- CODABAR: 1D Industrial, Code-128
- ITF: 1D Industrial, ITF
- RSS_14: 1D Industrial, RSS-14
- RSS_EXPANDED: 1D Industrial, RSS-Expanded
- QR_CODE: 2D, QR Code
- DATA_MATRIX: 2D, Data Matrix
- AZTEC: 2D, Aztec
- PDF_417: 2D, PDF-417
- MAXICODE: 2D, MaxiCode
- QRCODE: Deprecated. QR Code for backward compatibility
- None: No barcode selected.
- UNKNOWN: Unknown
customerCareInfo Long description of the merchant. e.g. “Best price. Price match guarantee. Find a lower rate”
phoneNumber Contact number of the merchant e.g. 000-000-0001
serviceHours Hours of contact service e.g. 24 hours or 9AM ~ 8PM
websiteUrl URL of merchant website e.g. https://www3.hilton.com

APIs

Add end user’s membership card

End user can enter detail information of membership card in the wallet and manage it. With this feature, end user no need to carry the actual card but can use his/her digital card instead.

Precondition

Client logged in the service. Refer the section for registration/authentication.

Request

HTTP Method / URL
POST / http://api-dev.fintiv.co:8080/membership/{version}/addCard

Body parameters

Parameters Type Required Note
merchantId String Optional Unique identifier of the merchant who issued the membership card. e.g. 418D20AC-A872-415B-ADB1-38EA90171898
cardName String Required Name of the card
cardNumber String Required Number of the card e.g. 208738491092
Description String Optional Description of the membership card
cardType String Required Type of the card. Possible values are LOYALTY and GIFT.
balance String Optional Remaining balance in the card if available. e.g. 10.00
pin String Optional PIN number of the card if available.
frontImageBase64 String Optional Byte array of the front image of the card
backImageBase64 String Optional Byte array of the back image of the card
barcodeType String Optional Redeemable barcode type. Possible values are
- UPC_A: 1D Product, UPC-A
- UPC_E: 1D Product, UPC-3
- EAN_8: 1D Product, EAN_8
- EAN_13: 1D Product, EAN-13
- UPC_EAN_EXTENSION: 1D Product, UPC EAN Extension
- CODE_39: 1D Industrial, Code-39
- CODE_93: 1D Industrial, Code-93
- CODE_128: 1D Industrial, Code-128
- CODABAR: 1D Industrial, Code-128
- ITF: 1D Industrial, ITF
- RSS_14: 1D Industrial, RSS-14
- RSS_EXPANDED: 1D Industrial, RSS-Expanded
- QR_CODE: 2D, QR Code
- DATA_MATRIX: 2D, Data Matrix
- AZTEC: 2D, Aztec
- PDF_417: 2D, PDF-417
- MAXICODE: 2D, MaxiCode
- QRCODE: Deprecated. QR Code for backward compatibility
- None: No barcode selected.
- UNKNOWN: Unknown
backgroundColor String Optional HTML color code to be used in the background of the membership card. e.g. #FFFFFF

Example request

curl -X POST "http://api-dev.fintiv.co:8080/membership/v2/addCard"
-H "accept: application/json;charset=UTF-8"
-H "api-key: <insert your APP Key here>"
-H "authorization: Bearer <insert your bearer token here>"
-H "Content-Type: application/json"
-d
‘{
 "card":
 {
"merchantId": "418D20AC-A872-415B-ADB1-38EA90171898",
"cardName": "Delta Skymiles",
"cardNumber": "1234123412345678",
"cardType": "GIFT",
"balance": "10.00",
"description": "Gift card from delta",
"backgroundColor":"FF00FF",
"pin":"1234",
"barcodeType":"UPC_A",
"frontImageBase64": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAADx0lEQVR42q2UbUxTVxjHz+3bbUsrFHzJBtuoVUvMwowvi1vc5uKWGRUSl6gZupm6TOc0waA1zkUNZtOYuemCJvvgpsYNsNSXkdItUxGKZSIgiE5eKopA6gdQIkp01Nu/z3NbMkGz+GEn+ec+93n5neeee84RYuRIzFwsRs92i/9lSFr9uA+9rc6NTQ8dyda3c18TWwqzhD/g0jWx2GafM0m8+nzA5Jk5+TUD8HYoWL/CpQyeWgSldS+i3R5VbLPv9rejI9+9JX5ONoqx/9Wd/GLO0Wv+MFDVA8z6vgXhzgtA/3mgLxAT2wONQK8PEf97qPlUE7KPEhlc/RTO/NKcTVkn78HXDZR2Aa7yQXzxdRHQdWC4un8CbpH/tg+PKuah7jPNDZssxo2EajM+OtS3oRYoug4cDAGfVwPOzdRNKP/Zur4T6NyDiNeBPe9KvzBjCKaZmCSmzlxThB2XgV/bgf3NQC59rXMrAa+sGq7LK/9VSx5QuwB3d5sUZjCLgfq8adLubbnZeL+wB9uJ8WU9MKfkPj5Zt1UtQO38uMiuyyJlx3RxIWkuIsVjwAxmMdBUslh/7k7JC9i2ZSnecRdi1kYv1rpXoevEJKBiPFBuj4ntKvJVTwaCU+g5gzQFUX8qmMEsBo4Krja2RU/b0Vdmx82Tr6CjJA1dxWmIniVI3YQYiKXadgyUvQwE0oG/HPTuANcyg1nq7guuNrQpf6TSrOmo3DUWK980wTVdjxUzjDjqTgEupKlim30c4xzOxbl0KL+nghnMYqDNs0RbHSlNpNlsOFVgxiVPAnorLWj3m+HbZ6C1M6ryFRhUXw/FOOfMPjNQaUPkt0QQI8g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uMiuyyJlx3RxIWkuIsVjwAxmMdBUslh/7k7JC9i2ZSnecRdi1kYv1rpXoevEJKBiPFBuj4ntKvJVTwaCU+g5gzQFUX8qmMEsBo4Krja2RU/b0Vdmx82Tr6CjJA1dxWmIniVI3YQYiKXadgyUvQwE0oG/HPTuANcyg1nq7guuNrQpf6TSrOmo3DUWK980wTVdjxUzjDjqTgEupKlim30c4xzOxbl0KL+nghnMYqDNs0RbHSlNpNlsOFVgxiVPAnorLWj3m+HbZ6C1M6ryFRhUXw/FOOfMPjNQaUPkt0QQI8gsBlryXpd+HPRQsCqBPksGGnRAowZoloAOUquI6YYU83GsjnJqKbciAYPFZjCDWepfnmgT2f37ZQVBK1DD3egJqqVigtyS6HBIeNBEoDDpKvkuUqyGcoKUG7Civ0BWmDH0l3mHp+6dqylVyiw0O+lvmjlEBWEtDn+lQ84kA5ZlGOD9Rqf60EyxK/wlFig+C7iWGU+eFgMd9NkNG3Td0Srqsp2gPUYEjhiwwyXjUqmMhmMy8j+WUX+c1jRMnYUsiFJ3XMO1zBh2lnlBxyeJRfVuXadyhoCtVjxso+cdE10Mxph6TfinhXwtVih/WsC5XBP/GU9fEKQxKSbxwQ/zNL67B+RHUVpw1FPHV+NqtCJangCOcQ7ncs2zYE9CeXNOdqaI5XlvSAc9y7Xnq926ayy22ccxzonnSs9z1Wrim9RByiRNjysz7kseughGjsda3MlcNDdCsQAAAABJRU5ErkJggg=="
}
}’

Response

Returns result of the request.
Example response

{
  "result": {
    "code": 0
  }
}

Get end user’s membership cards

Retrieves all end user’s registered membership cards.

Precondition

Client logged in the service. Refer the section for registration/authentication.

Request

HTTP Method / URL
POST / http://api-dev.fintiv.co:8080/membership/{version}/getCards

Body parameters

Parameters Type Required Note
imagesByUrl boolean Optional Define type of returned image. FALSE returns image as byte array. True returns image as URL. Default value is FALSE

Example request

curl -X POST "http://api-dev.fintiv.co:8080/membership/v2/getCards"
-H "accept: application/json;charset=UTF-8"
-H "api-key: <insert your APP Key here>"
-H "authorization: Bearer <insert your bearer token here>"
-H "Content-Type: application/json"
-d ‘{"imagesByUrl": true}’

Response

Returns list of end user’s membership cards
Example response

{
  "result": {
    "code": 0
  },
  "cardInstances": [
    {
      "cardInstanceId": "852c8e1d-cd6c-4ecf-8c2b-deb64be16561",
      "cardName": "Delta Skymiles",
      "cardNumber": "1234",
      "cardType": "GIFT",
      "status": "ADDED",
      "createTime": "2019-03-07T16:38:10.000+0000",
      "updateTime": "2019-03-07T16:38:10.000+0000"
    },
    {
      "cardInstanceId": "0615edec-c19f-4466-8856-cbe8738e6bf2",
      "merchantId": "418D20AC-A872-415B-ADB1-38EA90171898",
      "cardName": "Delta Skymiles",
      "cardNumber": "1234123412345678",
      "description": "Gift card from delta",
      "cardType": "GIFT",
      "balance": "10.00",
      "pin": "1234",
      "status": "ADDED",
      "createTime": "2019-03-07T16:21:50.000+0000",
      "barcodeType": "UPC_A",
      "backgroundColor": "FF00FF",
      "updateTime": "2019-03-07T16:21:50.000+0000",
      "frontImageBase64": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAADx0lEQVR42q2UbUxTVxjHz+3bbUsrFHzJBtuoVUvMwowvi1vc5uKWGRUSl6gZupm6TOc0waA1zkUNZtOYuemCJvvgpsYNsNSXkdItUxGKZSIgiE5eKopA6gdQIkp01Nu/z3NbMkGz+GEn+ec+93n5neeee84RYuRIzFwsRs92i/9lSFr9uA+9rc6NTQ8dyda3c18TWwqzhD/g0jWx2GafM0m8+nzA5Jk5+TUD8HYoWL/CpQyeWgSldS+i3R5VbLPv9rejI9+9JX5ONoqx/9Wd/GLO0Wv+MFDVA8z6vgXhzgtA/3mgLxAT2wONQK8PEf97qPlUE7KPEhlc/RTO/NKcTVkn78HXDZR2Aa7yQXzxdRHQdWC4un8CbpH/tg+PKuah7jPNDZssxo2EajM+OtS3oRYoug4cDAGfVwPOzdRNKP/Zur4T6NyDiNeBPe9KvzBjCKaZmCSmzlxThB2XgV/bgf3NQC59rXMrAa+s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y22ccxzonnSs9z1Wrim9RByiRNjysz7kseughGjsda3MlcNDdCsQAAAABJRU5ErkJggg=="
    },
    {
      "cardInstanceId": "796fc94f-a9db-437a-90d9-7357002632d7",
      "merchantId": "418D20AC-A872-415B-ADB1-38EA90171898",
      "cardName": "CNAME CNMAE ",
      "cardNumber": "11111",
      "description": "test gift card",
      "cardType": "GIFT",
      "balance": "10.00",
      "status": "ADDED",
      "createTime": "2019-03-07T15:42:54.000+0000",
      "backgroundColor": "FF00FF",
      "updateTime": "2019-03-07T15:42:54.000+0000",
      "frontImageBase64": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAADx0lEQVR42q2UbUxTVxjHz+3bbUsrFHzJBtuoVUvMwowvi1vc5uKWGRUSl6gZupm6TOc0waA1zkUNZtOYuemCJvvgpsYNsNSXkdItUxGKZSIgiE5eKopA6gdQIkp01Nu/z3NbMkGz+GEn+ec+93n5neeee84RYuRIzFwsRs92i/9lSFr9uA+9rc6NTQ8dyda3c18TWwqzhD/g0jWx2GafM0m8+nzA5Jk5+TUD8HYoWL/CpQyeWgSldS+i3R5VbLPv9rejI9+9JX5ONoqx/9Wd/GLO0Wv+MFDVA8z6vgXhzgtA/3mgLxAT2wONQK8PEf97qPlUE7KPEhlc/RTO/NKcTVkn78HXDZR2Aa7yQXzxdRHQdWC4un8CbpH/tg+PKuah7jPNDZssxo2EajM+OtS3oRYoug4cDAGfVwPOzdRNKP/Zur4T6NyDiNeBPe9KvzBjCKaZmCSmzlxThB2XgV/bgf3NQC59rXMrAa+sGq7LK/9VSx5QuwB3d5sUZjCLgfq8adLubbnZeL+wB9uJ8WU9MKfkPj5Zt1UtQO38uMiuyyJlx3RxIWkuIsVjwAxmMdBUslh/7k7JC9i2ZSnecRdi1kYv1rpXoevEJKBiPFBuj4ntKvJVTwaCU+g5gzQFUX8qmMEsBo4Krja2RU/b0Vdmx82Tr6CjJA1dxWmIniVI3YQYiKXadgyUvQwE0oG/HPTuANcyg1nq7gu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POzdRNKP/Zur4T6NyDiNeBPe9KvzBjCKaZmCSmzlxThB2XgV/bgf3NQC59rXMrAa+sGq7LK/9VSx5QuwB3d5sUZjCLgfq8adLubbnZeL+wB9uJ8WU9MKfkPj5Zt1UtQO38uMiuyyJlx3RxIWkuIsVjwAxmMdBUslh/7k7JC9i2ZSnecRdi1kYv1rpXoevEJKBiPFBuj4ntKvJVTwaCU+g5gzQFUX8qmMEsBo4Krja2RU/b0Vdmx82Tr6CjJA1dxWmIniVI3YQYiKXadgyUvQwE0oG/HPTuANcyg1nq7guuNrQpf6TSrOmo3DUWK980wTVdjxUzjDjqTgEupKlim30c4xzOxbl0KL+nghnMYqDNs0RbHSlNpNlsOFVgxiVPAnorLWj3m+HbZ6C1M6ryFRhUXw/FOOfMPjNQaUPkt0QQI8gsBlryXpd+HPRQsCqBPksGGnRAowZoloAOUquI6YYU83GsjnJqKbciAYPFZjCDWepfnmgT2f37ZQVBK1DD3egJqqVigtyS6HBIeNBEoDDpKvkuUqyGcoKUG7Civ0BWmDH0l3mHp+6dqylVyiw0O+lvmjlEBWEtDn+lQ84kA5ZlGOD9Rqf60EyxK/wlFig+C7iWGU+eFgMd9NkNG3Td0Srqsp2gPUYEjhiwwyXjUqmMhmMy8j+WUX+c1jRMnYUsiFJ3XMO1zBh2lnlBxyeJRfVuXadyhoCtVjxso+cdE10Mxph6TfinhXwtVih/WsC5XBP/GU9fEKQxKSbxwQ/zNL67B+RHUVpw1FPHV+NqtCJangCOcQ7ncs2zYE9CeXNOdqaI5XlvSAc9y7Xnq926ayy22ccxzonnSs9z1Wrim9RByiRNjysz7kseughGjsda3MlcNDdCsQAAAABJRU5ErkJggg=="
    }
  ]
}

{
  "result": {
    "code": 0
  },
  "cardInstances": [
    {
      "cardInstanceId": "852c8e1d-cd6c-4ecf-8c2b-deb64be16561",
      "cardName": "Delta Skymiles",
      "cardNumber": "1234",
      "cardType": "GIFT",
      "status": "ADDED",
      "createTime": "2019-03-07T16:38:10.000+0000",
      "updateTime": "2019-03-07T16:38:10.000+0000"
    },
    {
      "cardInstanceId": "0615edec-c19f-4466-8856-cbe8738e6bf2",
      "merchantId": "418D20AC-A872-415B-ADB1-38EA90171898",
      "cardName": "Delta Skymiles",
      "cardNumber": "1234123412345678",
      "description": "Gift card from delta",
      "cardType": "GIFT",
      "balance": "10.00",
      "pin": "1234",
      "status": "ADDED",
      "createTime": "2019-03-07T16:21:50.000+0000",
      "barcodeType": "UPC_A",
      "backgroundColor": "FF00FF",
      "updateTime": "2019-03-07T16:21:50.000+0000",
      "frontImageUrl": "http://api-dev.fintiv.co:8080/image/membership/0615edec-c19f-4466-8856-cbe8738e6bf2_front.png",
      "backImageUrl": "http://api-dev.fintiv.co:8080/image/membership/0615edec-c19f-4466-8856-cbe8738e6bf2_back.png"
    },
    {
      "cardInstanceId": "796fc94f-a9db-437a-90d9-7357002632d7",
      "merchantId": "418D20AC-A872-415B-ADB1-38EA90171898",
      "cardName": "CNAME CNMAE ",
      "cardNumber": "11111",
      "description": "test gift card",
      "cardType": "GIFT",
      "balance": "10.00",
      "status": "ADDED",
      "createTime": "2019-03-07T15:42:54.000+0000",
      "backgroundColor": "FF00FF",
      "updateTime": "2019-03-07T15:42:54.000+0000",
      "frontImageUrl": "http://api-dev.fintiv.co:8080/image/membership/796fc94f-a9db-437a-90d9-7357002632d7_front.png",
      "backImageUrl": "http://api-dev.fintiv.co:8080/image/membership/796fc94f-a9db-437a-90d9-7357002632d7_back.png"
    }
  ]
}

Update end user’s membership card

Supply the membership card instance ID with information to be updated and then update the membership card. Only provided information is updated.

Precondition

Client logged in the service. Refer the section for registration/authentication.

Request

HTTP Method / URL
POST / http://api-dev.fintiv.co:8080/membership/{version}/updateCard

Body parameters

Parameters Type Required Note
cardInstanceId String Required Unique identifier of the membership card instance. e.g. 418D20AC-A872-415B-ADB1-38EA90171898
merchantId String Optional Unique identifier of the merchant who issued the membership card. e.g. 418D20AC-A872-415B-ADB1-38EA90171898
cardName String Optional Name of the card
cardNumber String Optional Number of the card e.g. 208738491092
description String Optional Description of the membership card
cardType String Optional Type of the card. Possible values are LOYALTY and GIFT.
balance String Optional Remaining balance in the card if available. e.g. 10.00
frontImageBase64 byte[] Optional Base 64 code of the front image of the card
backImageBase64 byte[] Optional Base 64 code of the back image of the card
barcodeType String Optional Redeemable barcode type. Possible values are
- UPC_A: 1D Product, UPC-A
- UPC_E: 1D Product, UPC-3
- EAN_8: 1D Product, EAN_8
- EAN_13: 1D Product, EAN-13
- UPC_EAN_EXTENSION: 1D Product, UPC EAN Extension
- CODE_39: 1D Industrial, Code-39
- CODE_93: 1D Industrial, Code-93
- CODE_128: 1D Industrial, Code-128
- CODABAR: 1D Industrial, Code-128
- ITF: 1D Industrial, ITF
- RSS_14: 1D Industrial, RSS-14
- RSS_EXPANDED: 1D Industrial, RSS-Expanded
- QR_CODE: 2D, QR Code
- DATA_MATRIX: 2D, Data Matrix
- AZTEC: 2D, Aztec
- PDF_417: 2D, PDF-417
- MAXICODE: 2D, MaxiCode
- QRCODE: Deprecated. QR Code for backward compatibility
- None: No barcode selected.
- UNKNOWN: Unknown
backgroundColor String Optional HTML color code. e.g. #FFFFFF

Example request

curl -X POST "http://api-dev.fintiv.co:8080/membership/v2/updateCard"
-H "accept: application/json;charset=UTF-8"
-H "api-key: <insert your APP Key here>"
-H "authorization: Bearer <insert your bearer token here>"
-H "Content-Type: application/json"
-d
‘{"card":
{"cardInstanceId": "852c8e1d-cd6c-4ecf-8c2b-deb64be16561",
 "cardName": "Custom Card",
 "cardNumber":"11111",
 "cardType":"LOYALTY",
 "balance":"20.00",
 "description":"Popular card",
 "frontImageBase64": "iVBORw0KGgoAAAANSUhEUgAAALQAAAArCAYAAADR/aKkAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAABowSURBVHja7F0HeBXVtp7T0gtNQ4siLUBCkI4QadKkiSYIN7RLE1B4iqCiIAgIgiIgIBIf5YJiEJQPlHI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U3/HIU2ZNCj2j7fez811poF+HJLi13WtF1H8j3LfRfbV4sBcjC3Af1fUD/peamUPzHmb/1+D8BBgDOFJzndzJ3qQAAAABJRU5ErkJggg==" }}’

Response

Returns result of the request.
Example response

{
  "result": {
    "code": 0
  }
}

Remove end user’s membership card from the wallet

Supply the membership card instance ID and then end user removes the registered card from his/her wallet.

Precondition

Client logged in the service. Refer the section for registration/authentication.

Request

HTTP Method / URL
POST / http://api-dev.fintiv.co:8080/membership/{version}/removeCard

Body parameters

Parameters Type Required Note
cardInstanceId String Required Unique identifier of the membership card instance

Example request

curl -X POST "http://api-dev.fintiv.co:8080/membership/v2/removeCard"
-H "accept: application/json;charset=UTF-8"
-H "api-key: <insert your APP Key here>"
-H "authorization: Bearer <insert your bearer token here>"
-H "Content-Type: application/json"
-d ‘{"cardInstanceId":"852c8e1d-cd6c-4ecf-8c2b-deb64be16561"}’

Response

Returns result of the request.
Example response

{
  "result": {
    "code": 0
  }
}

Report membership card event

Client reports membership card events to log their history in the server.

Precondition

Client logged in the service. Refer the section for registration/authentication.

Request

HTTP Method / URL
POST / http://api-dev.fintiv.co:8080/membership/{version}/reportCardEvent

Body parameters

Parameters Type Required Note
cardInstanceId String Required Unique identifier of the membership card instance
eventTime Date Optional Date and time the event occurred. If not provided, current system date and time is updated.
Format is yyyy-MM-dd’T’HH:mm:ss.SZ
e.g. “2019-02-08T14:23:35.443-0500”
yyyy: Year, e.g. 1996 <br>MM: Month in year, e.g. 07
dd: day in month, e.g. 10
HH:hour in day(0-23), e.g.0
mm:Minute in hour, e.g. 30
ss: Second in minute, e.g. 50
S: Millisecond in the minute, e.g. 443
Z: Timezone offset in hours(RFC 822 pattern), e.g. -0800

Example request

curl -X POST "http://api-dev.fintiv.co:8080/membership/v2/reportCardEvent"
-H "accept: application/json;charset=UTF-8"
-H "api-key: <insert your APP Key here>"
-H "authorization: Bearer <insert your bearer token here>"
-H "Content-Type: application/json"
-d ‘{"cardInstanceId":"0615edec-c19f-4466-8856-cbe8738e6bf2",
 "eventTime":"2019-02-08T14:23:35.443-0500"}’

Response

Returns result of the request.
Example response

{
  "result": {
    "code": 0
  }
}

Retrieve merchants who provides membership service

Retrieve list of merchants which provides membership service. Returns detail of merchant and sorted by the name of merchants.

Precondition

Client logged in the service. Refer the section for registration/authentication.

Request

HTTP Method / URL
POST / http://api-dev.fintiv.co:8080/membership/{version}/getMerchants

Body parameters
None

Example request

curl -X POST "http://10.128.6.27:24025/corpay/ci/membership/v2/getMerchants"
-H "accept: application/json;charset=UTF-8"
-H "api-key: <insert your APP Key here>"
-H "authorization: Bearer <insert your bearer token here>"
-H "Content-Type: application/json"
-d ‘{}’

Response

Returns list of merchant detail.
Example response

{
  "result": {
    "code": 0
  },
  "merchants": [
    {
      "merchantId": "3D4F43E3-5B0A-462E-8A1D-305ED8EE045D",
      "walletId": "JANUS",
      "serviceId": 10518,
      "merchantName": "Hilton Honors",
      "customerCareInfo": "Best price. Price match guarantee.\nFin a lower rate",
      "updateDtim": "2019-03-13T14:03:16.000+0000",
      "phoneNumber": "000-000-0001",
      "serviceHours": "24 hours",
      "websiteUrl": "https://www3.hilton.com/en/index.html?msclkid=b8af23ae9a551a6d231e7f27970c3f07",
      "barcodeType": "QR_CODE",
      "nfcService": "N",
      "showInCatalog": "N",
      "merchantBackgroundImageUrl": "http://api-dev.fintiv.co:8080/image/membership/3D4F43E3-5B0A-462E-8A1D-305ED8EE045D_bg_xhdpi.png",
      "merchantImageUrl": "http://api-dev.fintiv.co:8080/image/membership/3D4F43E3-5B0A-462E-8A1D-305ED8EE045D_icon_xhdpi.png"
    },
    {
      "merchantId": "1CD1179F-D64B-43E3-B066-19CF773BBABF",
      "walletId": "JANUS",
      "serviceId": 10518,
      "merchantName": "Marriott membership",
      "updateDtim": "2018-11-30T21:31:53.000+0000",
      "barcodeType": "QR_CODE",
      "nfcService": "N",
      "showInCatalog": "N",
      "merchantBackgroundImageUrl": "http://api-dev.fintiv.co:8080/image/membership/1CD1179F-D64B-43E3-B066-19CF773BBABF_bg_xhdpi.png",
      "merchantImageUrl": "http://api-dev.fintiv.co:8080/image/membership/1CD1179F-D64B-43E3-B066-19CF773BBABF_icon_xhdpi.png"
    }
  ]
}