{"_id":"59a45d2bd12e81000f842f12","category":{"_id":"59a45d2bd12e81000f842ee4","version":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-10-15T15:28:41.796Z","from_sync":false,"order":1,"slug":"payment-transaction-service","title":"Card Transactions"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:12:59.168Z","releaseDate":"2017-08-28T18:12:59.168Z","categories":["59a45d2bd12e81000f842ee3","59a45d2bd12e81000f842ee4","59a45d2bd12e81000f842ee5","59a45d2bd12e81000f842ee6","59a45d2bd12e81000f842ee7","59a45d2bd12e81000f842ee8","59a45d2bd12e81000f842ee9","59a45d2bd12e81000f842eea","59a45d2bd12e81000f842eeb","59a45d2bd12e81000f842eec","59a45d2bd12e81000f842eed","59a45d2bd12e81000f842eee","59a45d2bd12e81000f842eef","59a45d2bd12e81000f842ef0","59a45d2bd12e81000f842ef1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":["58754a4bd8906c0f00d2b195","58934f183a266c0f00f135f2"],"next":{"pages":[],"description":""},"createdAt":"2016-01-19T12:55:47.634Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"post","results":{"codes":[{"language":"text","code":""}]},"settings":"57ee593a21ceb20e0061959e","auth":"optional","params":[],"url":"/transactions"},"isReference":true,"order":1,"body":"Auth Capture performs two actions via a single request:\n  * **authorize**: checks whether a credit card is valid and has the funds to complete a specific transaction (i.e. purchase)\n  * **capture**: submits the authorized transaction for settlement (i.e. payment by the shopper)\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer\" role=\"button\">Try it in the API Explorer</a>\n\n###Request Content\n\nSend a **[cardTransaction](doc:card-transaction)** object, with the following:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`walletId` &nbsp;&nbsp;&nbsp; *long* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if using MasterPass or Visa Checkout</span>\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`wallet` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if using Apple Pay</span>&nbsp;&nbsp;&nbsp; (see [wallet](doc:wallet)) \n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`amount` &nbsp;&nbsp;&nbsp; *decimal* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vaultedShopperId` &nbsp;&nbsp;&nbsp; *integer* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if using a vaulted shopper</span>\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`recurringTransaction` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`merchantTransactionId` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;optional\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`softDescriptor` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;optional\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vendorInfo` *container* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if using marketplace vendor</span> (see [vendorInfo](doc:vendorinfo-1))\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`amount` *decimal* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`cardHolderInfo` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if sending card data or `pfToken` and shopper is new</span> (see [cardHolderInfo](doc:card-holder-info))\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`currency` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`transactionFraudInfo` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;optional (see [transactionFraudInfo](doc:transaction-fraud-info))\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`creditCard` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if sending card data or if vaulted shopper has multiple cards; do **not** include if sending `pfToken` or `wallet`</span> (see [creditCard](doc:credit-card))\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`cardTransactionType` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>, value must be **AUTH_CAPTURE**\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`transactionMetaData` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;optional (see [transactionMetaData](doc:transaction-meta-data))\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`pfToken` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required** if using [Hosted Payment Fields](/v4.0/docs/hosted-payment-fields)</span>\n\n###Response Details\n\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the request properties plus these additions:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vaultedShopperId`\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`processingInfo`\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`fraudResultInfo` if [fraud prevention](/v1.0/docs/fraud-prevention) is enabled\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`transactionId`\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vendorInfo` if using marketplace vendor\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\",\\n        \\\"zip\\\": \\\"123456\\\" \\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"transactionFraudInfo\\\": {\\n        \\\"shopperIpAddress\\\": \\\"123.12.134.1\\\",\\n        \\\"fraudSessionId\\\": 1234,\\n        \\\"company\\\": \\\"BBBBB\\\",\\n        \\\"shippingContactInfo\\\": {\\n            \\\"zip\\\": 12345,\\n            \\\"country\\\": \\\"US\\\",\\n            \\\"firstName\\\": \\\"YY\\\",\\n            \\\"lastName\\\": \\\"LL\\\",\\n            \\\"city\\\": \\\"Juneau\\\",\\n            \\\"address2\\\": \\\"Address2\\\",\\n            \\\"address1\\\": \\\"Address1\\\",\\n            \\\"state\\\": \\\"AL\\\"\\n        }\\n    },\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": 4263982640269299\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"Auth Capture Request: basic with fraud info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n        \\\"zip\\\", \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"transactionFraudInfo\\\": {\\n        \\\"enterpriseSiteId\\\": \\\"DEFAULT\\\",\\n        \\\"shopperIpAddress\\\": \\\"123.12.134.1\\\",\\n        \\\"fraudSessionId\\\": 1234,\\n        \\\"enterpriseUdfs\\\": {\\\"udf\\\": [\\n            {\\n                \\\"udfValue\\\": \\\"aaa\\\",\\n                \\\"udfName\\\": \\\"ENT_UDF1\\\"\\n            },\\n            {\\n                \\\"udfValue\\\": \\\"bbb\\\",\\n                \\\"udfName\\\": \\\"ENT_UDF2\\\"\\n            }\\n        ]},\\n        \\\"company\\\": \\\"BBBBB\\\",\\n        \\\"shippingContactInfo\\\": {\\n            \\\"zip\\\": 12345,\\n            \\\"country\\\": \\\"US\\\",\\n            \\\"firstName\\\": \\\"YY\\\",\\n            \\\"lastName\\\": \\\"LL\\\",\\n            \\\"city\\\": \\\"Juneau\\\",\\n            \\\"address2\\\": \\\"Address2\\\",\\n            \\\"address1\\\": \\\"Address1\\\",\\n            \\\"state\\\": \\\"AL\\\"\\n        }\\n    },\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": 4263982640269299\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with enterprise fraud info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"vaultedShopperId\\\": 20769005,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": 9299,\\n        \\\"cardType\\\": \\\"VISA\\\"\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with vaulted shopper and credit card specified\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n        \\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": 4263982640269299\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionMetaData\\\": {\\\"metaData\\\": [\\n        {\\n            \\\"metaValue\\\": 20,\\n            \\\"metaKey\\\": \\\"stateTaxAmount\\\",\\n            \\\"metaDescription\\\": \\\"State Tax Amount\\\"\\n        },\\n        {\\n            \\\"metaValue\\\": 20,\\n            \\\"metaKey\\\": \\\"cityTaxAmount\\\",\\n            \\\"metaDescription\\\": \\\"City Tax Amount\\\"\\n        },\\n        {\\n            \\\"metaValue\\\": 10,\\n            \\\"metaKey\\\": \\\"shippingAmount\\\",\\n            \\\"metaDescription\\\": \\\"Shipping Amount\\\"\\n        }\\n    ]}\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with metadata\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"vaultedShopperId\\\": 20781033,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with vaulted shopper who has one card\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"walletId\\\": 21,\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with wallet ID\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n        \\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"encryptedCardNumber\\\": \\\"$bsjs_1_0_3$B23uuxq8drUwOYZm3wZi+Qm69V5GPEt8PEio+Edwcm8akczQSK7odgLQH/Au+VqOCsGspW1Q9mPyQIzGLSZLVToAQVfq5C1ld+2ogIIsDL32Hd6IojboLyVlYT1FvPQoDyz19K6N0CUHh5uk0kCLuHSUyjvoJH38ojHZifbJSm/7S5vAtiuC3BJt2z8k9nauQaAXkbyoAYwrS1yDpqOt2k2lGhKcmdQ4ImDR0RL8m8xig6sFrki9oqo3Mju/M5r7wXXVTf7TMtWiQbzdfREOxKUnviXJZpncdHqVjj5GvPYun2qgopKVKr8F5+yd19TVW2gvA1kXBkXonFL9159Gxg==$zckJgo2i8jXDiAHwVVHBKypXFnWqF2e+6luBkmtQQRKniDXyXaalRVKLtYscBaGd$W7Ojqk1Q2iOJVeGL39RAsZTtfup3f1deSzvxrvC9rXA=\\\",\\n        \\\"encryptedSecurityCode\\\": \\\"$bsjs_1_0_3$MB1nBpok/YkuWPG1/7e6dyFFhDPHB8p8E9Yo+0YHHV+xkHuzFKr02wAnE8PJ8QCzWH+2ctXy5FN6wLKjwFrfTOgy0BJ9k9+NDEe8mhsu66wMlyc3lnwrbvMRCWN1O+5gUNCFExj7B0mDtf4gtxecXs74KZ5l5dbpGWdKUk5i7OewWyTqsONbn9taLfVBOwuIOy2Jgi4fx+yB8Q05KdZeHSNSBJh8H/47AUNAn5dM+d9iO6yGQB3obzEzzR3UtHlkGR52ZsgbbFh0JMm9lBM2ClgYM8jvmQjS9HX2ojt1fkbhuPEb1IY/M498a+1wDPpI4aMfDxO1lSpJneRSpY5k4g==$XaKq1NbPcS0iHy9N9jHekEIByHYS4G3wJXlC9EQjAGM=$BJn6X6mBYGUo8Eoq4RQz69gsi4Azl8jT973mNpG9Yuo=\\\",\\n        \\\"expirationMonth\\\": \\\"07\\\"\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with encrypted credit card\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"merchantTransactionId\\\": \\\"3\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\",\\n        \\\"zip\\\": \\\"123456\\\",\\n        \\\"merchantShopperId\\\": \\\"a43251\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": 4263982640269299\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with merchant shopper ID\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n        \\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"pfToken\\\": \\\"abcde12345**********\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with Hosted Payment Fields token\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"merchantTransactionId\\\": 3,\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n        \\\"zip\\\": \\\"123456\\\" \\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": 4263982640269299\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with Merchant Transaction ID\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\ \\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"vendorInfo\\\": {\\n        \\\"vendorId\\\": \\\"514147\\\"\\n    },\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"transactionFraudInfo\\\": {\\n        \\\"shopperIpAddress\\\": \\\"123.12.134.1\\\",\\n        \\\"fraudSessionId\\\": 1234,\\n        \\\"company\\\": \\\"BBBBB\\\",\\n        \\\"shippingContactInfo\\\": {\\n            \\\"zip\\\": 12345,\\n            \\\"country\\\": \\\"US\\\",\\n            \\\"firstName\\\": \\\"YY\\\",\\n            \\\"lastName\\\": \\\"LL\\\",\\n            \\\"city\\\": \\\"Juneau\\\",\\n            \\\"address2\\\": \\\"Address2\\\",\\n            \\\"address1\\\": \\\"Address1\\\",\\n            \\\"state\\\": \\\"AL\\\"\\n      }\\n    },\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": 4263982640269299\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"basic with vendor info\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n\\n{\\n  \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n  \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n  \\\"softDescriptor\\\": \\\"DescTest\\\",\\n  \\\"amount\\\": \\\"11.00\\\",\\n  \\\"currency\\\": \\\"USD\\\",\\n  \\\"cardHolderInfo\\\": {\\n      \\\"firstName\\\": \\\"test first name\\\",\\n      \\\"lastName\\\": \\\"test last name\\\",\\n      \\\"zip\\\": \\\"123456\\\"\\n    },\\n  \\\"creditCard\\\": {\\n      \\\"cardNumber\\\": \\\"4263982640269299\\\",\\n      \\\"securityCode\\\": \\\"837\\\",\\n      \\\"expirationMonth\\\": \\\"02\\\",\\n      \\\"expirationYear\\\": \\\"2018\\\"\\n    }\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"Basic\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"amount\\\": 11.00,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"wallet\\\": {\\n      \\\"applePay\\\": {\\n        \\\"encodedPaymentToken\\\": \\\"ImRhdGEiOiJuY1AvRitIUy8zeG5bXhCMFd\\\"\\n      }\\n    }\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with Apple Pay \"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"amount\\\": 11,\\n    \\\"vaultedShopperId\\\": 20769005,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\", \\n      \\t\\\"securityCode\\\": \\\"837\\\"   \\t\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with vaulted shopper & CVV\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"amount\\\": \\\"11.00\\\",\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"vaultedShopperId\\\": \\\"20769005\\\",\\n    \\\"creditCard\\\": {\\n      \\\"cardNumber\\\": \\\"4012000033330026\\\",\\n      \\\"securityCode\\\": \\\"111\\\",\\n      \\\"expirationMonth\\\": \\\"07\\\",\\n      \\\"expirationYear\\\": \\\"2019\\\"\\n    }\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with vaulted shopper & new card\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n \n\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": \\\"1012751937\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21289371,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"MA\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Auth Capture Response: 200 OK - basic with fraud info / enterprise fraud info\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": \\\"1012751945\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"vaultedShopperId\\\": 20781033,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - vaulted shopper (whether credit card was specified or not)\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": \\\"1012751947\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\",\\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21289375,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"transactionMetaData\\\": {\\n        \\\"metaData\\\": [\\n            {\\n                \\\"metaKey\\\": \\\"stateTaxAmount\\\",\\n                \\\"metaValue\\\": \\\"20\\\",\\n                \\\"metaDescription\\\": \\\"State Tax Amount\\\"\\n            },\\n            {\\n                \\\"metaKey\\\": \\\"cityTaxAmount\\\",\\n                \\\"metaValue\\\": \\\"20\\\",\\n                \\\"metaDescription\\\": \\\"City Tax Amount\\\"\\n            },\\n            {\\n                \\\"metaKey\\\": \\\"shippingAmount\\\",\\n                \\\"metaValue\\\": \\\"10\\\",\\n                \\\"metaDescription\\\": \\\"Shipping Amount\\\"\\n            }\\n        ]\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"MA\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - metadata\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"merchantTransactionId\\\": \\\"3\\\",\\n    \\\"transactionId\\\": \\\"1012751949\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\",\\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21289379,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"MA\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - Merchant Transaction ID\"\n    },\n    {\n      \"code\": \"{\\n    \\\"amount\\\": 11,\\n    \\\"vaultedShopperId\\\": 123,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"NC\\\"\\n    },\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": 9299,\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": 1011702615\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - wallet ID\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": \\\"1012751953\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21289383,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"ND\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - encrypted credit card\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"vendorInfo\\\": {\\n        \\\"vendorId\\\": 514147,\\n        \\\"commissionPercent\\\": 20\\n    },\\n    \\\"transactionId\\\": \\\"1013352423\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21527869,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"MA\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - basic with vendor info\"\n    },\n    {\n      \"code\": \"{\\n    \\\"amount\\\": 11,\\n    \\\"vaultedShopperId\\\": 1234,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"processingInfo\\\": {\\n        \\\"avsResponseCodeAddress\\\": \\\"M\\\",\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"MA\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"M\\\"\\n    },\\n    \\\"softDescriptor\\\": \\\"BLS*DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": 9299,\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": 38486450\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - Hosted Payment Fields\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"merchantTransactionId\\\": \\\"3\\\",\\n    \\\"transactionId\\\": \\\"1012751949\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\",\\n      \\t\\\"zip\\\": \\\"123456\\\"\\n\\t\\t\\\"merchantShopperId\\\": \\\"a43251\\\"\\n    },\\n    \\\"vaultedShopperId\\\": 21289379,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"MA\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - Merchant Shopper ID\"\n    },\n    {\n      \"code\": \"{\\n  \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n  \\\"transactionId\\\": \\\"38486450\\\",\\n  \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n  \\\"softDescriptor\\\": \\\"BLS*DescTest\\\",\\n  \\\"amount\\\": \\\"11.00\\\",\\n  \\\"currency\\\": \\\"USD\\\",\\n  \\\"vaultedShopperId\\\": \\\"1234\\\",\\n  \\\"cardHolderInfo\\\": {\\n      \\\"firstName\\\": \\\"test first name\\\",\\n      \\\"lastName\\\": \\\"test last name\\\",\\n      \\\"zip\\\": \\\"123456\\\"\\n    },\\n  \\\"creditCard\\\": {\\n      \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n      \\\"cardType\\\": \\\"VISA\\\",\\n      \\\"cardSubType\\\": \\\"CREDIT\\\", \\n      \\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n  \\\"processingInfo\\\": {\\n      \\\"processingStatus\\\": \\\"success\\\",\\n      \\\"cvvResponseCode\\\": \\\"MA\\\",\\n      \\\"avsResponseCodeZip\\\": \\\"M\\\",\\n      \\\"avsResponseCodeAddress\\\": \\\"M\\\",\\n      \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - Basic\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": 38486450,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS*DescTest\\\",\\n    \\\"amount\\\": \\\"11.00\\\",\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"vaultedShopperId\\\": 1234,\\n    \\\"wallet\\\": {\\n      \\\"billingContactInfo\\\": {\\n        \\\"firstName\\\": \\\"John\\\",\\n        \\\"lastName\\\": \\\"Doe\\\",\\n        \\\"address1\\\": \\\"South St\\\",\\n        \\\"city\\\": \\\"Waltham\\\",\\n        \\\"state\\\": \\\"MA\\\",\\n        \\\"zip\\\": \\\"02453\\\"\\n      },\\n      \\\"applePay\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"0492\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"DEBIT\\\",\\n        \\\"dpanLastFourDigits\\\": \\\"4109\\\",\\n        \\\"dpanExpirationMonth\\\": \\\"11\\\",\\n        \\\"dpanExpirationYear\\\": \\\"25\\\"\\n      }\\n    },\\n    \\\"processingInfo\\\": {\\n      \\\"processingStatus\\\": \\\"success\\\",\\n      \\\"cvvResponseCode\\\": \\\"MA\\\",\\n      \\\"avsResponseCodeZip\\\": \\\"M\\\",\\n      \\\"avsResponseCodeAddress\\\": \\\"M\\\",\\n      \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - Apple Pay\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": \\\"1012751945\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"vaultedShopperId\\\": 20769005,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n        \\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - vaulted shopper & CVV\"\n    },\n    {\n      \"code\": \"{\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\",\\n    \\\"transactionId\\\": \\\"1014303431\\\",\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"BLS&#x2a;DescTest\\\",\\n    \\\"amount\\\": 11,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"vaultedShopperId\\\": 20769005,\\n    \\\"creditCard\\\": {\\n        \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n        \\\"cardCategory\\\": \\\"CLASSIC\\\"\\n    },\\n    \\\"processingInfo\\\": {\\n        \\\"processingStatus\\\": \\\"success\\\",\\n        \\\"cvvResponseCode\\\": \\\"ND\\\",\\n        \\\"avsResponseCodeZip\\\": \\\"U\\\",\\n        \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n        \\\"avsResponseCodeName\\\": \\\"U\\\"\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK - vaulted shopper & new card \"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n\n##Example Descriptions\nFor details about the above examples, see:\n  * [Auth Capture with fraud info](#section-auth-capture-with-fraud-info) \n  * [Auth Capture with vaulted shopper](#section-auth-capture-with-vaulted-shopper) \n  * [Auth Capture with metadata](#section-auth-capture-with-metadata) \n  * [Auth Capture with Merchant Transaction ID](#section-auth-capture-with-merchant-transaction-id) \n  * [Auth Capture with wallet ID](#section-auth-capture-with-wallet-id) \n  * [Auth Capture with encrypted credit card](#section-auth-capture-with-encrypted-credit-card)\n  * [Auth Capture with Hosted Payment Fields token](#section-auth-capture-with-hosted-payment-fields-token)\n  * [Auth Capture with Vendor Info](#section-auth-capture-with-vendor-info)\n  * [Auth Capture with Apple Pay](#section-auth-capture-with-apple-pay)\n  * [Auth Capture with vaulted shopper & CVV](#section-auth-capture-with-vaulted-shopper-cvv)\n  * [Auth Capture with vaulted shopper & new card](#section-auth-capture-with-vaulted-shopper-new-card)\n\n###Auth Capture with fraud info\nThis example shows a basic Auth Capture request, containing the minimum required fields for a one-time payment using a credit card. It includes the required fraud info in the `transactionFraudInfo` property within the [cardTransaction](doc:card-transaction) object. See [transactionFraudInfo](doc:transaction-fraud-info).\n\nAn additional example with enterprise fraud info is above. Enterprise fraud info is supported only for merchants who have signed up for the Enterprise-level fraud service from BlueSnap. See [Fraud prevention](/v1.0/docs/fraud-prevention).\n\n###Auth Capture with vaulted shopper\nTo perform an Auth Capture request with an existing vaulted shopper, you'll need to include the `vaultedShopperId` property within the [cardTransaction](doc:card-transaction) object. When specifying a credit card for a vaulted shopper, you must include the `cardLastFourDigits` and `cardType` properties within the [creditCard](doc:credit-card) object. \n\nAbove are two vaulted shopper examples. The first is with a vaulted shopper who only has one credit card, so there is no need to specify which credit card to charge. The second is with a vaulted shopper who has multiple cards, so the request must indicate which card to charge. \n\n###Auth Capture with metadata\nTo send metadata for the transaction, you'll need to include the `transactionMetaData` property within the [cardTransaction](doc:card-transaction) object. You can include up to 20 metadata key-value pairs in each [transactionMetaData](doc:transaction-meta-data) property. \n\nAbove is an example of a request with metadata, including state tax, city tax, and the shipping amount.\n\n###Auth Capture with Merchant Transaction ID\nYou may wish to assign your own ID to each transaction, for example in order to track the transactions in your own internal systems. To do this, you'll need to include the `merchantTransactionId` property within the [cardTransaction](doc:card-transaction) object.\n\nAbove is an example of a request that includes a Merchant Transaction ID (MTI), along with the minimum required fields for a one-time payment using a credit card.\n\n###Auth Capture with wallet ID\nIf the shopper is paying via MasterPass or Visa Checkout, you can include the `walletId`in the request. For details, see:\n  * [MasterPass Guide](/v1.0/docs/masterpass)\n  * [Visa Checkout Guide](/v1.0/docs/visa-checkout)\n\nAbove is an example of a request with a MasterPass wallet.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"When you include the wallet ID in the request, a vaulted shopper will be automatically created and the vaulted shopper ID will be returned to you in the response.\\n\\nIf you prefer to save the wallet information in an existing shopper, it is recommended to instead send a [Create Vaulted Shopper](doc:create-vaulted-shopper) request with the wallet ID and then use that vaulted shopper in your Auth Capture request.\",\n  \"title\": \"Note\"\n}\n[/block]\n###Auth Capture with encrypted credit card\nYour [PCI compliance](/v1.0/docs/pci-compliance) requirements and API permission level may require that you send credit card data in encrypted format only. To do this, you'll need to include the`encryptedCardNumber` and `encryptedSecurityCode` properties within the [cardTransaction](doc:card-transaction) object.\n\nAbove is an example of a request with an encrypted credit card number.\n\n###Auth Capture with Hosted Payment Fields token\nIf you are using BlueSnap's [Hosted Payment Fields](/v4.0/docs/hosted-payment-fields), you can process the shopper's payment using the information from the Hosted Payment Fields by including the token within the `pfToken` property in your request.\n\nAbove is an example of a request with the Hosted Payment Fields token.\n\nNote that the response will look like a regular response for a credit card, with the card's last four digits and card type.\n\n###Auth Capture with Merchant Shopper ID\nYou may wish to assign your own Shopper ID to each transaction, for example in order to track the transactions in your own internal systems. To do this, you'll need to include the `merchantShopperId` property within the [cardTransaction](doc:card-transaction) object.\n\nAbove is an example of a request that includes a Merchant Shopper ID, along with the minimum required fields for a one-time payment using a credit card.\n\n###Auth Capture with Vendor Info\nThis example shows an Auth Capture request within a marketplace. If you are a marketplace merchant, you will include `vendorInfo` in the request to process a transaction between a shopper and a specific vendor within your marketplace (see [vendorInfo](doc:vendorinfo-1)).  \n\nIn the above request example, only the required `vendorId` is included in the `vendorInfo` container. By leaving out the `commissionPercent` property, the transaction will default to the value set during the creation of the vendor. \n\n###Auth Capture with Apple Pay \nThis example shows an Auth Capture request with Apple Pay. In the request, include `encodedPaymentToken` inside `wallet` > `applePay`. Instructions on how to extract the `encodedPaymentToken` can be found in the [Apple Pay Guide](/v1.0/docs/apple-pay#section-implementing-apple-pay-in-your-website-or-ios-app). \n\n**Note**: To test Apple Pay, follow the steps in the [Apple Pay Guide](/v1.0/docs/apple-pay#section-implementing-apple-pay-in-your-website-or-ios-app). The API Explorer does not support Apple Pay testing. \n\n###Auth Capture with vaulted shopper & CVV\nYou may wish to collect CVV on your checkout form from all your shoppers – even from returning shoppers. One reason you might choose to do this is because transactions with CVV generally result in higher success rates. \n\nAbove is an example of sending CVV in a transaction request involving a returning shopper. \nInclude `vaultedShopperId` and CVV in the request as in the example. \n\n###Auth Capture with vaulted shopper & new card \nThis example shows an Auth Capture request with a vaulted shopper and a new card. If you include `vaultedShopperId` and a new card in the request, the shopper's card will be charged and the card details will be added to the shopper. \n\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n\n##API Explorer\nTo test out a call, enter the request content below and then click **Try it!**\n\n**Tip**: Use the JSON code below as a starting point. You can enter different parameters and test credit card numbers to see how your test scenario would work. *The request headers, including authorization, are already built in for you in this test area, so you should not include them here.*\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"amount\\\": 11,\\n    \\\"recurringTransaction\\\": \\\"ECOMMERCE\\\",\\n    \\\"softDescriptor\\\": \\\"DescTest\\\",\\n    \\\"cardHolderInfo\\\": {\\n        \\\"firstName\\\": \\\"test first name\\\",\\n        \\\"lastName\\\": \\\"test last name\\\", \\n      \\t\\\"zip\\\": \\\"123456\\\"\\n    },\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2018,\\n        \\\"securityCode\\\": 837,\\n        \\\"expirationMonth\\\": \\\"02\\\",\\n        \\\"cardNumber\\\": \\\"4263982640269299\\\"\\n    },\\n    \\\"cardTransactionType\\\": \\\"AUTH_CAPTURE\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n<span id=\"api-explorer\"></span>","excerpt":"","slug":"auth-capture","type":"post","title":"Auth Capture"}

Definition

{{ api_url }}{{ page_api_url }}

Documentation

Auth Capture performs two actions via a single request:

  • authorize: checks whether a credit card is valid and has the funds to complete a specific transaction (i.e. purchase)
  • capture: submits the authorized transaction for settlement (i.e. payment by the shopper)

Try it in the API Explorer

Request Content

Send a cardTransaction object, with the following:

      walletId     long    required if using MasterPass or Visa Checkout

      wallet     object    required if using Apple Pay    (see wallet)

      amount     decimal    required

      vaultedShopperId     integer    required if using a vaulted shopper

      recurringTransaction     string    required

      merchantTransactionId     string    optional

      softDescriptor     string    optional

      vendorInfo container    required if using marketplace vendor (see vendorInfo)

      amount decimal    required

      cardHolderInfo     object    required if sending card data or pfToken and shopper is new (see cardHolderInfo)

      currency     string    required

      transactionFraudInfo     object    optional (see transactionFraudInfo)

      creditCard     object    required if sending card data or if vaulted shopper has multiple cards; do not include if sending pfToken or wallet (see creditCard)

      cardTransactionType     string    required, value must be AUTH_CAPTURE

      transactionMetaData     object    optional (see transactionMetaData)

      pfToken     string    required if using Hosted Payment Fields

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the request properties plus these additions:

      vaultedShopperId

      processingInfo

      fraudResultInfo if fraud prevention is enabled

      transactionId

      vendorInfo if using marketplace vendor


Examples

Request Examples

curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name",
        "zip": "123456" 
    },
    "currency": "USD",
    "transactionFraudInfo": {
        "shopperIpAddress": "123.12.134.1",
        "fraudSessionId": 1234,
        "company": "BBBBB",
        "shippingContactInfo": {
            "zip": 12345,
            "country": "US",
            "firstName": "YY",
            "lastName": "LL",
            "city": "Juneau",
            "address2": "Address2",
            "address1": "Address1",
            "state": "AL"
        }
    },
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": 4263982640269299
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
        "zip", "123456"
    },
    "currency": "USD",
    "transactionFraudInfo": {
        "enterpriseSiteId": "DEFAULT",
        "shopperIpAddress": "123.12.134.1",
        "fraudSessionId": 1234,
        "enterpriseUdfs": {"udf": [
            {
                "udfValue": "aaa",
                "udfName": "ENT_UDF1"
            },
            {
                "udfValue": "bbb",
                "udfName": "ENT_UDF2"
            }
        ]},
        "company": "BBBBB",
        "shippingContactInfo": {
            "zip": 12345,
            "country": "US",
            "firstName": "YY",
            "lastName": "LL",
            "city": "Juneau",
            "address2": "Address2",
            "address1": "Address1",
            "state": "AL"
        }
    },
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": 4263982640269299
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "vaultedShopperId": 20769005,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "currency": "USD",
    "creditCard": {
        "cardLastFourDigits": 9299,
        "cardType": "VISA"
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
        "zip": "123456"
    },
    "currency": "USD",
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": 4263982640269299
    },
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionMetaData": {"metaData": [
        {
            "metaValue": 20,
            "metaKey": "stateTaxAmount",
            "metaDescription": "State Tax Amount"
        },
        {
            "metaValue": 20,
            "metaKey": "cityTaxAmount",
            "metaDescription": "City Tax Amount"
        },
        {
            "metaValue": 10,
            "metaKey": "shippingAmount",
            "metaDescription": "Shipping Amount"
        }
    ]}
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "vaultedShopperId": 20781033,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "currency": "USD",
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "walletId": 21,
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "currency": "USD",
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
        "zip": "123456"
    },
    "currency": "USD",
    "creditCard": {
        "expirationYear": 2018,
        "encryptedCardNumber": "$bsjs_1_0_3$B23uuxq8drUwOYZm3wZi+Qm69V5GPEt8PEio+Edwcm8akczQSK7odgLQH/Au+VqOCsGspW1Q9mPyQIzGLSZLVToAQVfq5C1ld+2ogIIsDL32Hd6IojboLyVlYT1FvPQoDyz19K6N0CUHh5uk0kCLuHSUyjvoJH38ojHZifbJSm/7S5vAtiuC3BJt2z8k9nauQaAXkbyoAYwrS1yDpqOt2k2lGhKcmdQ4ImDR0RL8m8xig6sFrki9oqo3Mju/M5r7wXXVTf7TMtWiQbzdfREOxKUnviXJZpncdHqVjj5GvPYun2qgopKVKr8F5+yd19TVW2gvA1kXBkXonFL9159Gxg==$zckJgo2i8jXDiAHwVVHBKypXFnWqF2e+6luBkmtQQRKniDXyXaalRVKLtYscBaGd$W7Ojqk1Q2iOJVeGL39RAsZTtfup3f1deSzvxrvC9rXA=",
        "encryptedSecurityCode": "$bsjs_1_0_3$MB1nBpok/YkuWPG1/7e6dyFFhDPHB8p8E9Yo+0YHHV+xkHuzFKr02wAnE8PJ8QCzWH+2ctXy5FN6wLKjwFrfTOgy0BJ9k9+NDEe8mhsu66wMlyc3lnwrbvMRCWN1O+5gUNCFExj7B0mDtf4gtxecXs74KZ5l5dbpGWdKUk5i7OewWyTqsONbn9taLfVBOwuIOy2Jgi4fx+yB8Q05KdZeHSNSBJh8H/47AUNAn5dM+d9iO6yGQB3obzEzzR3UtHlkGR52ZsgbbFh0JMm9lBM2ClgYM8jvmQjS9HX2ojt1fkbhuPEb1IY/M498a+1wDPpI4aMfDxO1lSpJneRSpY5k4g==$XaKq1NbPcS0iHy9N9jHekEIByHYS4G3wJXlC9EQjAGM=$BJn6X6mBYGUo8Eoq4RQz69gsi4Azl8jT973mNpG9Yuo=",
        "expirationMonth": "07"
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "merchantTransactionId": "3",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name",
        "zip": "123456",
        "merchantShopperId": "a43251"
    },
    "currency": "USD",
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": 4263982640269299
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
        "zip": "123456"
    },
    "currency": "USD",
    "cardTransactionType": "AUTH_CAPTURE",
    "pfToken": "abcde12345**********"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "merchantTransactionId": 3,
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
        "zip": "123456" 
    },
    "currency": "USD",
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": 4263982640269299
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "vendorInfo": {
        "vendorId": "514147"
    },
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
      	"zip": "123456"
    },
    "currency": "USD",
    "transactionFraudInfo": {
        "shopperIpAddress": "123.12.134.1",
        "fraudSessionId": 1234,
        "company": "BBBBB",
        "shippingContactInfo": {
            "zip": 12345,
            "country": "US",
            "firstName": "YY",
            "lastName": "LL",
            "city": "Juneau",
            "address2": "Address2",
            "address1": "Address1",
            "state": "AL"
      }
    },
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": 4263982640269299
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

