Using webhooks
Create a subscription response
{
"id": "b5cd5cd4-7ae4-4a0c-b723-9b97bf42a9e8",
"type": "subscription.created",
"data": {
"object": {
"id": "23480199",
"creationDate": "2021-05-13T09:38:05.000Z",
"activationDate": "2021-05-13T05:00:00.000Z",
"nextRenewalDate": "2021-07-13T05:00:00.000Z",
// Additional subscription details...
}
}
}{
"id": "b5cd5cd4-7ae4-4a0c-b723-9b97bf42a9e8",
"type": "subscription.created",
"data": {
"object": {
"id" : "23480199",
"creationDate" : "2021-05-13T09:38:05.000Z",
"activationDate" : "2021-05-13T05:00:00.000Z",
"nextRenewalDate" : "2021-07-13T05:00:00.000Z",
"nextBillingDate" : "2021-06-13T05:00:00.000Z",
"expirationDate" : "2021-07-13T05:00:00.000Z",
"graceDate" : "2021-06-20T05:00:00.000Z",
"currentQuantity" : 1,
"renewalQuantity" : 1,
"autoRenewal" : true,
"locale" : "en_US",
"state" : "Subscribed",
"duration" : 61,
"frequency" : 31,
"currentBillingCycleNumber" : 1,
"totalNumberOfBillingCycle" : 2,
"siteId" : "sub2test",
"shopper" : {
"id" : "20662635060199",
"externalReferenceId" : "MCAGJAYW3JXJ"
},
"renewalPrice" : {
"unitPrice" : 9.99,
"locked" : true,
"currency" : "USD"
},
"term" : {
"termUnit" : "MONTHS",
"termLength" : 1
},
"product" : {
"id" : "5367865200",
"displayName" : "APM_2_months_auto",
"sku" : "SUBS_COMMITMENT"
},
"shipToAddress" : {
"id" : "364164170199",
"firstName" : "Subscription",
"lastName" : "Automation",
"companyName" : "Digital River",
"line1" : "10380 Bren Rd W",
"line2" : "Conjunto 304",
"line3" : "Conjunto 304",
"city" : "Minnetonka",
"postalCode" : "55343",
"countrySubdivision" : "MN",
"country" : "US",
"countryName" : "United States",
"phoneNumber" : "952-253-1234",
"emailAddress" : "[email protected]",
"countyName" : "Minnetonka"
},
"paymentOption" : {
"nickName" : "VisaGJFV4P",
"id" : "4033270199",
"isDefault" : "true",
"type" : "CreditCardMethod",
"creditCard" : {
"expirationMonth" : "5",
"expirationYear" : "2023",
"displayableNumber" : "************1111",
"type" : "visa",
"displayName" : "Visa"
},
"address" : {
"id" : "364163290199",
"firstName" : "Subscription",
"lastName" : "Automation",
"companyName" : "DR",
"line1" : "10380 Bren Rd W",
"line2" : "Conjunto 304",
"line3" : "Conjunto 304",
"city" : "Minnetonka",
"postalCode" : "55343",
"countrySubdivision" : "MN",
"country" : "US",
"countryName" : "United States",
"phoneNumber" : "952-253-1234",
"emailAddress" : "[email protected]",
"countyName" : "Minnetonka"
}
},
"addOns" : [ {
"product" : {
"id" : "5400082600",
"displayName" : "Subscription AddOn 1",
"sku" : "SUBS_ADDON"
},
"quantity" : 1,
"renewalPrice" : {
"unitPrice" : 11.0,
"locked" : true,
"currency" : "USD"
}
} ]
}
}
}Retrieve an anonymous shopper's orders and production information
1
2
Last updated