Cette API permet de gérer des cartes (fidélité, générique, ...) et que les personnes puissent ajouté leurs cartes sur leur téléphone.
Les wallets sont les portefeuilles numériques de Google, Apple et autres wallets personnels au client (par exemple MyWallet). Les cartes sont définis par leur template (CardTemplate).
Pour utiliser cette API, il est nécessaire d'avoir un bearer token. La documentation peux être trouvé ici documentation AuthAPI
Voici la liste des codes d'erreur internes, ces erreurs n'apparaissent que dans le cadre d'un statut HTTP 500.
| Code | Statut HTTP |
|---|---|
| WAL-1 | 500 |
| WAL-4 | 500 |
| WAL-10 | 500 |
| WAL-11 | 500 |
Voici la liste des codes d'erreur
| Code | Description | Statut HTTP |
|---|---|---|
| WAL-2 | Chemin invalide | 404 |
| WAL-3 | Un paramètre est manquant ou invalide dans le corps de la requête (ex: paramètre envoyé en string au lieu d'un integer) | 422 |
| WAL-5 | Token manquant | 401 |
| WAL-6 | Signature du token invalide | 400 |
| WAL-7 | Token expiré | 400 |
| WAL-8 | Token invalide | 400 |
| WAL-9 | Accès non authorisé au service (token invalide) | 403 |
| WAL-12 | Model with path parameters not found | 404 |
| WAL-13 | Invalid serial_number | 404 |
| WAL-14 | Elements dans template ou data invalide | 404 |
| WAL-15 | Elements manquants pour la création d'un device | 400 |
| WAL-16 | Action non authorisé | 403 |
Retourner la configuration spécifique au client pour le wallet donné
| wallet_id required | string <uuid> L'id du wallet |
{- "int": 0,
- "label": "string",
- "walletId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Création d'une configuration client pour un wallet
| wallet_id required | string <uuid> L'id du wallet |
Les paramètres de la configuration client
required | object |
| google required | file <binary> Extension : .json Fichier de config Google Wallet |
| label | string Paramètre optionnel pour distinguer les différentes configurations |
{- "int": 0,
- "label": "string",
- "walletId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Modification d'une configuration client pour un wallet
| wallet_id required | string <uuid> L'id du wallet |
| configuration_id required | int L'id de la configuration à modifier |
Les paramètres de la configuration client
required | object |
| google required | file <binary> Extension : .json Fichier de config Google Wallet |
| label | string Paramètre optionnel pour distinguer les différentes configurations |
{- "int": 0,
- "label": "string",
- "walletId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}[- {
- "id": 0,
- "typeCard": "GENERIC",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "template": {
- "expiredAt": "{{expiredAt}}",
- "images": [
- {
- "key": "string",
- "uri": "string"
}
], - "frontCard": {
- "title": "string",
- "logo": "string",
- "backgroundColor": "string",
- "foreground": "string",
- "barcode": {
- "barcodeType": "QR_CODE",
- "barcodeValue": "{{barcodeValue}}",
- "alternateText": "string"
}, - "footer": {
- "image": "self.images.footer"
}, - "rows": [
- {
- "images": "self.images.strip",
- "columns": [
- {
- "id": "string",
- "label": "string",
- "value": "string",
- "changeMessage": "string"
}
]
}
]
}, - "backCard": {
- "rows": [
- {
- "search": "CISS",
- "coordinatesGps": "45.76890833790006,4.851716213480798"
}
]
}, - "transactions": [
- {
- "amount": 0,
- "currency": "string",
- "pointOfSale": "string",
- "date": "string",
- "state": "string"
}
], - "maxNumberTransactions": 0
}
}
]Création d'un cardTemplate
Le type de cardTemplate et le template des cartes
| typeCard required | string Enum: "GENERIC" "LOYALTY" Le serial number de la carte |
required | object (TemplateResponse) Les données du template des cartes. Les valeurs qui doivent être modifiées par la carte seront mise en parenthèses. Ex : {{key}} |
{- "typeCard": "GENERIC",
- "template": {
- "expiredAt": "{{expiredAt}}",
- "images": [
- {
- "key": "string",
- "uri": "string"
}
], - "frontCard": {
- "title": "string",
- "logo": "string",
- "backgroundColor": "string",
- "foreground": "string",
- "barcode": {
- "barcodeType": "QR_CODE",
- "barcodeValue": "{{barcodeValue}}",
- "alternateText": "string"
}, - "footer": {
- "image": "self.images.footer"
}, - "rows": [
- {
- "images": "self.images.strip",
- "columns": [
- {
- "id": "string",
- "label": "string",
- "value": "string",
- "changeMessage": "string"
}
]
}
]
}, - "backCard": {
- "rows": [
- {
- "search": "CISS",
- "coordinatesGps": "45.76890833790006,4.851716213480798"
}
]
}, - "transactions": [
- {
- "amount": 0,
- "currency": "string",
- "pointOfSale": "string",
- "date": "string",
- "state": "string"
}
], - "maxNumberTransactions": 0
}
}{- "id": 0,
- "typeCard": "GENERIC",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "template": {
- "expiredAt": "{{expiredAt}}",
- "images": [
- {
- "key": "string",
- "uri": "string"
}
], - "frontCard": {
- "title": "string",
- "logo": "string",
- "backgroundColor": "string",
- "foreground": "string",
- "barcode": {
- "barcodeType": "QR_CODE",
- "barcodeValue": "{{barcodeValue}}",
- "alternateText": "string"
}, - "footer": {
- "image": "self.images.footer"
}, - "rows": [
- {
- "images": "self.images.strip",
- "columns": [
- {
- "id": "string",
- "label": "string",
- "value": "string",
- "changeMessage": "string"
}
]
}
]
}, - "backCard": {
- "rows": [
- {
- "search": "CISS",
- "coordinatesGps": "45.76890833790006,4.851716213480798"
}
]
}, - "transactions": [
- {
- "amount": 0,
- "currency": "string",
- "pointOfSale": "string",
- "date": "string",
- "state": "string"
}
], - "maxNumberTransactions": 0
}
}Récupérer un templates de cartes
| card_template_id required | string L'id du CardTemplate à récupérer |
{- "id": 0,
- "typeCard": "GENERIC",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "template": {
- "expiredAt": "{{expiredAt}}",
- "images": [
- {
- "key": "string",
- "uri": "string"
}
], - "frontCard": {
- "title": "string",
- "logo": "string",
- "backgroundColor": "string",
- "foreground": "string",
- "barcode": {
- "barcodeType": "QR_CODE",
- "barcodeValue": "{{barcodeValue}}",
- "alternateText": "string"
}, - "footer": {
- "image": "self.images.footer"
}, - "rows": [
- {
- "images": "self.images.strip",
- "columns": [
- {
- "id": "string",
- "label": "string",
- "value": "string",
- "changeMessage": "string"
}
]
}
]
}, - "backCard": {
- "rows": [
- {
- "search": "CISS",
- "coordinatesGps": "45.76890833790006,4.851716213480798"
}
]
}, - "transactions": [
- {
- "amount": 0,
- "currency": "string",
- "pointOfSale": "string",
- "date": "string",
- "state": "string"
}
], - "maxNumberTransactions": 0
}
}Modifier le template du CardTemplate
| card_template_id required | string L'id du CardTemplate à modifier |
Le template du CardTemplate
required | object (TemplateResponse) Les données du template des cartes. Les valeurs qui doivent être modifiées par la carte seront mise en parenthèses. Ex : {{key}} |
{- "template": {
- "expiredAt": "{{expiredAt}}",
- "images": [
- {
- "key": "string",
- "uri": "string"
}
], - "frontCard": {
- "title": "string",
- "logo": "string",
- "backgroundColor": "string",
- "foreground": "string",
- "barcode": {
- "barcodeType": "QR_CODE",
- "barcodeValue": "{{barcodeValue}}",
- "alternateText": "string"
}, - "footer": {
- "image": "self.images.footer"
}, - "rows": [
- {
- "images": "self.images.strip",
- "columns": [
- {
- "id": "string",
- "label": "string",
- "value": "string",
- "changeMessage": "string"
}
]
}
]
}, - "backCard": {
- "rows": [
- {
- "search": "CISS",
- "coordinatesGps": "45.76890833790006,4.851716213480798"
}
]
}, - "transactions": [
- {
- "amount": 0,
- "currency": "string",
- "pointOfSale": "string",
- "date": "string",
- "state": "string"
}
], - "maxNumberTransactions": 0
}
}{- "id": 0,
- "typeCard": "GENERIC",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "template": {
- "expiredAt": "{{expiredAt}}",
- "images": [
- {
- "key": "string",
- "uri": "string"
}
], - "frontCard": {
- "title": "string",
- "logo": "string",
- "backgroundColor": "string",
- "foreground": "string",
- "barcode": {
- "barcodeType": "QR_CODE",
- "barcodeValue": "{{barcodeValue}}",
- "alternateText": "string"
}, - "footer": {
- "image": "self.images.footer"
}, - "rows": [
- {
- "images": "self.images.strip",
- "columns": [
- {
- "id": "string",
- "label": "string",
- "value": "string",
- "changeMessage": "string"
}
]
}
]
}, - "backCard": {
- "rows": [
- {
- "search": "CISS",
- "coordinatesGps": "45.76890833790006,4.851716213480798"
}
]
}, - "transactions": [
- {
- "amount": 0,
- "currency": "string",
- "pointOfSale": "string",
- "date": "string",
- "state": "string"
}
], - "maxNumberTransactions": 0
}
}Récupération d'une carte
| card_template_id required | string L'id du card_template |
| serial_number required | string Le serial_number de la carte |
{- "id": 0,
- "serialNumber": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "data": {
- "keyValues": [
- {
- "key": "string",
- "value": "string"
}
], - "transactions": [
- { }
]
}
}Ajouter une carte pour un template donné
| card_template_id required | string L'id du CardTemplate |
La serial number et les datas de la carte
| serialNumber required | string Le serial number de la carte |
required | object (DataResponse) Les datas de la carte |
{- "serialNumber": "string",
- "data": {
- "keyValues": [
- {
- "key": "string",
- "value": "string"
}
], - "transactions": [
- { }
]
}
}{- "id": 0,
- "serialNumber": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "data": {
- "keyValues": [
- {
- "key": "string",
- "value": "string"
}
], - "transactions": [
- { }
]
}
}Modifier les datas de la carte
| card_template_id required | string L'id du card template |
| serial_number required | string Le serial number de la carte |
Data de la carte
required | object (DataResponse) Les datas de la carte |
{- "data": {
- "keyValues": [
- {
- "key": "string",
- "value": "string"
}
], - "transactions": [
- { }
]
}
}{- "id": 0,
- "serialNumber": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "data": {
- "keyValues": [
- {
- "key": "string",
- "value": "string"
}
], - "transactions": [
- { }
]
}
}Ajouter un nouveau device sur un wallet et/ou associer un device à une carte existante.
| wallet_id required | string L'id du wallet |
Les éléments à mettre pour créer un device et/ou lier une carte à un device
| deviceType | string Enum: "Android" "iOS" Le type de device |
| token | string Le token du device |
| serialNumber | string Le serialNumber de la carte |
| pushToken | string Le pushToken du device pour cette carte |
{- "deviceType": "Android",
- "token": "string",
- "serialNumber": "string",
- "pushToken": "string"
}{- "id": 0,
- "wallet_id": 0,
- "token": "string",
- "device_type": "iOS",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}