{
  "cardTransactionType": "AUTH_CAPTURE",
  "recurringTransaction": "ECOMMERCE",
  "softDescriptor": "DescTest",
  "amount": "11.00",
  "currency": "USD",
  "cardHolderInfo": {
      "firstName": "test first name",
      "lastName": "test last name",
      "zip": "123456"
    },
  "creditCard": {
      "cardNumber": "4263982640269299",
      "securityCode": "837",
      "expirationMonth": "02",
      "expirationYear": "2018"
    }
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "cardTransactionType": "AUTH_CAPTURE",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "amount": 11.00,
    "currency": "USD",
    "wallet": {
      "applePay": {
        "encodedPaymentToken": "ImRhdGEiOiJuY1AvRitIUy8zeG5bXhCMFd"
      }
    }
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "amount": 11,
    "vaultedShopperId": 20769005,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "currency": "USD",
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA", 
      	"securityCode": "837"   	
    },
    "cardTransactionType": "AUTH_CAPTURE"
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/transactions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
    "cardTransactionType": "AUTH_CAPTURE",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "amount": "11.00",
    "currency": "USD",
    "vaultedShopperId": "20769005",
    "creditCard": {
      "cardNumber": "4012000033330026",
      "securityCode": "111",
      "expirationMonth": "07",
      "expirationYear": "2019"
    }
}'

