{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/recurring/subscriptions","auth":"optional","settings":"57ee593a21ceb20e0061959e","results":{"codes":[{"language":"text","code":""}]},"method":"post","examples":{"codes":[]},"params":[]},"next":{"description":"","pages":[]},"title":"Create Subscription","type":"endpoint","slug":"create-subscription","excerpt":"","body":"The Create Subscription request enables you to set up a subscription, which associates a shopper with a plan to bill on an ongoing basis.\n\nFor more information about working with subscriptions, see the [Subscriptions tutorial](doc:subscription-management#section-tutorial-subscriptions).\n[block:callout]\n{\n \"type\": \"success\",\n \"title\": \"Testing subscription charges in sandbox\",\n \"body\": \"After creating a subscription in sandbox, you can simulate a recurring charge event and trigger associated IPNs, emails, and invoices. Refer to the [Subscriptions Guide](/v8976-JSON/docs/subscription-management#section-testing-your-subscriptions) to learn how.\"\n}\n[/block]\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 **[subscription](doc:recurring-subscription)** object, with the following:\n\n `payerInfo` *object* optional - do not include if sending `vaultedShopperId` (refer to [payerInfo](doc:payer-info))\n `vaultedShopperId` *integer* optional - do not include if sending `payerInfo`\n `vendorsInfo` *object* optional (refer to [vendorsInfo](/v8976-JSON/docs/vendorsinfo))\n `paymentSource` *object* <span style=\"color:#F37500\">**required** for `payerInfo`</span>; optional for `vaultedShopperId` (refer to [paymentSource](doc:payment-source))\n `authorizedByShopper` *boolean* <span style=\"color:#F37500\">**required**</span> for ACH/ECP and SEPA Direct Debit value must be **true**\n `overrideInitialChargeAmount` *decimal* optional\n `overrideRecurringChargeAmount` *decimal* optional\n `quantity` *integer* optional\n `overrideTrialPeriodDays` *integer* optional\n `softDescriptor` *string* optional\n `descriptorPhoneNumber` *string* optional\n `planId` *integer* <span style=\"color:#F37500\">**required**</span>\n `threeDSecure` *object* optional (refer to [threeDSecure](doc:threedsecure))\n `transactionFraudInfo` *object* optional (refer to [transactionFraudInfo](doc:transaction-fraud-info))\n `level3Data` *object* optional (refer to [level3Data](doc:level3data))\n `initialTaxReference` *string* optional\n `recurringTaxReference` *string* optional\n `networkTransactionInfo` *object* optional (refer to [networkTransactionInfo](doc:network-transaction-info))\n `transactionInitiator` *string* optional\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the **[subscription](doc:recurring-subscription)** object.\nThe `subscriptionId` appears in the response body and the location header (unless ACH or SEPA DD was used).\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/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"payerInfo\\\": {\\n \\\"zip\\\": 02453,\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"phone\\\": 1234567890\\n },\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2023,\\n \\\"securityCode\\\": 111,\\n \\\"expirationMonth\\\": \\\"07\\\",\\n \\\"cardNumber\\\": 4111111111111111\\n }}},\\n \\\"planId\\\": 2283845,\\n \\\"transactionFraudInfo\\\": {\\n \\\"fraudSessionId\\\": 1234,\\n \\\"customerId\\\": \\\"121341\\\",\\n \\\"customerCreationDate\\\": \\\"2021-08-05\\\"\\n }\\n}'\",\n \"language\": \"curl\",\n \"name\": \"Create Subscription Request: with new shopper\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"vaultedShopperId\\\": 20769005,\\n \\\"overrideInitialChargeAmount\\\": 10.5,\\n \\\"overrideRecurringChargeAmount\\\": 29.99,\\n \\\"quantity\\\": 2,\\n \\\"overrideTrialPeriodDays\\\": 10,\\n \\\"softDescriptor\\\": \\\"Merchant name\\\",\\n \\\"planId\\\": 2283845,\\n \\\"transactionFraudInfo\\\": {\\n \\\"shopperIpAddress\\\": \\\"123.12.134.1\\\",\\n \\\"fraudSessionId\\\": 1234,\\n \\\"company\\\": \\\"Company Name\\\",\\n \\\"shippingContactInfo\\\": {\\n \\\"zip\\\": 02453,\\n \\\"country\\\": \\\"US\\\",\\n \\\"firstName\\\": \\\"Doe\\\",\\n \\\"lastName\\\": \\\"John\\\",\\n \\\"city\\\": \\\"Juneau\\\",\\n \\\"address2\\\": \\\"Apt 2\\\",\\n \\\"address1\\\": \\\"1 Main St\\\",\\n \\\"state\\\": \\\"AK\\\"\\n }\\n }\\n}\",\n \"language\": \"curl\",\n \"name\": \"with vaulted shopper and optional fields\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"vaultedShopperId\\\": 20769005,\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"9299\\\",\\n \\\"cardType\\\": \\\"VISA\\\"\\n }}},\\n \\\"planId\\\": 2283845\\n}\",\n \"language\": \"curl\",\n \"name\": \"with vaulted shopper and specific payment method\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{ \\n \\\"payerInfo\\\":{ \\n \\\"zip\\\":02453,\\n \\\"firstName\\\":\\\"John\\\",\\n \\\"lastName\\\":\\\"Doe\\\",\\n \\\"phone\\\":1234567890\\n },\\n \\\"paymentSource\\\":{ \\n \\\"pfToken\\\":\\\"339110a75e2cdbb5f5f2cea8d7cd8af261ad7c89fb0ce1aae_\\\"\\n },\\n \\\"planId\\\":2186278\\n}'\",\n \"language\": \"curl\",\n \"name\": \"with new shopper and hosted pay fields\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"payerInfo\\\": {\\n \\\"zip\\\": 02453,\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"phone\\\": 1234567890\\n },\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2023,\\n \\\"securityCode\\\": 111,\\n \\\"expirationMonth\\\": \\\"07\\\",\\n \\\"cardNumber\\\": 4111111111111111\\n }\\n }\\n },\\n \\\"planId\\\": 2283845,\\n \\\"transactionFraudInfo\\\": {\\n \\\"fraudSessionId\\\": 1234\\n },\\n \\\"vendorsInfo\\\": {\\n \\\"vendorInfo\\\": [{ \\\"vendorId\\\": \\\"10398032\\\" }]\\n }\\n}'\",\n \"language\": \"curl\",\n \"name\": \"with new shopper and vendors info\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n\\t\\\"planId\\\": 2193990,\\n\\t\\\"paymentSource\\\": {\\n\\t\\t\\\"wallet\\\": {\\n\\t\\t\\t\\\"walletType\\\": \\\"APPLE_PAY\\\",\\n\\t\\t\\t\\\"encodedPaymentToken\\\": \\\"eyJiaWxsaW5nQ29udGFjdCI6eyJhZGRyZ...\\\"\\n\\t\\t}\\n\\t}\\n}\",\n \"language\": \"curl\",\n \"name\": \"with Apple Pay\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"planId\\\": 2283845,\\n \\\"authorizedByShopper\\\": true,\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"country\\\": \\\"fr\\\",\\n \\\"zip\\\": \\\"75001\\\",\\n \\\"phone\\\": \\\"1234567890\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"sepaDirectDebitInfo\\\": {\\n \\\"sepaDirectDebit\\\": {\\n \\\"iban\\\": \\\"DE09100100101234567893\\\"\\n }\\n }\\n }\\n}'\",\n \"language\": \"curl\",\n \"name\": \"with SEPA Direct Debit \"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"planId\\\": 2380391,\\n \\\"authorizedByShopper\\\": true,\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"Jane\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"zip\\\": \\\"02453\\\",\\n \\\"phone\\\": \\\"1234567890\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"ecpInfo\\\": {\\n \\\"ecp\\\": {\\n \\\"accountNumber\\\": 4099999992, \\n \\\"routingNumber\\\": \\\"011075150\\\",\\n \\\"accountType\\\": \\\"CONSUMER_CHECKING\\\"\\n }\\n }\\n }\\n}'\",\n \"language\": \"curl\",\n \"name\": \"with ACH/ECP\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"paymentSource\\\": {\\n \\\"wallet\\\": {\\n \\\"walletType\\\": \\\"GOOGLE_PAY\\\",\\n \\\"encodedPaymentToken\\\": \\\"eyJwYXltZW50TWV0aG9kVG9rZW4iOnsilIjoiIn19\\\"\\n }},\\n \\\"planId\\\": 2283845,\\n \\\"transactionFraudInfo\\\": {\\\"fraudSessionId\\\": 1234}\\n}'\",\n \"language\": \"curl\",\n \"name\": \"with Google Pay\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{ \\n \\\"payerInfo\\\":{ \\n \\\"firstName\\\":\\\"PIFirstName\\\",\\n \\\"lastName\\\":\\\"PILastName\\\",\\n \\\"zip\\\":\\\"PIZip\\\",\\n \\\"email\\\":\\\"tt:::at:::gmail.com\\\",\\n \\\"country\\\":\\\"il\\\",\\n \\\"address\\\":\\\"PIaddress1\\\",\\n \\\"address2\\\":\\\"PIaddress2\\\",\\n \\\"city\\\":\\\"PICity\\\"\\n },\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"creditCard\\\":{ \\n \\\"cardNumber\\\":\\\"5555555555554444\\\",\\n \\\"securityCode\\\":\\\"111\\\",\\n \\\"cardType\\\":\\\"MASTERCARD\\\",\\n \\\"expirationMonth\\\":\\\"07\\\",\\n \\\"expirationYear\\\":\\\"2025\\\"\\n },\\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"country\\\":\\\"us\\\",\\n \\\"zip\\\":\\\"BiZip\\\"\\n }\\n }\\n },\\n \\\"planId\\\":2205010\\n}\",\n \"language\": \"curl\",\n \"name\": \"New shopper with different billing\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{ \\n \\\"vaultedShopperId\\\":19641522,\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"creditCard\\\":{ \\n \\\"cardNumber\\\":\\\"5555555555554444\\\",\\n \\\"securityCode\\\":\\\"111\\\",\\n \\\"cardType\\\":\\\"MASTERCARD\\\",\\n \\\"expirationMonth\\\":\\\"07\\\",\\n \\\"expirationYear\\\":\\\"2025\\\"\\n },\\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"country\\\":\\\"us\\\",\\n \\\"zip\\\":\\\"BiZip\\\"\\n }\\n }\\n },\\n \\\"planId\\\":2205010\\n}\",\n \"language\": \"curl\",\n \"name\": \"Vaulted shopper with billing\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"PIFirstName\\\",\\n \\\"lastName\\\": \\\"PILastName\\\",\\n \\\"zip\\\": \\\"PIZip\\\",\\n \\\"email\\\": \\\"[email protected]\\\",\\n \\\"country\\\": \\\"il\\\",\\n \\\"address\\\": \\\"PIaddress1\\\",\\n \\\"address2\\\": \\\"PIaddress2\\\",\\n \\\"city\\\": \\\"PICity\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"pfToken\\\": \\\"2586d05c0479ba1936db771124f74727a418ea5f0841054217fedfc403a76ad0_\\\",\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"BiFirstName\\\",\\n \\\"lastName\\\": \\\"BiLastName\\\",\\n \\\"address1\\\": \\\"BiAddress1\\\",\\n \\\"address2\\\": \\\"BiAddress2\\\",\\n \\\"city\\\": \\\"BiCity\\\",\\n \\\"state\\\": \\\"CA\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"zip\\\": \\\"BiZip\\\"\\n }\\n }\\n },\\n \\\"planId\\\": 2205010\\n}\\n\",\n \"language\": \"curl\",\n \"name\": \"New shopper with hosted fields and different billing\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{ \\n \\\"vaultedShopperId\\\":19641506,\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"pfToken\\\":\\\"5df3b5db58d174315efde493b12afff24e33d3709490a4e99b28046497d95f7f_\\\",\\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"country\\\":\\\"us\\\",\\n \\\"zip\\\":\\\"BiZip\\\"\\n }\\n }\\n },\\n \\\"planId\\\":2205010\\n}\",\n \"language\": \"curl\",\n \"name\": \"Vaulted shopper with hosted fields and different billing\"\n },\n {\n \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n \\\"planId\\\": 2190390,\\n \\\"vaultedShopperId\\\": 19574268,\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\t\\t\\\"creditCard\\\": {\\n \\t\\t\\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\t\\t\\\"cardType\\\": \\\"VISA\\\"\\n \\t\\t}\\n \\t}\\n },\\n \\\"threeDSecure\\\": {\\n \\t\\t\\\"threeDSecureReferenceId\\\":\\\"4851\\\"\\n }\\n}\",\n \"language\": \"curl\",\n \"name\": \"with 3DS ID\"\n }\n ],\n \"sidebar\": true\n}\n[/block]\n###Response Examples\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\\"nextChargeDate\\\": \\\"2016-08-16\\\",\\n \\\"quantity\\\": 1,\\n \\\"charge\\\": {\\n \\\"amount\\\": 100,\\n \\\"vaultedShopperId\\\": 21188909,\\n \\\"chargeInfo\\\": {\\n \\\"fromDate\\\": \\\"2016-08-02\\\",\\n \\\"toDate\\\": \\\"2016-08-16\\\",\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"chargeId\\\": 12117877,\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2023,\\n \\\"cardLastFourDigits\\\": 1111,\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"expirationMonth\\\": \\\"07\\\"\\n }}},\\n \\\"softDescriptor\\\": \\\"BLS*default_descriptor\\\",\\n \\\"planId\\\": 2283845,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"transactionDate\\\": \\\"2016-08-02\\\",\\n \\\"subscriptionId\\\": 8492717,\\n \\\"transactionId\\\": 1012463333\\n },\\n \\\"trialPeriodDays\\\": 14,\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2019,\\n \\\"cardLastFourDigits\\\": 1111,\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\t\\\"cardCategory\\\": \\\"CLASSIC\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"expirationMonth\\\": \\\"07\\\"\\n }\\n }},\\n \\\"softDescriptor\\\": \\\"BLS*default_descriptor\\\",\\n \\\"recurringChargeAmount\\\": 29.99,\\n \\\"chargeFrequency\\\": \\\"MONTHLY\\\",\\n \\\"vaultedShopperId\\\": 21188909,\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\"\\n },\\n \\\"initialChargeAmount\\\": 100,\\n \\\"autoRenew\\\": true,\\n \\\"planId\\\": 2283845,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"subscriptionId\\\": 8492717,\\n \\\"fraudResultInfo\\\": {\\\"deviceDataCollector\\\": \\\"Y\\\"},\\n \\\"status\\\": \\\"ACTIVE\\\"\\n}\",\n \"language\": \"json\",\n \"name\": \"200 OK Response: Create Subscription\"\n },\n {\n \"code\": \"{\\n \\\"subscriptionId\\\": 39555010,\\n \\\"planId\\\": 2193990,\\n \\\"vaultedShopperId\\\": 19598232,\\n \\\"status\\\": \\\"ACTIVE\\\",\\n \\\"quantity\\\": 1,\\n \\\"softDescriptor\\\": \\\"BLS*CodeDiggers\\\",\\n \\\"chargeFrequency\\\": \\\"WEEKLY\\\",\\n \\\"recurringChargeAmount\\\": 4.20,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"autoRenew\\\": true,\\n \\\"nextChargeDate\\\": \\\"2021-09-23\\\",\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Smith\\\",\\n \\\"email\\\": \\\"[email protected]\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"state\\\": \\\"MA\\\",\\n \\\"address\\\": \\\"800 South Street\\\",\\n \\\"city\\\": \\\"Waltham\\\",\\n \\\"zip\\\": \\\"01822\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"wallet\\\": {\\n \\\"walletType\\\": \\\"APPLE_PAY\\\",\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Smith\\\",\\n \\\"address1\\\": \\\"800 South Street\\\",\\n \\\"city\\\": \\\"Waltham\\\",\\n \\\"state\\\": \\\"MA\\\",\\n \\\"zip\\\": \\\"01822\\\",\\n \\\"country\\\": \\\"us\\\"\\n },\\n \\\"applePay\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1471\\\",\\n \\\"cardType\\\": \\\"MASTERCARD\\\",\\n \\\"cardSubType\\\": \\\"DEBIT\\\",\\n \\\"cardCategory\\\": \\\"ACQUIRER ONLY\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"cardRegulated\\\": \\\"N\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\",\\n \\\"issuingBank\\\": \\\"MASTERCARD - MEMBER TEST FACILITY\\\",\\n \\\"dpanLastFourDigits\\\": \\\"6937\\\",\\n \\\"dpanExpirationMonth\\\": \\\"9\\\",\\n \\\"dpanExpirationYear\\\": \\\"2022\\\"\\n },\\n \\\"tokenizedCard\\\": {\\n \\\"dpanExpirationMonth\\\": \\\"9\\\",\\n \\\"dpanExpirationYear\\\": \\\"2022\\\",\\n \\\"dpanLastFourDigits\\\": \\\"6937\\\",\\n \\\"cardLastFourDigits\\\": \\\"1471\\\",\\n \\\"cardType\\\": \\\"MASTERCARD\\\",\\n \\\"cardSubType\\\": \\\"DEBIT\\\",\\n \\\"cardCategory\\\": \\\"ACQUIRER ONLY\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"cardRegulated\\\": \\\"N\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\",\\n \\\"issuingBank\\\": \\\"MASTERCARD - MEMBER TEST FACILITY\\\"\\n }\\n }\\n },\\n \\\"charge\\\": {\\n \\\"chargeId\\\": 175051,\\n \\\"subscriptionId\\\": 39555010,\\n \\\"planId\\\": 2193990,\\n \\\"vaultedShopperId\\\": 19598232,\\n \\\"transactionId\\\": \\\"38599976\\\",\\n \\\"transactionDate\\\": \\\"2021-09-16\\\",\\n \\\"amount\\\": 4.20,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"softDescriptor\\\": \\\"BLS*CodeDiggers\\\",\\n \\\"paymentSource\\\": {\\n \\\"wallet\\\": {\\n \\\"walletType\\\": \\\"APPLE_PAY\\\",\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Smith\\\",\\n \\\"address1\\\": \\\"800 South Street\\\",\\n \\\"city\\\": \\\"Waltham\\\",\\n \\\"state\\\": \\\"MA\\\",\\n \\\"zip\\\": \\\"01822\\\",\\n \\\"country\\\": \\\"us\\\"\\n },\\n \\\"applePay\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1471\\\",\\n \\\"cardType\\\": \\\"MASTERCARD\\\",\\n \\\"cardSubType\\\": \\\"DEBIT\\\",\\n \\\"cardCategory\\\": \\\"ACQUIRER ONLY\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"cardRegulated\\\": \\\"N\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\",\\n \\\"issuingBank\\\": \\\"MASTERCARD - MEMBER TEST FACILITY\\\",\\n \\\"dpanLastFourDigits\\\": \\\"6937\\\",\\n \\\"dpanExpirationMonth\\\": \\\"9\\\",\\n \\\"dpanExpirationYear\\\": \\\"2022\\\"\\n },\\n \\\"tokenizedCard\\\": {\\n \\\"dpanExpirationMonth\\\": \\\"9\\\",\\n \\\"dpanExpirationYear\\\": \\\"2022\\\",\\n \\\"dpanLastFourDigits\\\": \\\"6937\\\",\\n \\\"cardLastFourDigits\\\": \\\"1471\\\",\\n \\\"cardType\\\": \\\"MASTERCARD\\\",\\n \\\"cardSubType\\\": \\\"DEBIT\\\",\\n \\\"cardCategory\\\": \\\"ACQUIRER ONLY\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"cardRegulated\\\": \\\"N\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\",\\n \\\"issuingBank\\\": \\\"MASTERCARD - MEMBER TEST FACILITY\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\": {\\n \\\"fromDate\\\": \\\"2021-09-16\\\",\\n \\\"toDate\\\": \\\"2021-09-23\\\",\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"SUCCESS\\\",\\n \\\"authorizationCode\\\": \\\"666151\\\"\\n }\\n },\\n \\\"fraudResultInfo\\\": {}\\n}\",\n \"language\": \"json\",\n \"name\": \"with Apple Pay\"\n },\n {\n \"code\": \"{\\n \\\"planId\\\": 2436197,\\n \\\"vaultedShopperId\\\": 21804015,\\n \\\"softDescriptor\\\": \\\"Oooops LTD\\\",\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"country\\\": \\\"fr\\\",\\n \\\"zip\\\": \\\"75001\\\",\\n \\\"phone\\\": \\\"1234567890\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"sepaDirectDebitInfo\\\": {\\n \\\"sepaDirectDebit\\\": {\\n \\\"ibanFirstFour\\\": \\\"DE09\\\",\\n \\\"ibanLastFour\\\": \\\"7893\\\",\\n \\\"mandateId\\\": \\\"Ooo154091\\\",\\n \\\"mandateDate\\\": \\\"25-Jul-17\\\",\\n \\\"preNotificationText\\\": \\\"The amount of 29.99 EUR will be collected using SEPA Direct Debit with Mandate Ooo154091 from your bank account IBAN DE09XXXXXX7893 in the next few days. Please ensure sufficient funds in your account.\\\"\\n }\\n }\\n },\\n \\\"charge\\\": {\\n \\\"planId\\\": 2436197,\\n \\\"vaultedShopperId\\\": 21804015,\\n \\\"transactionId\\\": \\\"1011216623\\\",\\n \\\"transactionDate\\\": \\\"2017-07-25\\\",\\n \\\"amount\\\": 29.99,\\n \\\"currency\\\": \\\"EUR\\\",\\n \\\"softDescriptor\\\": \\\"Oooops LTD\\\",\\n \\\"paymentSource\\\": {\\n \\\"sepaDirectDebitInfo\\\": {\\n \\\"sepaDirectDebit\\\": {\\n \\\"ibanFirstFour\\\": \\\"DE09\\\",\\n \\\"ibanLastFour\\\": \\\"7893\\\",\\n \\\"mandateId\\\": \\\"Ooo154091\\\",\\n \\\"mandateDate\\\": \\\"25-Jul-17\\\",\\n \\\"preNotificationText\\\": \\\"The amount of 29.99 EUR will be collected using SEPA Direct Debit with Mandate Ooo154091 from your bank account IBAN DE09XXXXXX7893 in the next few days. Please ensure sufficient funds in your account.\\\"\\n }\\n }\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"PENDING\\\"\\n }\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"with SEPA Direct Debit \"\n },\n {\n \"code\": \"{\\n \\\"planId\\\": 2380391,\\n \\\"vaultedShopperId\\\": 22330617,\\n \\\"softDescriptor\\\": \\\"default_descriptor\\\",\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"Jane\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"zip\\\": \\\"02453\\\",\\n \\\"phone\\\": \\\"1234567890\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"ecpInfo\\\": {\\n \\\"ecp\\\": {\\n \\\"accountNumber\\\": \\\"4099999992\\\",\\n \\\"routingNumber\\\": \\\"011075150\\\",\\n \\\"accountType\\\": \\\"CONSUMER_CHECKING\\\"\\n }\\n }\\n },\\n \\\"charge\\\": {\\n \\\"planId\\\": 2380391,\\n \\\"vaultedShopperId\\\": 22330617,\\n \\\"transactionId\\\": \\\"1015610101\\\",\\n \\\"transactionDate\\\": \\\"2018-01-25\\\",\\n \\\"amount\\\": 65,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"softDescriptor\\\": \\\"default_descriptor\\\",\\n \\\"paymentSource\\\": {\\n \\\"ecpInfo\\\": {\\n \\\"ecp\\\": {\\n \\\"accountNumber\\\": \\\"4099999992\\\",\\n \\\"routingNumber\\\": \\\"011075150\\\",\\n \\\"accountType\\\": \\\"CONSUMER_CHECKING\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\": {\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"PENDING\\\"\\n }\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"with ACH/ECP\"\n },\n {\n \"code\": \"{\\n \\\"subscriptionId\\\": 39594120,\\n \\\"planId\\\": 2203980,\\n \\\"vaultedShopperId\\\": 19637272,\\n \\\"status\\\": \\\"ACTIVE\\\",\\n \\\"quantity\\\": 1,\\n \\\"softDescriptor\\\": \\\"BLS\\\",\\n \\\"chargeFrequency\\\": \\\"MONTHLY\\\",\\n \\\"recurringChargeAmount\\\": 1.99,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"autoRenew\\\": true,\\n \\\"nextChargeDate\\\": \\\"2018-10-05\\\",\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"test first name\\\",\\n \\\"lastName\\\": \\\"test last name\\\", \\n \\t\\\"zip\\\": \\\"02453\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"state\\\": \\\"MA\\\",\\n \\\"email\\\": \\\"test@gmail.com\\\",\\n \\\"address\\\": \\\"32 some street\\\",\\n \\\"city\\\": \\\"some city\\\",\\n \\\"zip\\\": \\\"02186\\\",\\n \\\"phone\\\": \\\"456276576\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"test first name\\\",\\n \\\"lastName\\\": \\\"test last name\\\", \\n \\t \\\"zip\\\": \\\"02453\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"state\\\": \\\"MA\\\",\\n \\\"address\\\": \\\"32 some street\\\",\\n \\\"city\\\": \\\"some city\\\",\\n \\\"zip\\\": \\\"02186\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"cardCategory\\\": \\\"CLASSIC\\\",\\n \\\"expirationMonth\\\": \\\"09\\\",\\n \\\"expirationYear\\\": \\\"2022\\\"\\n }\\n }\\n },\\n \\\"charge\\\": {\\n \\\"chargeId\\\": 250389,\\n \\\"subscriptionId\\\": 39594120,\\n \\\"planId\\\": 2203980,\\n \\\"vaultedShopperId\\\": 19637272,\\n \\\"transactionId\\\": \\\"38589782\\\",\\n \\\"transactionDate\\\": \\\"2018-09-05\\\",\\n \\\"amount\\\": 1.99,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"softDescriptor\\\": \\\"BLS\\\",\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"cardCategory\\\": \\\"CLASSIC\\\",\\n \\\"expirationMonth\\\": \\\"09\\\",\\n \\\"expirationYear\\\": \\\"2022\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\": {\\n \\\"fromDate\\\": \\\"2018-09-05\\\",\\n \\\"toDate\\\": \\\"2018-10-05\\\",\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"SUCCESS\\\"\\n }\\n },\\n \\\"fraudResultInfo\\\": {\\n \\\"deviceDataCollector\\\": \\\"N\\\"\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"with Google Pay\"\n },\n {\n \"code\": \"{\\n \\\"cardTransactionType\\\": \\\"AUTH_ONLY\\\",\\n \\\"transactionId\\\": \\\"1012751937\\\",\\n \\\"softDescriptor\\\": \\\"BLS*DescTest\\\",\\n \\\"amount\\\": 11,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"cardHolderInfo\\\": {\\n \\\"firstName\\\": \\\"test first name\\\",\\n \\\"lastName\\\": \\\"test last name\\\", \\n \\t\\\"zip\\\": \\\"02453\\\",\\n \\\"country\\\": \\\"us\\\"\\n },\\n \\\"vaultedShopperId\\\": 21289371,\\n \\\"wallet\\\": {\\n \\\"walletType\\\": \\\"GOOGLE_PAY\\\",\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"test first name\\\",\\n \\\"lastName\\\": \\\"test last name\\\",\\n \\\"zip\\\": \\\"02453\\\",\\n \\\"country\\\": \\\"us\\\"\\n },\\n \\\"tokenizedCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"dpanExpirationMonth\\\": \\\"9\\\",\\n \\\"dpanExpirationYear\\\": \\\"2025\\\",\\n \\\"dpanLastFourDigits\\\": \\\"2222\\\"\\n }\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"success\\\"\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"with Google Pay (tokenized card)\"\n },\n {\n \"code\": \"{ \\n \\\"payerInfo\\\":{ \\n \\\"firstName\\\":\\\"PIFirstName\\\",\\n \\\"lastName\\\":\\\"PILastName\\\",\\n \\\"zip\\\":\\\"PIZip\\\",\\n \\\"email\\\":\\\"[email protected]\\\",\\n \\\"country\\\":\\\"il\\\",\\n \\\"address\\\":\\\"PIaddress1\\\",\\n \\\"address2\\\":\\\"PIaddress2\\\",\\n \\\"city\\\":\\\"PICity\\\"\\n },\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"creditCard\\\":{ \\n \\\"cardNumber\\\":\\\"5555555555554444\\\",\\n \\\"securityCode\\\":\\\"111\\\",\\n \\\"cardType\\\":\\\"MASTERCARD\\\",\\n \\\"expirationMonth\\\":\\\"07\\\",\\n \\\"expirationYear\\\":\\\"2025\\\"\\n },\\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"country\\\":\\\"us\\\",\\n \\\"zip\\\":\\\"BiZip\\\"\\n }\\n }\\n },\\n \\\"planId\\\":2205010\\n}\",\n \"language\": \"json\",\n \"name\": \"New shopper with different billing\"\n },\n {\n \"code\": \"{ \\n \\\"subscriptionId\\\":39598752,\\n \\\"planId\\\":2205010,\\n \\\"vaultedShopperId\\\":19641738,\\n \\\"status\\\":\\\"ACTIVE\\\",\\n \\\"quantity\\\":1,\\n \\\"softDescriptor\\\":\\\"BLS*try\\\",\\n \\\"chargeFrequency\\\":\\\"MONTHLY\\\",\\n \\\"recurringChargeAmount\\\":1.99,\\n \\\"currency\\\":\\\"USD\\\",\\n \\\"autoRenew\\\":true,\\n \\\"nextChargeDate\\\":\\\"2019-02-27\\\",\\n \\\"payerInfo\\\":{ \\n \\\"firstName\\\":\\\"Shevie\\\",\\n \\\"lastName\\\":\\\"Chen\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"zip\\\":\\\"BiZip\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"creditCard\\\":{ \\n \\\"cardLastFourDigits\\\":\\\"4444\\\",\\n \\\"cardType\\\":\\\"MASTERCARD\\\",\\n \\\"binCategory\\\":\\\"CONSUMER\\\",\\n \\\"cardRegulated\\\":\\\"N\\\",\\n \\\"expirationMonth\\\":\\\"07\\\",\\n \\\"expirationYear\\\":\\\"2025\\\",\\n \\\"issuingCountryCode\\\":\\\"BR\\\"\\n }\\n }\\n },\\n \\\"charge\\\":{ \\n \\\"chargeId\\\":251237,\\n \\\"subscriptionId\\\":39598752,\\n \\\"planId\\\":2205010,\\n \\\"vaultedShopperId\\\":19641738,\\n \\\"transactionId\\\":\\\"38597238\\\",\\n \\\"transactionDate\\\":\\\"2019-01-27\\\",\\n \\\"amount\\\":1.99,\\n \\\"currency\\\":\\\"USD\\\",\\n \\\"softDescriptor\\\":\\\"BLS*try\\\",\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"zip\\\":\\\"BiZip\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"creditCard\\\":{ \\n \\\"cardLastFourDigits\\\":\\\"4444\\\",\\n \\\"cardType\\\":\\\"MASTERCARD\\\",\\n \\\"binCategory\\\":\\\"CONSUMER\\\",\\n \\\"expirationMonth\\\":\\\"07\\\",\\n \\\"expirationYear\\\":\\\"2025\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\":{ \\n \\\"fromDate\\\":\\\"2019-01-27\\\",\\n \\\"toDate\\\":\\\"2019-02-27\\\",\\n \\\"chargeType\\\":\\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\":{ \\n \\\"processingStatus\\\":\\\"SUCCESS\\\"\\n }\\n },\\n \\\"fraudResultInfo\\\":{ \\n \\\"deviceDataCollector\\\":\\\"N\\\"\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"Vaulted shopper with billing\"\n },\n {\n \"code\": \"{ \\n \\\"subscriptionId\\\":39598758,\\n \\\"planId\\\":2205010,\\n \\\"vaultedShopperId\\\":19641744,\\n \\\"status\\\":\\\"ACTIVE\\\",\\n \\\"quantity\\\":1,\\n \\\"softDescriptor\\\":\\\"BLS*try\\\",\\n \\\"chargeFrequency\\\":\\\"MONTHLY\\\",\\n \\\"recurringChargeAmount\\\":1.99,\\n \\\"currency\\\":\\\"USD\\\",\\n \\\"autoRenew\\\":true,\\n \\\"nextChargeDate\\\":\\\"2019-02-27\\\",\\n \\\"payerInfo\\\":{ \\n \\\"firstName\\\":\\\"PIFirstName\\\",\\n \\\"lastName\\\":\\\"PILastName\\\",\\n \\\"email\\\":\\\"[email protected]\\\",\\n \\\"country\\\":\\\"il\\\",\\n \\\"address\\\":\\\"PIaddress1\\\",\\n \\\"address2\\\":\\\"PIaddress2\\\",\\n \\\"city\\\":\\\"PICity\\\",\\n \\\"zip\\\":\\\"PIZip\\\"\\n },\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"zip\\\":\\\"BiZip\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"creditCard\\\":{ \\n \\\"cardLastFourDigits\\\":\\\"0005\\\",\\n \\\"cardType\\\":\\\"AMEX\\\",\\n \\\"cardCategory\\\":\\\"CORPORATE\\\",\\n \\\"binCategory\\\":\\\"COMMERCIAL\\\",\\n \\\"cardRegulated\\\":\\\"Y\\\",\\n \\\"issuingBank\\\":\\\"AMERICAN EXPRESS US (CARS)\\\",\\n \\\"expirationMonth\\\":\\\"11\\\",\\n \\\"expirationYear\\\":\\\"2024\\\",\\n \\\"issuingCountryCode\\\":\\\"US\\\"\\n }\\n }\\n },\\n \\\"charge\\\":{ \\n \\\"chargeId\\\":251243,\\n \\\"subscriptionId\\\":39598758,\\n \\\"planId\\\":2205010,\\n \\\"vaultedShopperId\\\":19641744,\\n \\\"transactionId\\\":\\\"38597248\\\",\\n \\\"transactionDate\\\":\\\"2019-01-27\\\",\\n \\\"amount\\\":1.99,\\n \\\"currency\\\":\\\"USD\\\",\\n \\\"softDescriptor\\\":\\\"BLS*try\\\",\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"zip\\\":\\\"BiZip\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"creditCard\\\":{ \\n \\\"cardLastFourDigits\\\":\\\"0005\\\",\\n \\\"cardType\\\":\\\"AMEX\\\",\\n \\\"binCategory\\\":\\\"CONSUMER\\\",\\n \\\"expirationMonth\\\":\\\"11\\\",\\n \\\"expirationYear\\\":\\\"2024\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\":{ \\n \\\"fromDate\\\":\\\"2019-01-27\\\",\\n \\\"toDate\\\":\\\"2019-02-27\\\",\\n \\\"chargeType\\\":\\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\":{ \\n \\\"processingStatus\\\":\\\"SUCCESS\\\"\\n }\\n },\\n \\\"fraudResultInfo\\\":{ \\n \\\"deviceDataCollector\\\":\\\"N\\\"\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"New shopper with hosted fields and different billing\"\n },\n {\n \"code\": \"{ \\n \\\"subscriptionId\\\":39598738,\\n \\\"planId\\\":2205010,\\n \\\"vaultedShopperId\\\":19641724,\\n \\\"status\\\":\\\"ACTIVE\\\",\\n \\\"quantity\\\":1,\\n \\\"softDescriptor\\\":\\\"BLS*try\\\",\\n \\\"chargeFrequency\\\":\\\"MONTHLY\\\",\\n \\\"recurringChargeAmount\\\":1.99,\\n \\\"currency\\\":\\\"USD\\\",\\n \\\"autoRenew\\\":true,\\n \\\"nextChargeDate\\\":\\\"2019-02-27\\\",\\n \\\"payerInfo\\\":{ \\n \\\"firstName\\\":\\\"Shevie\\\",\\n \\\"lastName\\\":\\\"Chen\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"zip\\\":\\\"BiZip\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"creditCard\\\":{ \\n \\\"cardLastFourDigits\\\":\\\"0005\\\",\\n \\\"cardType\\\":\\\"AMEX\\\",\\n \\\"cardCategory\\\":\\\"CORPORATE\\\",\\n \\\"binCategory\\\":\\\"COMMERCIAL\\\",\\n \\\"cardRegulated\\\":\\\"Y\\\",\\n \\\"issuingBank\\\":\\\"AMERICAN EXPRESS US (CARS)\\\",\\n \\\"expirationMonth\\\":\\\"11\\\",\\n \\\"expirationYear\\\":\\\"2024\\\",\\n \\\"issuingCountryCode\\\":\\\"US\\\"\\n }\\n }\\n },\\n \\\"charge\\\":{ \\n \\\"chargeId\\\":251223,\\n \\\"subscriptionId\\\":39598738,\\n \\\"planId\\\":2205010,\\n \\\"vaultedShopperId\\\":19641724,\\n \\\"transactionId\\\":\\\"38597218\\\",\\n \\\"transactionDate\\\":\\\"2019-01-27\\\",\\n \\\"amount\\\":1.99,\\n \\\"currency\\\":\\\"USD\\\",\\n \\\"softDescriptor\\\":\\\"BLS*try\\\",\\n \\\"paymentSource\\\":{ \\n \\\"creditCardInfo\\\":{ \\n \\\"billingContactInfo\\\":{ \\n \\\"firstName\\\":\\\"BiFirstName\\\",\\n \\\"lastName\\\":\\\"BiLastName\\\",\\n \\\"address1\\\":\\\"BiAddress1\\\",\\n \\\"address2\\\":\\\"BiAddress2\\\",\\n \\\"city\\\":\\\"BiCity\\\",\\n \\\"state\\\":\\\"CA\\\",\\n \\\"zip\\\":\\\"BiZip\\\",\\n \\\"country\\\":\\\"us\\\"\\n },\\n \\\"creditCard\\\":{ \\n \\\"cardLastFourDigits\\\":\\\"0005\\\",\\n \\\"cardType\\\":\\\"AMEX\\\",\\n \\\"binCategory\\\":\\\"CONSUMER\\\",\\n \\\"expirationMonth\\\":\\\"11\\\",\\n \\\"expirationYear\\\":\\\"2024\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\":{ \\n \\\"fromDate\\\":\\\"2019-01-27\\\",\\n \\\"toDate\\\":\\\"2019-02-27\\\",\\n \\\"chargeType\\\":\\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\":{ \\n \\\"processingStatus\\\":\\\"SUCCESS\\\"\\n }\\n },\\n \\\"fraudResultInfo\\\":{ \\n \\\"deviceDataCollector\\\":\\\"N\\\"\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"Vaulted shopper with hosted fields and different billing\"\n },\n {\n \"code\": \"{\\n \\\"planId\\\": 2190390,\\n \\\"vaultedShopperId\\\": 19574268,\\n \\\"softDescriptor\\\": \\\"BLS*BS\\\",\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"email\\\": \\\"[email protected]\\\",\\n \\\"country\\\": \\\"us\\\",\\n \\\"state\\\": \\\"CA\\\",\\n \\\"address\\\": \\\"138 Market St\\\",\\n \\\"city\\\": \\\"San Francisco\\\",\\n \\\"zip\\\": \\\"75654\\\",\\n \\\"phone\\\": \\\"14135556789\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"address1\\\": \\\"138 Market St\\\",\\n \\\"city\\\": \\\"San Francisco\\\",\\n \\\"state\\\": \\\"CA\\\",\\n \\\"zip\\\": \\\"75654\\\",\\n \\\"country\\\": \\\"us\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"issuingBank\\\": \\\"JPMORGAN CHASE BANK, N.A.\\\",\\n \\\"expirationMonth\\\": \\\"09\\\",\\n \\\"expirationYear\\\": \\\"2023\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\"\\n }\\n }\\n },\\n \\\"charge\\\": {\\n \\\"planId\\\": 2190390,\\n \\\"vaultedShopperId\\\": 19574268,\\n \\\"transactionId\\\": \\\"38510944\\\",\\n \\\"transactionDate\\\": \\\"2019-07-24\\\",\\n \\\"amount\\\": 10.00,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"softDescriptor\\\": \\\"BLS*BS\\\",\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"address1\\\": \\\"138 Market St\\\",\\n \\\"city\\\": \\\"San Francisco\\\",\\n \\\"state\\\": \\\"CA\\\",\\n \\\"zip\\\": \\\"75654\\\",\\n \\\"country\\\": \\\"us\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"issuingBank\\\": \\\"JPMORGAN CHASE BANK, N.A.\\\",\\n \\\"expirationMonth\\\": \\\"09\\\",\\n \\\"expirationYear\\\": \\\"2019\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\": {\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"SUCCESS\\\"\\n }\\n },\\n \\\"fraudResultInfo\\\": {\\n \\\"deviceDataCollector\\\": \\\"N\\\"\\n },\\n \\\"threeDSecure\\\": {\\n \\\"authenticationResult\\\": \\\"AUTHENTICATION_SUCCEEDED\\\"\\n }\\n}\",\n \"language\": \"json\",\n \"name\": \"with 3DS ID\"\n },\n {\n \"code\": \"{\\n \\\"nextChargeDate\\\": \\\"2016-08-16\\\",\\n \\\"quantity\\\": 1,\\n \\\"charge\\\": {\\n \\\"amount\\\": 100,\\n \\\"vaultedShopperId\\\": 21188909,\\n \\\"chargeInfo\\\": {\\n \\\"fromDate\\\": \\\"2016-08-02\\\",\\n \\\"toDate\\\": \\\"2016-08-16\\\",\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"chargeId\\\": 12117877,\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2023,\\n \\\"cardLastFourDigits\\\": 1111,\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"expirationMonth\\\": \\\"07\\\"\\n }}},\\n \\\"softDescriptor\\\": \\\"BLS*default_descriptor\\\",\\n \\\"planId\\\": 2283845,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"transactionDate\\\": \\\"2016-08-02\\\",\\n \\\"subscriptionId\\\": 8492717,\\n \\\"transactionId\\\": 1012463333\\n },\\n \\\"trialPeriodDays\\\": 14,\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2019,\\n \\\"cardLastFourDigits\\\": 1111,\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\t\\\"cardCategory\\\": \\\"CLASSIC\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"expirationMonth\\\": \\\"07\\\"\\n }\\n }},\\n \\\"softDescriptor\\\": \\\"BLS*default_descriptor\\\",\\n \\\"recurringChargeAmount\\\": 29.99,\\n \\\"chargeFrequency\\\": \\\"MONTHLY\\\",\\n \\\"vaultedShopperId\\\": 21188909,\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\"\\n },\\n \\\"initialChargeAmount\\\": 100,\\n \\\"autoRenew\\\": true,\\n \\\"planId\\\": 2283845,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"subscriptionId\\\": 8492717,\\n \\\"processingInfo\\\": {\\\"authorizationCode\\\": \\\"654321\\\"},\\n \\\"fraudResultInfo\\\": {\\\"deviceDataCollector\\\": \\\"Y\\\"},\\n \\\"status\\\": \\\"ACTIVE\\\"\\n}\",\n \"language\": \"json\",\n \"name\": \"with Authorization Code\"\n },\n {\n \"code\": \"{\\n \\\"subscriptionId\\\": 19752551, \\n \\\"planId\\\": 2283845,\\n \\\"vaultedShopperId\\\": 27567993,\\n \\\"status\\\": \\\"ACTIVE\\\",\\n \\\"quantity\\\": 1,\\n \\\"softDescriptor\\\": \\\"BLS*default_descriptor\\\",\\n \\\"vendorsInfo\\\": {\\n \\\"vendorInfo\\\": [\\n {\\n \\\"vendorId\\\": 10398032,\\n \\\"commissionPercent\\\": 90.2\\n }\\n ]\\n },\\n \\\"chargeFrequency\\\": \\\"MONTHLY\\\",\\n \\\"trialPeriodDays\\\": \\\"14\\\",\\n \\\"recurringChargeAmount\\\": 29.99,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"initialChargeAmount\\\": 100.0,\\n \\\"autoRenew\\\": true,\\n \\\"nextChargeDate\\\": \\\"2020-06-09\\\",\\n \\\"payerInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"zip\\\": \\\"02453\\\",\\n \\\"phone\\\": \\\"1234567890\\\"\\n },\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"zip\\\": \\\"12345\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"cardRegulated\\\": \\\"Y\\\",\\n \\\"issuingBank\\\": \\\"JPMORGAN CHASE BANK, N.A.\\\",\\n \\\"expirationMonth\\\": \\\"07\\\",\\n \\\"expirationYear\\\": \\\"2023\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\"\\n }\\n }\\n },\\n \\\"charge\\\": {\\n \\\"chargeId\\\": 18319019,\\n \\\"subscriptionId\\\": 19752551,\\n \\\"planId\\\": 2283845,\\n \\\"vaultedShopperId\\\": 27567993,\\n \\\"transactionId\\\": \\\"1031082549\\\",\\n \\\"transactionDate\\\": \\\"2020-05-26\\\",\\n \\\"amount\\\": 100.0,\\n \\\"currency\\\": \\\"USD\\\",\\n \\\"softDescriptor\\\": \\\"BLS*default_descriptor\\\",\\n \\\"paymentSource\\\": {\\n \\\"creditCardInfo\\\": {\\n \\\"billingContactInfo\\\": {\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"zip\\\": \\\"02453\\\"\\n },\\n \\\"creditCard\\\": {\\n \\\"cardLastFourDigits\\\": \\\"1111\\\",\\n \\\"cardType\\\": \\\"VISA\\\",\\n \\\"cardSubType\\\": \\\"CREDIT\\\",\\n \\\"binCategory\\\": \\\"CONSUMER\\\",\\n \\\"cardRegulated\\\": \\\"Y\\\",\\n \\\"issuingBank\\\": \\\"JPMORGAN CHASE BANK, N.A.\\\",\\n \\\"expirationMonth\\\": \\\"07\\\",\\n \\\"expirationYear\\\": \\\"2023\\\",\\n \\\"issuingCountryCode\\\": \\\"us\\\"\\n }\\n }\\n },\\n \\\"chargeInfo\\\": {\\n \\\"fromDate\\\": \\\"2020-05-26\\\",\\n \\\"toDate\\\": \\\"2020-06-09\\\",\\n \\\"chargeType\\\": \\\"INITIAL\\\"\\n },\\n \\\"processingInfo\\\": {\\n \\\"processingStatus\\\": \\\"SUCCESS\\\",\\n \\\"authorizationCode\\\": \\\"654321\\\"\\n },\\n \\\"vendorsInfo\\\": {\\n \\\"vendorInfo\\\": [\\n {\\n \\\"vendorId\\\": 10398032,\\n \\\"commissionPercent\\\": 90.2\\n }\\n ]\\n }\\n },\\n \\\"fraudResultInfo\\\": {}\\n}\",\n \"language\": \"json\",\n \"name\": \"with new shopper and vendors info\"\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\n\n###Create Subscription: with new shopper\nThis example shows a basic Create Subscription request for a new shopper, with details about the shopper and their payment method. \n\n###Create Subscription: with vaulted shopper and optional fields\nThis example shows a Create Subscription request with an existing vaulted shopper who has only one saved payment method, so there is no need to specify which payment method to use.\n\nThis example request also includes all optional subscription fields, such as quantity, soft descriptor and the various override fields. The override values take precedence over the settings at the plan level, and they apply only to this subscription. \n\n###Create Subscription: with vaulted shopper and specific payment method\nThis example shows a Create Subscription request with an existing vaulted shopper who has multiple saved payment methods, so you must specify which payment method to use.\n\n### Create Subscription: with new shopper and Hosted Payment Fields\nThis example shows a Create Subscription request with a new shopper whose card information was collected using [Hosted Payment Fields](/v8976-Tools/docs/hosted-payment-fields). Include `pfToken` in the request with its value set to the Hosted Payment Fields token. \n\n### Create Subscription: with new shopper and vendors info\nThis example shows a Create Subscription request with a Marketplace vendor. Include `vendorsInfo` in the request to process a transaction involving one or more vendors. For more details, refer to the [Marketplace Guide](/docs/marketplace-overview).\n\n###Create Subscription: with Apple Pay\nThis example shows a Create Subscription request with an Apple Pay wallet. In the request, include the `encodedPaymentToken` inside `paymentSource` > `wallet`, also supply `walletType` of `APPLE_PAY` there. Refer to the [Apple Pay Guide](/docs/apple-pay#section-implementing-apple-pay-in-your-website-or-ios-app) for more information.\n\n**Note**: To test Apple Pay, follow the steps in the [Apple Pay Guide](/docs/apple-pay#section-implementing-apple-pay-in-your-website-or-ios-app). The API Explorer does not support Apple Pay testing. \n\n###Create Subscription: with SEPA Direct Debit\nThis example shows a Create Subscription request with a new shopper with the SEPA Direct Debit payment method. In the request, include `authorizedByShopper` with a value set to **true** to indicate that you've collected the shopper's [mandate acceptance](/docs/sepa-direct-debit#section-step-1-collect-a-mandate-acceptance-from-your-shopper). Include the shopper's bank account details within `paymentSource` > `sepaDirectDebitInfo` > `sepaDirectDebit`. \n\n**Note:** `subscriptionId` will not be returned in the response. The subscription ID will be created when the shopper's account is debited (typically within 5 - 6 business days). You will then be informed of the subscription ID via `Charge` webhook or via [Retrieve Specific Charge](doc:retrieve-specific-charge) request. \n\n###Create Subscription: with ACH/ECP\nThis example shows a Create Subscription request with a new shopper with the ACH/ECP payment method. In the request, include `authorizedByShopper` with a value set to **true** to indicate that you've collected the shopper's permission to debit their account. Include the shopper's bank account details within `paymentSource` > `ecpInfo` > `ecp`. If you would like to process the transaction for a returning shopper, pass an empty `ecpInfo` object. \n\n**Note:** `subscriptionId` will not be returned in the response. The subscription ID will be created when the shopper's account is debited (typically within 2 business days). You will then be informed of the subscription ID via `Charge` webhook or via [Retrieve Specific Charge](doc:retrieve-specific-charge) request. \n\n###Create Subscription: with Google Pay™\nThis example shows a Create Subscription request with a Google Pay wallet. In the request, include `walletType` = GOOGLE_PAY and `encodedPaymentToken` inside `paymentSource` > `wallet`. See the [Google Pay Guide](/docs/google-pay) for more information.\n\n###New shopper with different billing\nThis example shows a Create Subscription request with a new shopper whose the shopper contact details are different from the credit card billing information.\n\n###Vaulted shopper with billing\nThis example shows a Create Subscription request for an existing shopper with existing credit card information.\n\n###New shopper with hosted fields and different billing\nThis example shows a Create Subscription request for Hosted Payment Fields for a new shopper whose the shopper contact details are different from the credit card billing information. \n\n###Vaulted shopper with hosted fields and different billing\nThis example shows a Create Subscription request for Hosted Payment Fields for a an existing shopper with existing credit card information.\n\n<br>\n\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 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 \\\"payerInfo\\\": {\\n \\\"zip\\\": 02453,\\n \\\"firstName\\\": \\\"John\\\",\\n \\\"lastName\\\": \\\"Doe\\\",\\n \\\"phone\\\": 1234567890\\n },\\n \\\"paymentSource\\\": {\\\"creditCardInfo\\\": {\\\"creditCard\\\": {\\n \\\"expirationYear\\\": 2019,\\n \\\"securityCode\\\": 111,\\n \\\"expirationMonth\\\": \\\"07\\\",\\n \\\"cardNumber\\\": 4111111111111111\\n }}},\\n \\\"planId\\\": 2283845\\n}\",\n \"language\": \"json\"\n }\n ]\n}\n[/block]","updates":["5f990198e27a1700292dec6d"],"order":5,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"628531cd1258c8003f6dd25e","project":"57336fd5a6a9c40e00e13a0b","version":{"version":"8976-JSON","version_clean":"8976.0.0-JSON","codename":"3.42 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["628531cd1258c8003f6dd1bf","628531cd1258c8003f6dd1c0","628531cd1258c8003f6dd1c1","628531cd1258c8003f6dd1c2","628531cd1258c8003f6dd1c3","628531cd1258c8003f6dd1c4","628531cd1258c8003f6dd1c5","628531cd1258c8003f6dd1c6","628531cd1258c8003f6dd1c7","628531cd1258c8003f6dd1c8","628531cd1258c8003f6dd1c9","628531cd1258c8003f6dd1ca","628531cd1258c8003f6dd1cb","628531cd1258c8003f6dd1cc","628531cd1258c8003f6dd1cd","628531cd1258c8003f6dd1ce","628531cd1258c8003f6dd1cf","628531cd1258c8003f6dd1d0","628531cd1258c8003f6dd1d1","628531cd1258c8003f6dd1d2"],"_id":"628531cd1258c8003f6dd27d","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"622783372cd60c003782d77e","createdAt":"2018-04-24T15:22:41.561Z","releaseDate":"2018-04-24T15:22:41.561Z"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Subscriptions","slug":"subscriptions","order":11,"from_sync":false,"reference":false,"_id":"628531cd1258c8003f6dd1c6","version":"628531cd1258c8003f6dd27d","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2016-07-27T10:22:06.636Z","__v":0},"user":"5beb1b96bc2003003ecd645e","createdAt":"2019-07-25T16:42:39.228Z","__v":1,"parentDoc":null}
postCreate Subscription
Definition
Documentation
The Create Subscription request enables you to set up a subscription, which associates a shopper with a plan to bill on an ongoing basis.
For more information about working with subscriptions, see the Subscriptions tutorial.
Testing subscription charges in sandbox
After creating a subscription in sandbox, you can simulate a recurring charge event and trigger associated IPNs, emails, and invoices. Refer to the Subscriptions Guide to learn how.
Request Content
Send a subscription object, with the following:
payerInfo
object optional - do not include if sending vaultedShopperId
(refer to payerInfo)
vaultedShopperId
integer optional - do not include if sending payerInfo
vendorsInfo
object optional (refer to vendorsInfo)
paymentSource
object required for payerInfo
; optional for vaultedShopperId
(refer to paymentSource)
authorizedByShopper
boolean required for ACH/ECP and SEPA Direct Debit value must be true
overrideInitialChargeAmount
decimal optional
overrideRecurringChargeAmount
decimal optional
quantity
integer optional
overrideTrialPeriodDays
integer optional
softDescriptor
string optional
descriptorPhoneNumber
string optional
planId
integer required
threeDSecure
object optional (refer to threeDSecure)
transactionFraudInfo
object optional (refer to transactionFraudInfo)
level3Data
object optional (refer to level3Data)
initialTaxReference
string optional
recurringTaxReference
string optional
networkTransactionInfo
object optional (refer to networkTransactionInfo)
transactionInitiator
string optional
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the subscription object.
The subscriptionId
appears in the response body and the location header (unless ACH or SEPA DD was used).
Examples
Request Examples
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"payerInfo": {
"zip": 02453,
"firstName": "John",
"lastName": "Doe",
"phone": 1234567890
},
"paymentSource": {"creditCardInfo": {"creditCard": {
"expirationYear": 2023,
"securityCode": 111,
"expirationMonth": "07",
"cardNumber": 4111111111111111
}}},
"planId": 2283845,
"transactionFraudInfo": {
"fraudSessionId": 1234,
"customerId": "121341",
"customerCreationDate": "2021-08-05"
}
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"vaultedShopperId": 20769005,
"overrideInitialChargeAmount": 10.5,
"overrideRecurringChargeAmount": 29.99,
"quantity": 2,
"overrideTrialPeriodDays": 10,
"softDescriptor": "Merchant name",
"planId": 2283845,
"transactionFraudInfo": {
"shopperIpAddress": "123.12.134.1",
"fraudSessionId": 1234,
"company": "Company Name",
"shippingContactInfo": {
"zip": 02453,
"country": "US",
"firstName": "Doe",
"lastName": "John",
"city": "Juneau",
"address2": "Apt 2",
"address1": "1 Main St",
"state": "AK"
}
}
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"vaultedShopperId": 20769005,
"paymentSource": {"creditCardInfo": {"creditCard": {
"cardLastFourDigits": "9299",
"cardType": "VISA"
}}},
"planId": 2283845
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"payerInfo":{
"zip":02453,
"firstName":"John",
"lastName":"Doe",
"phone":1234567890
},
"paymentSource":{
"pfToken":"339110a75e2cdbb5f5f2cea8d7cd8af261ad7c89fb0ce1aae_"
},
"planId":2186278
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"payerInfo": {
"zip": 02453,
"firstName": "John",
"lastName": "Doe",
"phone": 1234567890
},
"paymentSource": {
"creditCardInfo": {
"creditCard": {
"expirationYear": 2023,
"securityCode": 111,
"expirationMonth": "07",
"cardNumber": 4111111111111111
}
}
},
"planId": 2283845,
"transactionFraudInfo": {
"fraudSessionId": 1234
},
"vendorsInfo": {
"vendorInfo": [{ "vendorId": "10398032" }]
}
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"planId": 2193990,
"paymentSource": {
"wallet": {
"walletType": "APPLE_PAY",
"encodedPaymentToken": "eyJiaWxsaW5nQ29udGFjdCI6eyJhZGRyZ..."
}
}
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"planId": 2283845,
"authorizedByShopper": true,
"payerInfo": {
"firstName": "John",
"lastName": "Doe",
"country": "fr",
"zip": "75001",
"phone": "1234567890"
},
"paymentSource": {
"sepaDirectDebitInfo": {
"sepaDirectDebit": {
"iban": "DE09100100101234567893"
}
}
}
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"planId": 2380391,
"authorizedByShopper": true,
"payerInfo": {
"firstName": "Jane",
"lastName": "Doe",
"country": "us",
"zip": "02453",
"phone": "1234567890"
},
"paymentSource": {
"ecpInfo": {
"ecp": {
"accountNumber": 4099999992,
"routingNumber": "011075150",
"accountType": "CONSUMER_CHECKING"
}
}
}
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"paymentSource": {
"wallet": {
"walletType": "GOOGLE_PAY",
"encodedPaymentToken": "eyJwYXltZW50TWV0aG9kVG9rZW4iOnsilIjoiIn19"
}},
"planId": 2283845,
"transactionFraudInfo": {"fraudSessionId": 1234}
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"payerInfo":{
"firstName":"PIFirstName",
"lastName":"PILastName",
"zip":"PIZip",
"email":"[email protected]",
"country":"il",
"address":"PIaddress1",
"address2":"PIaddress2",
"city":"PICity"
},
"paymentSource":{
"creditCardInfo":{
"creditCard":{
"cardNumber":"5555555555554444",
"securityCode":"111",
"cardType":"MASTERCARD",
"expirationMonth":"07",
"expirationYear":"2025"
},
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"country":"us",
"zip":"BiZip"
}
}
},
"planId":2205010
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"vaultedShopperId":19641522,
"paymentSource":{
"creditCardInfo":{
"creditCard":{
"cardNumber":"5555555555554444",
"securityCode":"111",
"cardType":"MASTERCARD",
"expirationMonth":"07",
"expirationYear":"2025"
},
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"country":"us",
"zip":"BiZip"
}
}
},
"planId":2205010
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"payerInfo": {
"firstName": "PIFirstName",
"lastName": "PILastName",
"zip": "PIZip",
"email": "[email protected]",
"country": "il",
"address": "PIaddress1",
"address2": "PIaddress2",
"city": "PICity"
},
"paymentSource": {
"creditCardInfo": {
"pfToken": "2586d05c0479ba1936db771124f74727a418ea5f0841054217fedfc403a76ad0_",
"billingContactInfo": {
"firstName": "BiFirstName",
"lastName": "BiLastName",
"address1": "BiAddress1",
"address2": "BiAddress2",
"city": "BiCity",
"state": "CA",
"country": "us",
"zip": "BiZip"
}
}
},
"planId": 2205010
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"vaultedShopperId":19641506,
"paymentSource":{
"creditCardInfo":{
"pfToken":"5df3b5db58d174315efde493b12afff24e33d3709490a4e99b28046497d95f7f_",
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"country":"us",
"zip":"BiZip"
}
}
},
"planId":2205010
}
curl -v -X POST https://sandbox.bluesnap.com/services/2/recurring/subscriptions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"planId": 2190390,
"vaultedShopperId": 19574268,
"paymentSource": {
"creditCardInfo": {
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA"
}
}
},
"threeDSecure": {
"threeDSecureReferenceId":"4851"
}
}
{
"nextChargeDate": "2016-08-16",
"quantity": 1,
"charge": {
"amount": 100,
"vaultedShopperId": 21188909,
"chargeInfo": {
"fromDate": "2016-08-02",
"toDate": "2016-08-16",
"chargeType": "INITIAL"
},
"chargeId": 12117877,
"paymentSource": {"creditCardInfo": {"creditCard": {
"expirationYear": 2023,
"cardLastFourDigits": 1111,
"cardSubType": "CREDIT",
"cardType": "VISA",
"expirationMonth": "07"
}}},
"softDescriptor": "BLS*default_descriptor",
"planId": 2283845,
"currency": "USD",
"transactionDate": "2016-08-02",
"subscriptionId": 8492717,
"transactionId": 1012463333
},
"trialPeriodDays": 14,
"paymentSource": {"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe"
},
"creditCard": {
"expirationYear": 2019,
"cardLastFourDigits": 1111,
"cardSubType": "CREDIT",
"cardCategory": "CLASSIC",
"cardType": "VISA",
"expirationMonth": "07"
}
}},
"softDescriptor": "BLS*default_descriptor",
"recurringChargeAmount": 29.99,
"chargeFrequency": "MONTHLY",
"vaultedShopperId": 21188909,
"payerInfo": {
"firstName": "John",
"lastName": "Doe"
},
"initialChargeAmount": 100,
"autoRenew": true,
"planId": 2283845,
"currency": "USD",
"subscriptionId": 8492717,
"fraudResultInfo": {"deviceDataCollector": "Y"},
"status": "ACTIVE"
}
{
"subscriptionId": 39555010,
"planId": 2193990,
"vaultedShopperId": 19598232,
"status": "ACTIVE",
"quantity": 1,
"softDescriptor": "BLS*CodeDiggers",
"chargeFrequency": "WEEKLY",
"recurringChargeAmount": 4.20,
"currency": "USD",
"autoRenew": true,
"nextChargeDate": "2021-09-23",
"payerInfo": {
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"country": "us",
"state": "MA",
"address": "800 South Street",
"city": "Waltham",
"zip": "01822"
},
"paymentSource": {
"wallet": {
"walletType": "APPLE_PAY",
"billingContactInfo": {
"firstName": "John",
"lastName": "Smith",
"address1": "800 South Street",
"city": "Waltham",
"state": "MA",
"zip": "01822",
"country": "us"
},
"applePay": {
"cardLastFourDigits": "1471",
"cardType": "MASTERCARD",
"cardSubType": "DEBIT",
"cardCategory": "ACQUIRER ONLY",
"binCategory": "CONSUMER",
"cardRegulated": "N",
"issuingCountryCode": "us",
"issuingBank": "MASTERCARD - MEMBER TEST FACILITY",
"dpanLastFourDigits": "6937",
"dpanExpirationMonth": "9",
"dpanExpirationYear": "2022"
},
"tokenizedCard": {
"dpanExpirationMonth": "9",
"dpanExpirationYear": "2022",
"dpanLastFourDigits": "6937",
"cardLastFourDigits": "1471",
"cardType": "MASTERCARD",
"cardSubType": "DEBIT",
"cardCategory": "ACQUIRER ONLY",
"binCategory": "CONSUMER",
"cardRegulated": "N",
"issuingCountryCode": "us",
"issuingBank": "MASTERCARD - MEMBER TEST FACILITY"
}
}
},
"charge": {
"chargeId": 175051,
"subscriptionId": 39555010,
"planId": 2193990,
"vaultedShopperId": 19598232,
"transactionId": "38599976",
"transactionDate": "2021-09-16",
"amount": 4.20,
"currency": "USD",
"softDescriptor": "BLS*CodeDiggers",
"paymentSource": {
"wallet": {
"walletType": "APPLE_PAY",
"billingContactInfo": {
"firstName": "John",
"lastName": "Smith",
"address1": "800 South Street",
"city": "Waltham",
"state": "MA",
"zip": "01822",
"country": "us"
},
"applePay": {
"cardLastFourDigits": "1471",
"cardType": "MASTERCARD",
"cardSubType": "DEBIT",
"cardCategory": "ACQUIRER ONLY",
"binCategory": "CONSUMER",
"cardRegulated": "N",
"issuingCountryCode": "us",
"issuingBank": "MASTERCARD - MEMBER TEST FACILITY",
"dpanLastFourDigits": "6937",
"dpanExpirationMonth": "9",
"dpanExpirationYear": "2022"
},
"tokenizedCard": {
"dpanExpirationMonth": "9",
"dpanExpirationYear": "2022",
"dpanLastFourDigits": "6937",
"cardLastFourDigits": "1471",
"cardType": "MASTERCARD",
"cardSubType": "DEBIT",
"cardCategory": "ACQUIRER ONLY",
"binCategory": "CONSUMER",
"cardRegulated": "N",
"issuingCountryCode": "us",
"issuingBank": "MASTERCARD - MEMBER TEST FACILITY"
}
}
},
"chargeInfo": {
"fromDate": "2021-09-16",
"toDate": "2021-09-23",
"chargeType": "INITIAL"
},
"processingInfo": {
"processingStatus": "SUCCESS",
"authorizationCode": "666151"
}
},
"fraudResultInfo": {}
}
{
"planId": 2436197,
"vaultedShopperId": 21804015,
"softDescriptor": "Oooops LTD",
"payerInfo": {
"firstName": "John",
"lastName": "Doe",
"country": "fr",
"zip": "75001",
"phone": "1234567890"
},
"paymentSource": {
"sepaDirectDebitInfo": {
"sepaDirectDebit": {
"ibanFirstFour": "DE09",
"ibanLastFour": "7893",
"mandateId": "Ooo154091",
"mandateDate": "25-Jul-17",
"preNotificationText": "The amount of 29.99 EUR will be collected using SEPA Direct Debit with Mandate Ooo154091 from your bank account IBAN DE09XXXXXX7893 in the next few days. Please ensure sufficient funds in your account."
}
}
},
"charge": {
"planId": 2436197,
"vaultedShopperId": 21804015,
"transactionId": "1011216623",
"transactionDate": "2017-07-25",
"amount": 29.99,
"currency": "EUR",
"softDescriptor": "Oooops LTD",
"paymentSource": {
"sepaDirectDebitInfo": {
"sepaDirectDebit": {
"ibanFirstFour": "DE09",
"ibanLastFour": "7893",
"mandateId": "Ooo154091",
"mandateDate": "25-Jul-17",
"preNotificationText": "The amount of 29.99 EUR will be collected using SEPA Direct Debit with Mandate Ooo154091 from your bank account IBAN DE09XXXXXX7893 in the next few days. Please ensure sufficient funds in your account."
}
}
},
"processingInfo": {
"processingStatus": "PENDING"
}
}
}
{
"planId": 2380391,
"vaultedShopperId": 22330617,
"softDescriptor": "default_descriptor",
"payerInfo": {
"firstName": "Jane",
"lastName": "Doe",
"country": "us",
"zip": "02453",
"phone": "1234567890"
},
"paymentSource": {
"ecpInfo": {
"ecp": {
"accountNumber": "4099999992",
"routingNumber": "011075150",
"accountType": "CONSUMER_CHECKING"
}
}
},
"charge": {
"planId": 2380391,
"vaultedShopperId": 22330617,
"transactionId": "1015610101",
"transactionDate": "2018-01-25",
"amount": 65,
"currency": "USD",
"softDescriptor": "default_descriptor",
"paymentSource": {
"ecpInfo": {
"ecp": {
"accountNumber": "4099999992",
"routingNumber": "011075150",
"accountType": "CONSUMER_CHECKING"
}
}
},
"chargeInfo": {
"chargeType": "INITIAL"
},
"processingInfo": {
"processingStatus": "PENDING"
}
}
}
{
"subscriptionId": 39594120,
"planId": 2203980,
"vaultedShopperId": 19637272,
"status": "ACTIVE",
"quantity": 1,
"softDescriptor": "BLS",
"chargeFrequency": "MONTHLY",
"recurringChargeAmount": 1.99,
"currency": "USD",
"autoRenew": true,
"nextChargeDate": "2018-10-05",
"payerInfo": {
"firstName": "test first name",
"lastName": "test last name",
"zip": "02453",
"country": "us",
"state": "MA",
"email": "test@gmail.com",
"address": "32 some street",
"city": "some city",
"zip": "02186",
"phone": "456276576"
},
"paymentSource": {
"creditCardInfo": {
"billingContactInfo": {
"firstName": "test first name",
"lastName": "test last name",
"zip": "02453",
"country": "us",
"state": "MA",
"address": "32 some street",
"city": "some city",
"zip": "02186"
},
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"cardCategory": "CLASSIC",
"expirationMonth": "09",
"expirationYear": "2022"
}
}
},
"charge": {
"chargeId": 250389,
"subscriptionId": 39594120,
"planId": 2203980,
"vaultedShopperId": 19637272,
"transactionId": "38589782",
"transactionDate": "2018-09-05",
"amount": 1.99,
"currency": "USD",
"softDescriptor": "BLS",
"paymentSource": {
"creditCardInfo": {
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"cardCategory": "CLASSIC",
"expirationMonth": "09",
"expirationYear": "2022"
}
}
},
"chargeInfo": {
"fromDate": "2018-09-05",
"toDate": "2018-10-05",
"chargeType": "INITIAL"
},
"processingInfo": {
"processingStatus": "SUCCESS"
}
},
"fraudResultInfo": {
"deviceDataCollector": "N"
}
}
{
"cardTransactionType": "AUTH_ONLY",
"transactionId": "1012751937",
"softDescriptor": "BLS*DescTest",
"amount": 11,
"currency": "USD",
"cardHolderInfo": {
"firstName": "test first name",
"lastName": "test last name",
"zip": "02453",
"country": "us"
},
"vaultedShopperId": 21289371,
"wallet": {
"walletType": "GOOGLE_PAY",
"billingContactInfo": {
"firstName": "test first name",
"lastName": "test last name",
"zip": "02453",
"country": "us"
},
"tokenizedCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"dpanExpirationMonth": "9",
"dpanExpirationYear": "2025",
"dpanLastFourDigits": "2222"
}
},
"processingInfo": {
"processingStatus": "success"
}
}
{
"payerInfo":{
"firstName":"PIFirstName",
"lastName":"PILastName",
"zip":"PIZip",
"email":"[email protected]",
"country":"il",
"address":"PIaddress1",
"address2":"PIaddress2",
"city":"PICity"
},
"paymentSource":{
"creditCardInfo":{
"creditCard":{
"cardNumber":"5555555555554444",
"securityCode":"111",
"cardType":"MASTERCARD",
"expirationMonth":"07",
"expirationYear":"2025"
},
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"country":"us",
"zip":"BiZip"
}
}
},
"planId":2205010
}
{
"subscriptionId":39598752,
"planId":2205010,
"vaultedShopperId":19641738,
"status":"ACTIVE",
"quantity":1,
"softDescriptor":"BLS*try",
"chargeFrequency":"MONTHLY",
"recurringChargeAmount":1.99,
"currency":"USD",
"autoRenew":true,
"nextChargeDate":"2019-02-27",
"payerInfo":{
"firstName":"Shevie",
"lastName":"Chen",
"country":"us"
},
"paymentSource":{
"creditCardInfo":{
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"zip":"BiZip",
"country":"us"
},
"creditCard":{
"cardLastFourDigits":"4444",
"cardType":"MASTERCARD",
"binCategory":"CONSUMER",
"cardRegulated":"N",
"expirationMonth":"07",
"expirationYear":"2025",
"issuingCountryCode":"BR"
}
}
},
"charge":{
"chargeId":251237,
"subscriptionId":39598752,
"planId":2205010,
"vaultedShopperId":19641738,
"transactionId":"38597238",
"transactionDate":"2019-01-27",
"amount":1.99,
"currency":"USD",
"softDescriptor":"BLS*try",
"paymentSource":{
"creditCardInfo":{
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"zip":"BiZip",
"country":"us"
},
"creditCard":{
"cardLastFourDigits":"4444",
"cardType":"MASTERCARD",
"binCategory":"CONSUMER",
"expirationMonth":"07",
"expirationYear":"2025"
}
}
},
"chargeInfo":{
"fromDate":"2019-01-27",
"toDate":"2019-02-27",
"chargeType":"INITIAL"
},
"processingInfo":{
"processingStatus":"SUCCESS"
}
},
"fraudResultInfo":{
"deviceDataCollector":"N"
}
}
{
"subscriptionId":39598758,
"planId":2205010,
"vaultedShopperId":19641744,
"status":"ACTIVE",
"quantity":1,
"softDescriptor":"BLS*try",
"chargeFrequency":"MONTHLY",
"recurringChargeAmount":1.99,
"currency":"USD",
"autoRenew":true,
"nextChargeDate":"2019-02-27",
"payerInfo":{
"firstName":"PIFirstName",
"lastName":"PILastName",
"email":"[email protected]",
"country":"il",
"address":"PIaddress1",
"address2":"PIaddress2",
"city":"PICity",
"zip":"PIZip"
},
"paymentSource":{
"creditCardInfo":{
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"zip":"BiZip",
"country":"us"
},
"creditCard":{
"cardLastFourDigits":"0005",
"cardType":"AMEX",
"cardCategory":"CORPORATE",
"binCategory":"COMMERCIAL",
"cardRegulated":"Y",
"issuingBank":"AMERICAN EXPRESS US (CARS)",
"expirationMonth":"11",
"expirationYear":"2024",
"issuingCountryCode":"US"
}
}
},
"charge":{
"chargeId":251243,
"subscriptionId":39598758,
"planId":2205010,
"vaultedShopperId":19641744,
"transactionId":"38597248",
"transactionDate":"2019-01-27",
"amount":1.99,
"currency":"USD",
"softDescriptor":"BLS*try",
"paymentSource":{
"creditCardInfo":{
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"zip":"BiZip",
"country":"us"
},
"creditCard":{
"cardLastFourDigits":"0005",
"cardType":"AMEX",
"binCategory":"CONSUMER",
"expirationMonth":"11",
"expirationYear":"2024"
}
}
},
"chargeInfo":{
"fromDate":"2019-01-27",
"toDate":"2019-02-27",
"chargeType":"INITIAL"
},
"processingInfo":{
"processingStatus":"SUCCESS"
}
},
"fraudResultInfo":{
"deviceDataCollector":"N"
}
}
{
"subscriptionId":39598738,
"planId":2205010,
"vaultedShopperId":19641724,
"status":"ACTIVE",
"quantity":1,
"softDescriptor":"BLS*try",
"chargeFrequency":"MONTHLY",
"recurringChargeAmount":1.99,
"currency":"USD",
"autoRenew":true,
"nextChargeDate":"2019-02-27",
"payerInfo":{
"firstName":"Shevie",
"lastName":"Chen",
"country":"us"
},
"paymentSource":{
"creditCardInfo":{
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"zip":"BiZip",
"country":"us"
},
"creditCard":{
"cardLastFourDigits":"0005",
"cardType":"AMEX",
"cardCategory":"CORPORATE",
"binCategory":"COMMERCIAL",
"cardRegulated":"Y",
"issuingBank":"AMERICAN EXPRESS US (CARS)",
"expirationMonth":"11",
"expirationYear":"2024",
"issuingCountryCode":"US"
}
}
},
"charge":{
"chargeId":251223,
"subscriptionId":39598738,
"planId":2205010,
"vaultedShopperId":19641724,
"transactionId":"38597218",
"transactionDate":"2019-01-27",
"amount":1.99,
"currency":"USD",
"softDescriptor":"BLS*try",
"paymentSource":{
"creditCardInfo":{
"billingContactInfo":{
"firstName":"BiFirstName",
"lastName":"BiLastName",
"address1":"BiAddress1",
"address2":"BiAddress2",
"city":"BiCity",
"state":"CA",
"zip":"BiZip",
"country":"us"
},
"creditCard":{
"cardLastFourDigits":"0005",
"cardType":"AMEX",
"binCategory":"CONSUMER",
"expirationMonth":"11",
"expirationYear":"2024"
}
}
},
"chargeInfo":{
"fromDate":"2019-01-27",
"toDate":"2019-02-27",
"chargeType":"INITIAL"
},
"processingInfo":{
"processingStatus":"SUCCESS"
}
},
"fraudResultInfo":{
"deviceDataCollector":"N"
}
}
{
"planId": 2190390,
"vaultedShopperId": 19574268,
"softDescriptor": "BLS*BS",
"payerInfo": {
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"country": "us",
"state": "CA",
"address": "138 Market St",
"city": "San Francisco",
"zip": "75654",
"phone": "14135556789"
},
"paymentSource": {
"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe",
"address1": "138 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "75654",
"country": "us"
},
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"binCategory": "CONSUMER",
"issuingBank": "JPMORGAN CHASE BANK, N.A.",
"expirationMonth": "09",
"expirationYear": "2023",
"issuingCountryCode": "us"
}
}
},
"charge": {
"planId": 2190390,
"vaultedShopperId": 19574268,
"transactionId": "38510944",
"transactionDate": "2019-07-24",
"amount": 10.00,
"currency": "USD",
"softDescriptor": "BLS*BS",
"paymentSource": {
"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe",
"address1": "138 Market St",
"city": "San Francisco",
"state": "CA",
"zip": "75654",
"country": "us"
},
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"binCategory": "CONSUMER",
"issuingBank": "JPMORGAN CHASE BANK, N.A.",
"expirationMonth": "09",
"expirationYear": "2019",
"issuingCountryCode": "us"
}
}
},
"chargeInfo": {
"chargeType": "INITIAL"
},
"processingInfo": {
"processingStatus": "SUCCESS"
}
},
"fraudResultInfo": {
"deviceDataCollector": "N"
},
"threeDSecure": {
"authenticationResult": "AUTHENTICATION_SUCCEEDED"
}
}
{
"nextChargeDate": "2016-08-16",
"quantity": 1,
"charge": {
"amount": 100,
"vaultedShopperId": 21188909,
"chargeInfo": {
"fromDate": "2016-08-02",
"toDate": "2016-08-16",
"chargeType": "INITIAL"
},
"chargeId": 12117877,
"paymentSource": {"creditCardInfo": {"creditCard": {
"expirationYear": 2023,
"cardLastFourDigits": 1111,
"cardSubType": "CREDIT",
"cardType": "VISA",
"expirationMonth": "07"
}}},
"softDescriptor": "BLS*default_descriptor",
"planId": 2283845,
"currency": "USD",
"transactionDate": "2016-08-02",
"subscriptionId": 8492717,
"transactionId": 1012463333
},
"trialPeriodDays": 14,
"paymentSource": {"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe"
},
"creditCard": {
"expirationYear": 2019,
"cardLastFourDigits": 1111,
"cardSubType": "CREDIT",
"cardCategory": "CLASSIC",
"cardType": "VISA",
"expirationMonth": "07"
}
}},
"softDescriptor": "BLS*default_descriptor",
"recurringChargeAmount": 29.99,
"chargeFrequency": "MONTHLY",
"vaultedShopperId": 21188909,
"payerInfo": {
"firstName": "John",
"lastName": "Doe"
},
"initialChargeAmount": 100,
"autoRenew": true,
"planId": 2283845,
"currency": "USD",
"subscriptionId": 8492717,
"processingInfo": {"authorizationCode": "654321"},
"fraudResultInfo": {"deviceDataCollector": "Y"},
"status": "ACTIVE"
}
{
"subscriptionId": 19752551,
"planId": 2283845,
"vaultedShopperId": 27567993,
"status": "ACTIVE",
"quantity": 1,
"softDescriptor": "BLS*default_descriptor",
"vendorsInfo": {
"vendorInfo": [
{
"vendorId": 10398032,
"commissionPercent": 90.2
}
]
},
"chargeFrequency": "MONTHLY",
"trialPeriodDays": "14",
"recurringChargeAmount": 29.99,
"currency": "USD",
"initialChargeAmount": 100.0,
"autoRenew": true,
"nextChargeDate": "2020-06-09",
"payerInfo": {
"firstName": "John",
"lastName": "Doe",
"zip": "02453",
"phone": "1234567890"
},
"paymentSource": {
"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe",
"zip": "12345"
},
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"binCategory": "CONSUMER",
"cardRegulated": "Y",
"issuingBank": "JPMORGAN CHASE BANK, N.A.",
"expirationMonth": "07",
"expirationYear": "2023",
"issuingCountryCode": "us"
}
}
},
"charge": {
"chargeId": 18319019,
"subscriptionId": 19752551,
"planId": 2283845,
"vaultedShopperId": 27567993,
"transactionId": "1031082549",
"transactionDate": "2020-05-26",
"amount": 100.0,
"currency": "USD",
"softDescriptor": "BLS*default_descriptor",
"paymentSource": {
"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe",
"zip": "02453"
},
"creditCard": {
"cardLastFourDigits": "1111",
"cardType": "VISA",
"cardSubType": "CREDIT",
"binCategory": "CONSUMER",
"cardRegulated": "Y",
"issuingBank": "JPMORGAN CHASE BANK, N.A.",
"expirationMonth": "07",
"expirationYear": "2023",
"issuingCountryCode": "us"
}
}
},
"chargeInfo": {
"fromDate": "2020-05-26",
"toDate": "2020-06-09",
"chargeType": "INITIAL"
},
"processingInfo": {
"processingStatus": "SUCCESS",
"authorizationCode": "654321"
},
"vendorsInfo": {
"vendorInfo": [
{
"vendorId": 10398032,
"commissionPercent": 90.2
}
]
}
},
"fraudResultInfo": {}
}
Example Descriptions
Create Subscription: with new shopper
This example shows a basic Create Subscription request for a new shopper, with details about the shopper and their payment method.
Create Subscription: with vaulted shopper and optional fields
This example shows a Create Subscription request with an existing vaulted shopper who has only one saved payment method, so there is no need to specify which payment method to use.
This example request also includes all optional subscription fields, such as quantity, soft descriptor and the various override fields. The override values take precedence over the settings at the plan level, and they apply only to this subscription.
Create Subscription: with vaulted shopper and specific payment method
This example shows a Create Subscription request with an existing vaulted shopper who has multiple saved payment methods, so you must specify which payment method to use.
Create Subscription: with new shopper and Hosted Payment Fields
This example shows a Create Subscription request with a new shopper whose card information was collected using Hosted Payment Fields. Include pfToken
in the request with its value set to the Hosted Payment Fields token.
Create Subscription: with new shopper and vendors info
This example shows a Create Subscription request with a Marketplace vendor. Include vendorsInfo
in the request to process a transaction involving one or more vendors. For more details, refer to the Marketplace Guide.
Create Subscription: with Apple Pay
This example shows a Create Subscription request with an Apple Pay wallet. In the request, include the encodedPaymentToken
inside paymentSource
> wallet
, also supply walletType
of APPLE_PAY
there. Refer to the Apple Pay Guide for more information.
Note: To test Apple Pay, follow the steps in the Apple Pay Guide. The API Explorer does not support Apple Pay testing.
Create Subscription: with SEPA Direct Debit
This example shows a Create Subscription request with a new shopper with the SEPA Direct Debit payment method. In the request, include authorizedByShopper
with a value set to true to indicate that you've collected the shopper's mandate acceptance. Include the shopper's bank account details within paymentSource
> sepaDirectDebitInfo
> sepaDirectDebit
.
Note: subscriptionId
will not be returned in the response. The subscription ID will be created when the shopper's account is debited (typically within 5 - 6 business days). You will then be informed of the subscription ID via Charge
webhook or via Retrieve Specific Charge request.
Create Subscription: with ACH/ECP
This example shows a Create Subscription request with a new shopper with the ACH/ECP payment method. In the request, include authorizedByShopper
with a value set to true to indicate that you've collected the shopper's permission to debit their account. Include the shopper's bank account details within paymentSource
> ecpInfo
> ecp
. If you would like to process the transaction for a returning shopper, pass an empty ecpInfo
object.
Note: subscriptionId
will not be returned in the response. The subscription ID will be created when the shopper's account is debited (typically within 2 business days). You will then be informed of the subscription ID via Charge
webhook or via Retrieve Specific Charge request.
Create Subscription: with Google Pay™
This example shows a Create Subscription request with a Google Pay wallet. In the request, include walletType
= GOOGLE_PAY and encodedPaymentToken
inside paymentSource
> wallet
. See the Google Pay Guide for more information.
New shopper with different billing
This example shows a Create Subscription request with a new shopper whose the shopper contact details are different from the credit card billing information.
Vaulted shopper with billing
This example shows a Create Subscription request for an existing shopper with existing credit card information.
New shopper with hosted fields and different billing
This example shows a Create Subscription request for Hosted Payment Fields for a new shopper whose the shopper contact details are different from the credit card billing information.
Vaulted shopper with hosted fields and different billing
This example shows a Create Subscription request for Hosted Payment Fields for a an existing shopper with existing credit card information.
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 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.
{
"payerInfo": {
"zip": 02453,
"firstName": "John",
"lastName": "Doe",
"phone": 1234567890
},
"paymentSource": {"creditCardInfo": {"creditCard": {
"expirationYear": 2019,
"securityCode": 111,
"expirationMonth": "07",
"cardNumber": 4111111111111111
}}},
"planId": 2283845
}