...
Code Block | ||||
---|---|---|---|---|
| ||||
curl -v -X POST \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ --data '{ "type": "VI", "number": "4444333322221111" }' {midoco_proxy_url}/creditcard/store |
...
Code Block | ||||
---|---|---|---|---|
| ||||
curl -v -X PATCH \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ --data '{ "data": { "creditCardInfo": { "creditCards": [{ "updatedNumberReference": "ccTok-75cb0e1c-6640-4622-82bd-fed07fd1ca59", "expiration": "12/25", "publishAsFop": true }], "webCard": { "@type": "own-card", "uuid": "6e6259b9-4fa9-41c7-8a7b-f5d68df8f38b" }, "hotelGuarantee": { "@type": "own-card", "uuid": "ccTok-75cb0e1c-6640-4622-82bd-fed07fd1ca59" }, "carGuarantee": { "@type": "company-card" } } } }' https://hurricane.umbrellanet.ch/uf-test/api/v1/profiles/traveller/ceb545fd-5000-4f44-93dd-47a272f6f25a |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"uuid": "ceb545fd-5000-4f44-93dd-47a272f6f25a",
"username": "demo.user",
"firstname": "Demo",
"name": "Traveller",
"email": "demo@umbrella.ch",
"data": {
"creditCardInfo": {
"creditCards": [{
"uuid": "bcf0cfc2-5262-4996-98fb-f9a2ca8dc7a4",
"type": "VI",
"maskedNumber": "4444XXXXXXXX1111",
"expiration": "12/25",
"remark": "",
"publishAsFop": true
}, {
"uuid": "6e6259b9-4fa9-41c7-8a7b-f5d68df8f38b",
"type": "VI",
"maskedNumber": "4242XXXXXXXX4242",
"expiration": "12/25",
"remark": "",
"publishAsFop": true
}],
"webCard": {
"@type": "own-card",
"uuid": "6e6259b9-4fa9-41c7-8a7b-f5d68df8f38b",
"maskedNumber": "4242XXXXXXXX4242"
},
"hotelGuarantee": {
"@type": "own-card",
"uuid": "bcf0cfc2-5262-4996-98fb-f9a2ca8dc7a4",
"maskedNumber": "4444XXXXXXXX1111"
},
"carGuarantee": {
"@type": "company-card",
"uuid": "0d67e63f-a8a6-4a73-b826-d815a04aaedd",
"maskedNumber": "5200XXXXXXXX0007"
}
}
}
} |