Response Examples

{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": "1012751937",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
      	"zip": "123456"
    },
    "vaultedShopperId": 21289371,
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "MA",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": "1012751945",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "vaultedShopperId": 20781033,
    "creditCard": {
        "cardLastFourDigits": "0026",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": "1012751947",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name",
      	"zip": "123456"
    },
    "vaultedShopperId": 21289375,
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "transactionMetaData": {
        "metaData": [
            {
                "metaKey": "stateTaxAmount",
                "metaValue": "20",
                "metaDescription": "State Tax Amount"
            },
            {
                "metaKey": "cityTaxAmount",
                "metaValue": "20",
                "metaDescription": "City Tax Amount"
            },
            {
                "metaKey": "shippingAmount",
                "metaValue": "10",
                "metaDescription": "Shipping Amount"
            }
        ]
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "MA",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "merchantTransactionId": "3",
    "transactionId": "1012751949",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name",
      	"zip": "123456"
    },
    "vaultedShopperId": 21289379,
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "MA",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "amount": 11,
    "vaultedShopperId": 123,
    "recurringTransaction": "ECOMMERCE",
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "NC"
    },
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name"
    },
    "currency": "USD",
    "creditCard": {
        "cardLastFourDigits": 9299,
        "cardSubType": "CREDIT",
        "cardType": "VISA",
      	"cardCategory": "CLASSIC"
    },
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": 1011702615
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": "1012751953",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
      	"zip": "123456"
    },
    "vaultedShopperId": 21289383,
    "creditCard": {
        "cardLastFourDigits": "1111",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "ND",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "vendorInfo": {
        "vendorId": 514147,
        "commissionPercent": 20
    },
    "transactionId": "1013352423",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
      	"zip": "123456"
    },
    "vaultedShopperId": 21527869,
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "MA",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "amount": 11,
    "vaultedShopperId": 1234,
    "recurringTransaction": "ECOMMERCE",
    "processingInfo": {
        "avsResponseCodeAddress": "M",
        "processingStatus": "success",
        "cvvResponseCode": "MA",
        "avsResponseCodeName": "U",
        "avsResponseCodeZip": "M"
    },
    "softDescriptor": "BLS*DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
      	"zip": "123456"
    },
    "currency": "USD",
    "creditCard": {
        "cardLastFourDigits": 9299,
        "cardSubType": "CREDIT",
        "cardType": "VISA",
      	"cardCategory": "CLASSIC"
    },
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": 38486450
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "merchantTransactionId": "3",
    "transactionId": "1012751949",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name",
      	"zip": "123456"
		"merchantShopperId": "a43251"
    },
    "vaultedShopperId": 21289379,
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
      	"cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "MA",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
  "cardTransactionType": "AUTH_CAPTURE",
  "transactionId": "38486450",
  "recurringTransaction": "ECOMMERCE",
  "softDescriptor": "BLS*DescTest",
  "amount": "11.00",
  "currency": "USD",
  "vaultedShopperId": "1234",
  "cardHolderInfo": {
      "firstName": "test first name",
      "lastName": "test last name",
      "zip": "123456"
    },
  "creditCard": {
      "cardLastFourDigits": "9299",
      "cardType": "VISA",
      "cardSubType": "CREDIT", 
      "cardCategory": "CLASSIC"
    },
  "processingInfo": {
      "processingStatus": "success",
      "cvvResponseCode": "MA",
      "avsResponseCodeZip": "M",
      "avsResponseCodeAddress": "M",
      "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": 38486450,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS*DescTest",
    "amount": "11.00",
    "currency": "USD",
    "vaultedShopperId": 1234,
    "wallet": {
      "billingContactInfo": {
        "firstName": "John",
        "lastName": "Doe",
        "address1": "South St",
        "city": "Waltham",
        "state": "MA",
        "zip": "02453"
      },
      "applePay": {
        "cardLastFourDigits": "0492",
        "cardType": "VISA",
        "cardSubType": "DEBIT",
        "dpanLastFourDigits": "4109",
        "dpanExpirationMonth": "11",
        "dpanExpirationYear": "25"
      }
    },
    "processingInfo": {
      "processingStatus": "success",
      "cvvResponseCode": "MA",
      "avsResponseCodeZip": "M",
      "avsResponseCodeAddress": "M",
      "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": "1012751945",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "vaultedShopperId": 20769005,
    "creditCard": {
        "cardLastFourDigits": "9299",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
        "cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}
{
    "cardTransactionType": "AUTH_CAPTURE",
    "transactionId": "1014303431",
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "BLS&#x2a;DescTest",
    "amount": 11,
    "currency": "USD",
    "vaultedShopperId": 20769005,
    "creditCard": {
        "cardLastFourDigits": "0026",
        "cardType": "VISA",
        "cardSubType": "CREDIT",
        "cardCategory": "CLASSIC"
    },
    "processingInfo": {
        "processingStatus": "success",
        "cvvResponseCode": "ND",
        "avsResponseCodeZip": "U",
        "avsResponseCodeAddress": "U",
        "avsResponseCodeName": "U"
    }
}

Back to Top


Example Descriptions

For details about the above examples, see:

Auth Capture with fraud info

This example shows a basic Auth Capture request, containing the minimum required fields for a one-time payment using a credit card. It includes the required fraud info in the transactionFraudInfo property within the cardTransaction object. See transactionFraudInfo.

An additional example with enterprise fraud info is above. Enterprise fraud info is supported only for merchants who have signed up for the Enterprise-level fraud service from BlueSnap. See Fraud prevention.

Auth Capture with vaulted shopper

To perform an Auth Capture request with an existing vaulted shopper, you'll need to include the vaultedShopperId property within the cardTransaction object. When specifying a credit card for a vaulted shopper, you must include the cardLastFourDigits and cardType properties within the creditCard object.

Above are two vaulted shopper examples. The first is with a vaulted shopper who only has one credit card, so there is no need to specify which credit card to charge. The second is with a vaulted shopper who has multiple cards, so the request must indicate which card to charge.

Auth Capture with metadata

To send metadata for the transaction, you'll need to include the transactionMetaData property within the cardTransaction object. You can include up to 20 metadata key-value pairs in each transactionMetaData property.

Above is an example of a request with metadata, including state tax, city tax, and the shipping amount.

Auth Capture with Merchant Transaction ID

You may wish to assign your own ID to each transaction, for example in order to track the transactions in your own internal systems. To do this, you'll need to include the merchantTransactionId property within the cardTransaction object.

Above is an example of a request that includes a Merchant Transaction ID (MTI), along with the minimum required fields for a one-time payment using a credit card.

Auth Capture with wallet ID

If the shopper is paying via MasterPass or Visa Checkout, you can include the walletIdin the request. For details, see:

Above is an example of a request with a MasterPass wallet.

Note

When you include the wallet ID in the request, a vaulted shopper will be automatically created and the vaulted shopper ID will be returned to you in the response.

If you prefer to save the wallet information in an existing shopper, it is recommended to instead send a Create Vaulted Shopper request with the wallet ID and then use that vaulted shopper in your Auth Capture request.

Auth Capture with encrypted credit card

Your PCI compliance requirements and API permission level may require that you send credit card data in encrypted format only. To do this, you'll need to include theencryptedCardNumber and encryptedSecurityCode properties within the cardTransaction object.

Above is an example of a request with an encrypted credit card number.

Auth Capture with Hosted Payment Fields token

If you are using BlueSnap's Hosted Payment Fields, you can process the shopper's payment using the information from the Hosted Payment Fields by including the token within the pfToken property in your request.

Above is an example of a request with the Hosted Payment Fields token.

Note that the response will look like a regular response for a credit card, with the card's last four digits and card type.

Auth Capture with Merchant Shopper ID

You may wish to assign your own Shopper ID to each transaction, for example in order to track the transactions in your own internal systems. To do this, you'll need to include the merchantShopperId property within the cardTransaction object.

Above is an example of a request that includes a Merchant Shopper ID, along with the minimum required fields for a one-time payment using a credit card.

Auth Capture with Vendor Info

This example shows an Auth Capture request within a marketplace. If you are a marketplace merchant, you will include vendorInfo in the request to process a transaction between a shopper and a specific vendor within your marketplace (see vendorInfo).

In the above request example, only the required vendorId is included in the vendorInfo container. By leaving out the commissionPercent property, the transaction will default to the value set during the creation of the vendor.

Auth Capture with Apple Pay

This example shows an Auth Capture request with Apple Pay. In the request, include encodedPaymentToken inside wallet > applePay. Instructions on how to extract the encodedPaymentToken can be found in the Apple Pay Guide.

Note: To test Apple Pay, follow the steps in the Apple Pay Guide. The API Explorer does not support Apple Pay testing.

Auth Capture with vaulted shopper & CVV

You may wish to collect CVV on your checkout form from all your shoppers – even from returning shoppers. One reason you might choose to do this is because transactions with CVV generally result in higher success rates.

Above is an example of sending CVV in a transaction request involving a returning shopper.
Include vaultedShopperId and CVV in the request as in the example.

Auth Capture with vaulted shopper & new card

This example shows an Auth Capture request with a vaulted shopper and a new card. If you include vaultedShopperId and a new card in the request, the shopper's card will be charged and the card details will be added to the shopper.



Back to Top


API Explorer

To test out a call, enter the request content below and then click Try it!

Tip: Use the JSON code below as a starting point. You can enter different parameters and test credit card numbers to see how your test scenario would work. The request headers, including authorization, are already built in for you in this test area, so you should not include them here.

{
    "amount": 11,
    "recurringTransaction": "ECOMMERCE",
    "softDescriptor": "DescTest",
    "cardHolderInfo": {
        "firstName": "test first name",
        "lastName": "test last name", 
      	"zip": "123456"
    },
    "currency": "USD",
    "creditCard": {
        "expirationYear": 2018,
        "securityCode": 837,
        "expirationMonth": "02",
        "cardNumber": "4263982640269299"
    },
    "cardTransactionType": "AUTH_CAPTURE"
}


User Information

Try It Out


post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}