{"_id":"5bfcb20b4ffbee0018208915","project":"59f79e3c584eb200345ceafc","version":{"_id":"5ba178b00a916500030c6a21","project":"59f79e3c584eb200345ceafc","__v":24,"forked_from":"59f79e3c584eb200345ceaff","createdAt":"2015-09-17T03:47:20.956Z","releaseDate":"2015-09-17T03:47:20.956Z","categories":["5ba178b00a916500030c69a2","5ba178b00a916500030c69a3","5ba178b00a916500030c69a4","5ba178b00a916500030c69a5","5ba178b00a916500030c69a6","5ba178b00a916500030c69a7","5ba178b00a916500030c69a8","5ba178b00a916500030c69a9","5ba178b00a916500030c69aa","5ba178b00a916500030c69ab","5ba178b00a916500030c69ac","5afb6888212c690003ae3d3b","5ba178b00a916500030c69ad","5ba178b00a916500030c69ae","5ba2dcbc99f53f0003b97e2c","5babd73fa0ab3e0003ead030","5bb4038be7222e000334dd97","5bb55954478c1300031a44c2","5bb665a1607307000327c81e","5bb6f90229a7fb0003a0650d","5bb7f9bc29a7fb0003a07ac1","5bba58bd7ba7710003bd901d","5bba6dac7ba7710003bd908d","5bba6e257ba7710003bd9090","5bbac87810189c0003e619ea","5bbb9d02b5862c00036266b2","5bbbadb6219c3e000376c2de","5bc417751d1b0000182bf7f6","5bc59e3b2a5b4f0044db5b97","5bc7bbce2262cc0041f6eff2","5bce6a3580a7250031199f34","5bcfac2c4082510019f2d91b","5bcfac3757bed90030e45d68","5bcfac45d305bc0049941539","5bd2a43548bb6f00289c8fad","5bd3a42a026ebe001f66259e","5bd9d5afffe003005b02f97b","5becb7ee85c6b300557662b6"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":false,"codename":"","version_clean":"3.2.0","version":"3.2"},"category":{"_id":"5bbac87810189c0003e619ea","project":"59f79e3c584eb200345ceafc","version":"5ba178b00a916500030c6a21","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2018-10-08T03:01:12.803Z","from_sync":false,"order":19,"slug":"debit-card-issuance","title":"Issue Debit Card [Deprecated]"},"user":"5557e76e512c300d007730d1","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-11-27T02:55:07.247Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Currently in Beta\",\n  \"body\": \"This endpoint is currently in Beta in Sandbox Only. Please note that it is subject to change based on feedback from our customers.\"\n}\n[/block]\nThis endpoint allows you to generate a token to automatically add the user's card to Apple Pay. To incorporate this within your app or website, include an \"Add to Apple Pay\" button that allows the user to easily connect to Apple Pay.\n\n##Endpoint\nhttps://uat-api.synapsefi.com/v3.1/users/:user_id/nodes/:node_id/applepay\n\n##Path Parameter\n[block:html]\n{\n  \"html\": \"<div class=\\\"api-manager\\\"> <div class=\\\"param-table\\\"> <div class=\\\"table\\\"> <div class=\\\"tr\\\"> <div class=\\\"td param\\\"> <strong>user_id <span class=\\\"colon\\\">:</span> </strong> <div class=\\\"required\\\">required</div></div><div class=\\\"td\\\"> <strong class=\\\"param-type\\\">string</strong> <div marked=\\\"\\\" class=\\\"ng-isolate-scope\\\"> <p>The user ID of the user</p></div></div></div><div class=\\\"tr\\\"> <div class=\\\"td param\\\"> <strong>node_id <span class=\\\"colon\\\">:</span> </strong> <div class=\\\"required\\\">required</div></div><div class=\\\"td\\\"> <strong class=\\\"param-type\\\">string</strong> <div marked=\\\"\\\" class=\\\"ng-isolate-scope\\\"> <p>The node ID of the node</p></div></div></div></div></div></div>\"\n}\n[/block]\n##Body Parameter\n[block:html]\n{\n  \"html\": \"<div class=\\\"api-manager\\\"> <div class=\\\"param-table\\\"> <div class=\\\"table\\\"> <div class=\\\"tr\\\"> <div class=\\\"td param\\\"> <strong>certificate <span class=\\\"colon\\\">:</span> </strong> <div class=\\\"required\\\">required</div></div><div class=\\\"td\\\"> <strong class=\\\"param-type\\\">string</strong> <div marked=\\\"\\\" class=\\\"ng-isolate-scope\\\"> <p>your Apple Pay certificate</p></div></div></div><div class=\\\"tr\\\"> <div class=\\\"td param\\\"> <strong>nonce <span class=\\\"colon\\\">:</span> </strong> <div class=\\\"required\\\">required</div></div><div class=\\\"td\\\"> <strong class=\\\"param-type\\\">string</strong> <div marked=\\\"\\\" class=\\\"ng-isolate-scope\\\"> <p>your Apple Pay nonce\\n</p></div></div></div><div class=\\\"tr\\\"> <div class=\\\"td param\\\"> <strong>nonce_signature <span class=\\\"colon\\\">:</span> </strong> <div class=\\\"required\\\">required</div></div><div class=\\\"td\\\"> <strong class=\\\"param-type\\\">string</strong> <div marked=\\\"\\\" class=\\\"ng-isolate-scope\\\"> <p>your Apple Pay nonce signature\\n</p></div></div></div></div></div></div>\"\n}\n[/block]\n##Example Request\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X PATCH \\\\\\n  https://uat-api.synapsefi.com/v3.1/users/5bfa4992c256c300b964b035/nodes/5bfae08fbab47500b2ccfc66/applepay \\\\\\n  -H 'Content-Type: application/json' \\\\\\n  -H 'Postman-Token: 1ba01a43-85a2-45fb-8cfd-e3fa192310c4' \\\\\\n  -H 'X-SP-USER: oauth_s6hFqcdXol7v2ukPVI|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \\\\\\n  -H 'X-SP-USER-IP: 255.127.79.76' \\\\\\n  -H 'cache-control: no-cache' \\\\\\n  -d '{\\n    \\\"certificate\\\": \\\"your applepay cert\\\",\\n    \\\"nonce\\\": \\\"9c02xxx2\\\",\\n    \\\"nonce_signature\\\": \\\"4082f883ae62d0700c283e225ee9d286713ef74\\\"\\n}'\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n##Example Response\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"data\\\": \\\"643b3ccadf7cfd994fc8fe535eafdf5285700380737b4b6dcecc6b8d6b06204454a8b8ce035a29d48b24abc650686fe6a764ac4ea57be4de87e0bd7180c16b9fe00b02a225d070570215511b8be1dbddeb9d40941979021ebac2d120d287feb91753a84ca61a50f0477ee4a918b9edc1f19935c6d728767fdba9b48ef6a9d0f5888ac0fa085bfce525a14124cf920236a1a7c397275f9f1a00f83ce11ce982d63b7fe0013ef18ab8e9f1d828a157fe64bdfed7497aaf2fc250d8b7e17be1952b86538fa09efd962111aa3b2122b91a6bb2000674d1b8f219eb06221ae66110f2e2318a79b91a13d6f319f932f5494cde02a98412a761ba2bfc532d899b43bca768f166a6d3133ab1f93b82890168dcc1b46d8b4230567258df60b63a2b016d622c578d90eb4eaec9367e090b7a0e2f2727b5eadd46\\\",\\n    \\\"public_key\\\": \\\"MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEZLZ+AD0jay9XfKfjr8lKlt6VmQqf+KPWD0CDFwHrmhT7q/189xCDybS5qSL4qKRPixG4Dyt22iqw+Mx0JgT9dA==\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 Okay\"\n    }\n  ]\n}\n[/block]","excerpt":"Generate tokenized info for Apple Wallet","slug":"generate-applepay-token","type":"basic","title":"Generate Apple Pay Token"}

Generate Apple Pay Token

Generate tokenized info for Apple Wallet

[block:callout] { "type": "warning", "title": "Currently in Beta", "body": "This endpoint is currently in Beta in Sandbox Only. Please note that it is subject to change based on feedback from our customers." } [/block] This endpoint allows you to generate a token to automatically add the user's card to Apple Pay. To incorporate this within your app or website, include an "Add to Apple Pay" button that allows the user to easily connect to Apple Pay. ##Endpoint https://uat-api.synapsefi.com/v3.1/users/:user_id/nodes/:node_id/applepay ##Path Parameter [block:html] { "html": "<div class=\"api-manager\"> <div class=\"param-table\"> <div class=\"table\"> <div class=\"tr\"> <div class=\"td param\"> <strong>user_id <span class=\"colon\">:</span> </strong> <div class=\"required\">required</div></div><div class=\"td\"> <strong class=\"param-type\">string</strong> <div marked=\"\" class=\"ng-isolate-scope\"> <p>The user ID of the user</p></div></div></div><div class=\"tr\"> <div class=\"td param\"> <strong>node_id <span class=\"colon\">:</span> </strong> <div class=\"required\">required</div></div><div class=\"td\"> <strong class=\"param-type\">string</strong> <div marked=\"\" class=\"ng-isolate-scope\"> <p>The node ID of the node</p></div></div></div></div></div></div>" } [/block] ##Body Parameter [block:html] { "html": "<div class=\"api-manager\"> <div class=\"param-table\"> <div class=\"table\"> <div class=\"tr\"> <div class=\"td param\"> <strong>certificate <span class=\"colon\">:</span> </strong> <div class=\"required\">required</div></div><div class=\"td\"> <strong class=\"param-type\">string</strong> <div marked=\"\" class=\"ng-isolate-scope\"> <p>your Apple Pay certificate</p></div></div></div><div class=\"tr\"> <div class=\"td param\"> <strong>nonce <span class=\"colon\">:</span> </strong> <div class=\"required\">required</div></div><div class=\"td\"> <strong class=\"param-type\">string</strong> <div marked=\"\" class=\"ng-isolate-scope\"> <p>your Apple Pay nonce\n</p></div></div></div><div class=\"tr\"> <div class=\"td param\"> <strong>nonce_signature <span class=\"colon\">:</span> </strong> <div class=\"required\">required</div></div><div class=\"td\"> <strong class=\"param-type\">string</strong> <div marked=\"\" class=\"ng-isolate-scope\"> <p>your Apple Pay nonce signature\n</p></div></div></div></div></div></div>" } [/block] ##Example Request [block:code] { "codes": [ { "code": "curl -X PATCH \\\n https://uat-api.synapsefi.com/v3.1/users/5bfa4992c256c300b964b035/nodes/5bfae08fbab47500b2ccfc66/applepay \\\n -H 'Content-Type: application/json' \\\n -H 'Postman-Token: 1ba01a43-85a2-45fb-8cfd-e3fa192310c4' \\\n -H 'X-SP-USER: oauth_s6hFqcdXol7v2ukPVI|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \\\n -H 'X-SP-USER-IP: 255.127.79.76' \\\n -H 'cache-control: no-cache' \\\n -d '{\n \"certificate\": \"your applepay cert\",\n \"nonce\": \"9c02xxx2\",\n \"nonce_signature\": \"4082f883ae62d0700c283e225ee9d286713ef74\"\n}'", "language": "curl" } ] } [/block] ##Example Response [block:code] { "codes": [ { "code": "{\n \"data\": \"643b3ccadf7cfd994fc8fe535eafdf5285700380737b4b6dcecc6b8d6b06204454a8b8ce035a29d48b24abc650686fe6a764ac4ea57be4de87e0bd7180c16b9fe00b02a225d070570215511b8be1dbddeb9d40941979021ebac2d120d287feb91753a84ca61a50f0477ee4a918b9edc1f19935c6d728767fdba9b48ef6a9d0f5888ac0fa085bfce525a14124cf920236a1a7c397275f9f1a00f83ce11ce982d63b7fe0013ef18ab8e9f1d828a157fe64bdfed7497aaf2fc250d8b7e17be1952b86538fa09efd962111aa3b2122b91a6bb2000674d1b8f219eb06221ae66110f2e2318a79b91a13d6f319f932f5494cde02a98412a761ba2bfc532d899b43bca768f166a6d3133ab1f93b82890168dcc1b46d8b4230567258df60b63a2b016d622c578d90eb4eaec9367e090b7a0e2f2727b5eadd46\",\n \"public_key\": \"MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEZLZ+AD0jay9XfKfjr8lKlt6VmQqf+KPWD0CDFwHrmhT7q/189xCDybS5qSL4qKRPixG4Dyt22iqw+Mx0JgT9dA==\"\n}", "language": "json", "name": "200 Okay" } ] } [/block]