v1
latestOpenAPI 3.0.32026-07-243003151.2 MBServices
Create a Wallet, Identities, Coupon/Scheme Accounts and Consumer Object
We have the ability in AIR to create a wallet, one or more identities, one or more coupon accounts, one or more scheme accounts and a consumer object in a single API call. If the first identity provided already exists, subsequent actions will be completed against the existing wallet and no further identities or wallets will be created.
post/services/wallet/accounts
Request body
Example request
{
"type": "BASIC_PARENT",
"status": "ACTIVE",
"state": "BASIC",
"friendlyName": "testWallet_854935006",
"identities": [
{
"friendlyName": "",
"type": "BASIC_CARD",
"state": "BASIC",
"status": "ACTIVE",
"value": "identityValue_1526762061"
},
{
"friendlyName": "",
"type": "BASIC_CARD",
"state": "BASIC",
"status": "ACTIVE",
"value": "identityValue_1978067984"
}
],
"accounts": {
"campaign": [
{
"campaignId": "12619",
"tokenCode": "20211022112335729351",
"status": "ACTIVE",
"state": "BASIC",
"dates": {
"start": "2021-10-23T00:00:00+00:00",
"end": "2021-11-22T00:00:00+00:00"
}
},
{
"campaignId": "12619",
"status": "ACTIVE",
"state": "BASIC"
}
],
"scheme": [
{
"schemeId": "12653",
"status": "ACTIVE",
"state": "EARNONLY"
}
]
},
"consumer": {
"type": "INDIVIDUAL",
"state": "DEFAULT",
"status": "ACTIVE",
"data": {
"personal": {
"firstName": "John",
"lastName": "Doe"
}
}
}
}Response
Created