curl --request POST \
--url https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"items": {
"data": [
{
"product": {
"id": "<string>"
},
"object": "SubscriptionItem",
"campaign_code": "<string>",
"replaces": "<string>"
}
]
},
"billing_plan": {
"object": "BillingPlan",
"id": "<string>"
},
"metadata": {}
}
'import requests
url = "https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}"
payload = {
"items": { "data": [
{
"product": { "id": "<string>" },
"object": "SubscriptionItem",
"campaign_code": "<string>",
"replaces": "<string>"
}
] },
"billing_plan": {
"object": "BillingPlan",
"id": "<string>"
},
"metadata": {}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: {
data: [
{
product: {id: '<string>'},
object: 'SubscriptionItem',
campaign_code: '<string>',
replaces: '<string>'
}
]
},
billing_plan: {object: 'BillingPlan', id: '<string>'},
metadata: {}
})
};
fetch('https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
'data' => [
[
'product' => [
'id' => '<string>'
],
'object' => 'SubscriptionItem',
'campaign_code' => '<string>',
'replaces' => '<string>'
]
]
],
'billing_plan' => [
'object' => 'BillingPlan',
'id' => '<string>'
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}"
payload := strings.NewReader("{\n \"items\": {\n \"data\": [\n {\n \"product\": {\n \"id\": \"<string>\"\n },\n \"object\": \"SubscriptionItem\",\n \"campaign_code\": \"<string>\",\n \"replaces\": \"<string>\"\n }\n ]\n },\n \"billing_plan\": {\n \"object\": \"BillingPlan\",\n \"id\": \"<string>\"\n },\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": {\n \"data\": [\n {\n \"product\": {\n \"id\": \"<string>\"\n },\n \"object\": \"SubscriptionItem\",\n \"campaign_code\": \"<string>\",\n \"replaces\": \"<string>\"\n }\n ]\n },\n \"billing_plan\": {\n \"object\": \"BillingPlan\",\n \"id\": \"<string>\"\n },\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": {\n \"data\": [\n {\n \"product\": {\n \"id\": \"<string>\"\n },\n \"object\": \"SubscriptionItem\",\n \"campaign_code\": \"<string>\",\n \"replaces\": \"<string>\"\n }\n ]\n },\n \"billing_plan\": {\n \"object\": \"BillingPlan\",\n \"id\": \"<string>\"\n },\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"object": "Subscription",
"id": "<string>",
"account": {
"id": "<string>",
"object": "Account",
"vid": "<string>",
"external_id": "<string>",
"created": "<string>",
"parent": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"default_currency": "<string>",
"email": "<string>",
"email_type": "html",
"language": "<string>",
"notify_before_billing": true,
"company": "<string>",
"name": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"payment_methods": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
}
]
},
"metadata": {},
"tax_exemptions": [
{
"object": "TaxExemption",
"region": "<string>",
"exemption_id": "<string>",
"active": true
}
],
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"credit": [
{
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
}
],
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"tax_use_code": "<string>"
},
"status": "Pending Activation",
"items": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "SubscriptionItem",
"id": "<string>",
"product": {
"object": "Product",
"id": "<string>",
"descriptions": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductDescription",
"language": "<string>",
"description": "<string>"
}
]
},
"status": "Active",
"vid": "<string>",
"created": "<string>",
"tax_classification": "<string>",
"br_tax_category": "Goods",
"default_billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"default_rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"end_of_life": "<string>",
"metadata": {},
"entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"inherited_entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"billing_descriptor": "<string>",
"credit_granted": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"prices": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductPrice",
"amount": 123,
"currency": "<string>",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
}
}
]
},
"bundled_products": "<array>"
},
"vid": "<string>",
"index": 123,
"campaign_id": "<string>",
"amount": 123,
"currency": "<string>",
"rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"metadata": {},
"quantity": 123,
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"cycles": 123,
"cycles_remaining": 123,
"created": "<string>",
"ends": "<string>",
"starts": "<string>",
"discount_tickets": [
{}
],
"replaces": "<unknown>",
"replaced_by": "<unknown>"
}
]
},
"vid": "<string>",
"created": "<string>",
"billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"currency": "<string>",
"billing_state": "Free/Trial",
"starts": "<string>",
"ends": "<string>",
"entitled_through": "<string>",
"source_ip": "<string>",
"billing_descriptor": "<string>",
"billing_day": 123,
"minimum_commitment": 123,
"affiliate": "<string>",
"sub_affiliate": "<string>",
"notify_on_transition": true,
"most_recent_billing": {
"object": "Transaction",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"amount": 123,
"original_amount": 123,
"currency": "<string>",
"division_number": "<string>",
"previous_id": "<string>",
"account": {
"id": "<string>",
"object": "Account",
"vid": "<string>",
"external_id": "<string>",
"created": "<string>",
"parent": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"default_currency": "<string>",
"email": "<string>",
"email_type": "html",
"language": "<string>",
"notify_before_billing": true,
"company": "<string>",
"name": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"payment_methods": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
}
]
},
"metadata": {},
"tax_exemptions": [
{
"object": "TaxExemption",
"region": "<string>",
"exemption_id": "<string>",
"active": true
}
],
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"credit": [
{
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
}
],
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"tax_use_code": "<string>"
},
"source_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"dest_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"ecp_transaction_type": "All",
"status_log": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
}
]
},
"payment_processor": "<string>",
"payment_processor_transaction_id": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"metadata": {},
"items": [
{
"object": "TransactionItem",
"sku": "<string>",
"index_number": 123,
"item_type": "<string>",
"name": "<string>",
"subscription_item": {
"object": "SubscriptionItem",
"id": "<string>",
"product": {
"object": "Product",
"id": "<string>",
"descriptions": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductDescription",
"language": "<string>",
"description": "<string>"
}
]
},
"status": "Active",
"vid": "<string>",
"created": "<string>",
"tax_classification": "<string>",
"br_tax_category": "Goods",
"default_billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"default_rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"end_of_life": "<string>",
"metadata": {},
"entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"inherited_entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"billing_descriptor": "<string>",
"credit_granted": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"prices": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductPrice",
"amount": 123,
"currency": "<string>",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
}
}
]
},
"bundled_products": "<array>"
},
"vid": "<string>",
"index": 123,
"campaign_id": "<string>",
"amount": 123,
"currency": "<string>",
"rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"metadata": {},
"quantity": 123,
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"cycles": 123,
"cycles_remaining": 123,
"created": "<string>",
"ends": "<string>",
"starts": "<string>",
"discount_tickets": [
{}
],
"replaces": "<unknown>",
"replaced_by": "<unknown>"
},
"price": 123,
"metadata": {},
"quantity": 123,
"tax_classification": "<string>",
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"campaign_code": "<string>",
"campaign_id": "<string>",
"campaign_description": "<string>",
"service_period_starts": "<string>",
"service_period_ends": "<string>",
"tax_type": "<string>",
"tax": {
"object": "<string>",
"data": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
],
"total_count": 123
},
"related_transactions": [
"<string>"
],
"item_refunds": [
{
"created": "<string>",
"amount": "<string>",
"tax": 123,
"tax_only": true,
"refund": {
"object": "Refund",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"transaction": "<unknown>",
"refund_items": [
{
"transaction_item_index_number": 123,
"sku": "<string>",
"description": "<string>",
"amount": 123,
"tax_only": true,
"taxes": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
]
}
],
"refund_distribution_strategy": "None",
"amount": 123,
"amount_includes_tax": true,
"currency": "<string>",
"metadata": {},
"reference_string": "<string>",
"note": "<string>",
"token_action": "CancelNegativeBalance",
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"status": "Complete"
}
}
],
"discount": 123,
"subtotal": 123,
"total": 123
}
],
"affiliate": "<string>",
"sub_affiliate": "<string>",
"user_agent": "<string>",
"preferred_notification_language": "<string>",
"source_mac_address": "<string>",
"source_ip": "<string>",
"billing_descriptor": "<string>",
"sales_tax_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"verification_code": "<string>",
"subscription_sequence": 123,
"billing_plan_sequence": 123,
"mandate": {
"object": "Mandate",
"created": "<string>",
"identifier": "<string>",
"status": "Active"
},
"original_billing_date": "<string>",
"billing_attempt": 123,
"subscription": "<unknown>",
"score": 123,
"score_calculated": "<string>",
"score_calculated_orig": "<string>",
"score_codes": [
{
"object": "ScoreCode",
"id": "<string>",
"description": "<string>"
}
],
"distance_ip_ba": 123,
"avs_code": "<string>",
"cvn_code": "<string>",
"cvn_checked": true,
"policy": [
"<string>"
],
"to_be_captured": true
},
"most_recent_refunds": [
{
"object": "Refund",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"transaction": "<unknown>",
"refund_items": [
{
"transaction_item_index_number": 123,
"sku": "<string>",
"description": "<string>",
"amount": 123,
"tax_only": true,
"taxes": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
]
}
],
"refund_distribution_strategy": "None",
"amount": 123,
"amount_includes_tax": true,
"currency": "<string>",
"metadata": {},
"reference_string": "<string>",
"note": "<string>",
"token_action": "CancelNegativeBalance",
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"status": "Complete"
}
],
"next_billing": {
"object": "Transaction",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"amount": 123,
"original_amount": 123,
"currency": "<string>",
"division_number": "<string>",
"previous_id": "<string>",
"account": {
"id": "<string>",
"object": "Account",
"vid": "<string>",
"external_id": "<string>",
"created": "<string>",
"parent": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"default_currency": "<string>",
"email": "<string>",
"email_type": "html",
"language": "<string>",
"notify_before_billing": true,
"company": "<string>",
"name": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"payment_methods": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
}
]
},
"metadata": {},
"tax_exemptions": [
{
"object": "TaxExemption",
"region": "<string>",
"exemption_id": "<string>",
"active": true
}
],
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"credit": [
{
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
}
],
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"tax_use_code": "<string>"
},
"source_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"dest_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"ecp_transaction_type": "All",
"status_log": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
}
]
},
"payment_processor": "<string>",
"payment_processor_transaction_id": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"metadata": {},
"items": [
{
"object": "TransactionItem",
"sku": "<string>",
"index_number": 123,
"item_type": "<string>",
"name": "<string>",
"subscription_item": {
"object": "SubscriptionItem",
"id": "<string>",
"product": {
"object": "Product",
"id": "<string>",
"descriptions": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductDescription",
"language": "<string>",
"description": "<string>"
}
]
},
"status": "Active",
"vid": "<string>",
"created": "<string>",
"tax_classification": "<string>",
"br_tax_category": "Goods",
"default_billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"default_rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"end_of_life": "<string>",
"metadata": {},
"entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"inherited_entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"billing_descriptor": "<string>",
"credit_granted": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"prices": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductPrice",
"amount": 123,
"currency": "<string>",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
}
}
]
},
"bundled_products": "<array>"
},
"vid": "<string>",
"index": 123,
"campaign_id": "<string>",
"amount": 123,
"currency": "<string>",
"rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"metadata": {},
"quantity": 123,
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"cycles": 123,
"cycles_remaining": 123,
"created": "<string>",
"ends": "<string>",
"starts": "<string>",
"discount_tickets": [
{}
],
"replaces": "<unknown>",
"replaced_by": "<unknown>"
},
"price": 123,
"metadata": {},
"quantity": 123,
"tax_classification": "<string>",
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"campaign_code": "<string>",
"campaign_id": "<string>",
"campaign_description": "<string>",
"service_period_starts": "<string>",
"service_period_ends": "<string>",
"tax_type": "<string>",
"tax": {
"object": "<string>",
"data": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
],
"total_count": 123
},
"related_transactions": [
"<string>"
],
"item_refunds": [
{
"created": "<string>",
"amount": "<string>",
"tax": 123,
"tax_only": true,
"refund": {
"object": "Refund",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"transaction": "<unknown>",
"refund_items": [
{
"transaction_item_index_number": 123,
"sku": "<string>",
"description": "<string>",
"amount": 123,
"tax_only": true,
"taxes": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
]
}
],
"refund_distribution_strategy": "None",
"amount": 123,
"amount_includes_tax": true,
"currency": "<string>",
"metadata": {},
"reference_string": "<string>",
"note": "<string>",
"token_action": "CancelNegativeBalance",
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"status": "Complete"
}
}
],
"discount": 123,
"subtotal": 123,
"total": 123
}
],
"affiliate": "<string>",
"sub_affiliate": "<string>",
"user_agent": "<string>",
"preferred_notification_language": "<string>",
"source_mac_address": "<string>",
"source_ip": "<string>",
"billing_descriptor": "<string>",
"sales_tax_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"verification_code": "<string>",
"subscription_sequence": 123,
"billing_plan_sequence": 123,
"mandate": {
"object": "Mandate",
"created": "<string>",
"identifier": "<string>",
"status": "Active"
},
"original_billing_date": "<string>",
"billing_attempt": 123,
"subscription": "<unknown>",
"score": 123,
"score_calculated": "<string>",
"score_calculated_orig": "<string>",
"score_codes": [
{
"object": "ScoreCode",
"id": "<string>",
"description": "<string>"
}
],
"distance_ip_ba": 123,
"avs_code": "<string>",
"cvn_code": "<string>",
"cvn_checked": true,
"policy": [
"<string>"
],
"to_be_captured": true
},
"metadata": {},
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"statement_format": "Attachment",
"invoice_terms": 123,
"statement_offset": 123,
"statement_template": "<string>",
"billing_plan_campaign_code": "<string>",
"billing_plan_campaign_id": "<string>",
"unkonwn_starts": true,
"balance": 123,
"mandate": {
"object": "Mandate",
"created": "<string>",
"identifier": "<string>",
"status": "Active"
},
"cancel_reason": {
"reason_code": "<string>",
"description": "<string>"
},
"policy": [
"<string>"
]
}{
"code": "invalid-request",
"message": "<string>",
"validationErrors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"code": "authentication-required",
"message": "<string>"
}{
"code": "not-found",
"message": "<string>"
}{
"code": "input-conflict",
"message": "<string>"
}{
"code": "server-error",
"message": "<string>"
}Update Subscription
Update, amend, or modify a Subscription. See MarketONE Knowledgebase regarding various modify scenarios and additional approaches.
Most common modifications are Billing Plan Change, Add or Remove a Subscription Item.
Replace an existing Subscription Item with a new one. This request supports the same arguments as ‘create’ (a full Subscription object) excepting the behavior of the ids; providing an id or vid in the URL indicates to MarketONE that this is an update, not a create – as such, id and vid cannot be updated. Certain changes will modify the subscribed service:
Billing Plan Change: Providing a new Billing Plan will change the billing plan/schedule for the subscription as of the effective_date. Replace an existing/active Item with a new Item: Include a new SubscriptionItem populating the “replaces” parameter with the id of the existing item being replaced. Add a new Item: Include a new SubscriptionItem (leaving undefined the “replaced_by” and “replaces” parameters).
Remove an existing Item: Include a new but empty/undefined SubscriptionItem populating ONLY the “replaces” parameter with the id of the existing item being removed. All changes will take effect as of the effective_date provided; Proration calculations, when required, will use the period between the last scheduled billing and the effective_date (calculated to whole days).
curl --request POST \
--url https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"items": {
"data": [
{
"product": {
"id": "<string>"
},
"object": "SubscriptionItem",
"campaign_code": "<string>",
"replaces": "<string>"
}
]
},
"billing_plan": {
"object": "BillingPlan",
"id": "<string>"
},
"metadata": {}
}
'import requests
url = "https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}"
payload = {
"items": { "data": [
{
"product": { "id": "<string>" },
"object": "SubscriptionItem",
"campaign_code": "<string>",
"replaces": "<string>"
}
] },
"billing_plan": {
"object": "BillingPlan",
"id": "<string>"
},
"metadata": {}
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: {
data: [
{
product: {id: '<string>'},
object: 'SubscriptionItem',
campaign_code: '<string>',
replaces: '<string>'
}
]
},
billing_plan: {object: 'BillingPlan', id: '<string>'},
metadata: {}
})
};
fetch('https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
'data' => [
[
'product' => [
'id' => '<string>'
],
'object' => 'SubscriptionItem',
'campaign_code' => '<string>',
'replaces' => '<string>'
]
]
],
'billing_plan' => [
'object' => 'BillingPlan',
'id' => '<string>'
],
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}"
payload := strings.NewReader("{\n \"items\": {\n \"data\": [\n {\n \"product\": {\n \"id\": \"<string>\"\n },\n \"object\": \"SubscriptionItem\",\n \"campaign_code\": \"<string>\",\n \"replaces\": \"<string>\"\n }\n ]\n },\n \"billing_plan\": {\n \"object\": \"BillingPlan\",\n \"id\": \"<string>\"\n },\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": {\n \"data\": [\n {\n \"product\": {\n \"id\": \"<string>\"\n },\n \"object\": \"SubscriptionItem\",\n \"campaign_code\": \"<string>\",\n \"replaces\": \"<string>\"\n }\n ]\n },\n \"billing_plan\": {\n \"object\": \"BillingPlan\",\n \"id\": \"<string>\"\n },\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-prodtest.m1amdocs.io/submgmt/v2/subscriptions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": {\n \"data\": [\n {\n \"product\": {\n \"id\": \"<string>\"\n },\n \"object\": \"SubscriptionItem\",\n \"campaign_code\": \"<string>\",\n \"replaces\": \"<string>\"\n }\n ]\n },\n \"billing_plan\": {\n \"object\": \"BillingPlan\",\n \"id\": \"<string>\"\n },\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"object": "Subscription",
"id": "<string>",
"account": {
"id": "<string>",
"object": "Account",
"vid": "<string>",
"external_id": "<string>",
"created": "<string>",
"parent": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"default_currency": "<string>",
"email": "<string>",
"email_type": "html",
"language": "<string>",
"notify_before_billing": true,
"company": "<string>",
"name": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"payment_methods": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
}
]
},
"metadata": {},
"tax_exemptions": [
{
"object": "TaxExemption",
"region": "<string>",
"exemption_id": "<string>",
"active": true
}
],
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"credit": [
{
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
}
],
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"tax_use_code": "<string>"
},
"status": "Pending Activation",
"items": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "SubscriptionItem",
"id": "<string>",
"product": {
"object": "Product",
"id": "<string>",
"descriptions": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductDescription",
"language": "<string>",
"description": "<string>"
}
]
},
"status": "Active",
"vid": "<string>",
"created": "<string>",
"tax_classification": "<string>",
"br_tax_category": "Goods",
"default_billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"default_rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"end_of_life": "<string>",
"metadata": {},
"entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"inherited_entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"billing_descriptor": "<string>",
"credit_granted": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"prices": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductPrice",
"amount": 123,
"currency": "<string>",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
}
}
]
},
"bundled_products": "<array>"
},
"vid": "<string>",
"index": 123,
"campaign_id": "<string>",
"amount": 123,
"currency": "<string>",
"rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"metadata": {},
"quantity": 123,
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"cycles": 123,
"cycles_remaining": 123,
"created": "<string>",
"ends": "<string>",
"starts": "<string>",
"discount_tickets": [
{}
],
"replaces": "<unknown>",
"replaced_by": "<unknown>"
}
]
},
"vid": "<string>",
"created": "<string>",
"billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"currency": "<string>",
"billing_state": "Free/Trial",
"starts": "<string>",
"ends": "<string>",
"entitled_through": "<string>",
"source_ip": "<string>",
"billing_descriptor": "<string>",
"billing_day": 123,
"minimum_commitment": 123,
"affiliate": "<string>",
"sub_affiliate": "<string>",
"notify_on_transition": true,
"most_recent_billing": {
"object": "Transaction",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"amount": 123,
"original_amount": 123,
"currency": "<string>",
"division_number": "<string>",
"previous_id": "<string>",
"account": {
"id": "<string>",
"object": "Account",
"vid": "<string>",
"external_id": "<string>",
"created": "<string>",
"parent": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"default_currency": "<string>",
"email": "<string>",
"email_type": "html",
"language": "<string>",
"notify_before_billing": true,
"company": "<string>",
"name": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"payment_methods": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
}
]
},
"metadata": {},
"tax_exemptions": [
{
"object": "TaxExemption",
"region": "<string>",
"exemption_id": "<string>",
"active": true
}
],
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"credit": [
{
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
}
],
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"tax_use_code": "<string>"
},
"source_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"dest_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"ecp_transaction_type": "All",
"status_log": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
}
]
},
"payment_processor": "<string>",
"payment_processor_transaction_id": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"metadata": {},
"items": [
{
"object": "TransactionItem",
"sku": "<string>",
"index_number": 123,
"item_type": "<string>",
"name": "<string>",
"subscription_item": {
"object": "SubscriptionItem",
"id": "<string>",
"product": {
"object": "Product",
"id": "<string>",
"descriptions": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductDescription",
"language": "<string>",
"description": "<string>"
}
]
},
"status": "Active",
"vid": "<string>",
"created": "<string>",
"tax_classification": "<string>",
"br_tax_category": "Goods",
"default_billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"default_rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"end_of_life": "<string>",
"metadata": {},
"entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"inherited_entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"billing_descriptor": "<string>",
"credit_granted": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"prices": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductPrice",
"amount": 123,
"currency": "<string>",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
}
}
]
},
"bundled_products": "<array>"
},
"vid": "<string>",
"index": 123,
"campaign_id": "<string>",
"amount": 123,
"currency": "<string>",
"rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"metadata": {},
"quantity": 123,
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"cycles": 123,
"cycles_remaining": 123,
"created": "<string>",
"ends": "<string>",
"starts": "<string>",
"discount_tickets": [
{}
],
"replaces": "<unknown>",
"replaced_by": "<unknown>"
},
"price": 123,
"metadata": {},
"quantity": 123,
"tax_classification": "<string>",
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"campaign_code": "<string>",
"campaign_id": "<string>",
"campaign_description": "<string>",
"service_period_starts": "<string>",
"service_period_ends": "<string>",
"tax_type": "<string>",
"tax": {
"object": "<string>",
"data": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
],
"total_count": 123
},
"related_transactions": [
"<string>"
],
"item_refunds": [
{
"created": "<string>",
"amount": "<string>",
"tax": 123,
"tax_only": true,
"refund": {
"object": "Refund",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"transaction": "<unknown>",
"refund_items": [
{
"transaction_item_index_number": 123,
"sku": "<string>",
"description": "<string>",
"amount": 123,
"tax_only": true,
"taxes": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
]
}
],
"refund_distribution_strategy": "None",
"amount": 123,
"amount_includes_tax": true,
"currency": "<string>",
"metadata": {},
"reference_string": "<string>",
"note": "<string>",
"token_action": "CancelNegativeBalance",
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"status": "Complete"
}
}
],
"discount": 123,
"subtotal": 123,
"total": 123
}
],
"affiliate": "<string>",
"sub_affiliate": "<string>",
"user_agent": "<string>",
"preferred_notification_language": "<string>",
"source_mac_address": "<string>",
"source_ip": "<string>",
"billing_descriptor": "<string>",
"sales_tax_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"verification_code": "<string>",
"subscription_sequence": 123,
"billing_plan_sequence": 123,
"mandate": {
"object": "Mandate",
"created": "<string>",
"identifier": "<string>",
"status": "Active"
},
"original_billing_date": "<string>",
"billing_attempt": 123,
"subscription": "<unknown>",
"score": 123,
"score_calculated": "<string>",
"score_calculated_orig": "<string>",
"score_codes": [
{
"object": "ScoreCode",
"id": "<string>",
"description": "<string>"
}
],
"distance_ip_ba": 123,
"avs_code": "<string>",
"cvn_code": "<string>",
"cvn_checked": true,
"policy": [
"<string>"
],
"to_be_captured": true
},
"most_recent_refunds": [
{
"object": "Refund",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"transaction": "<unknown>",
"refund_items": [
{
"transaction_item_index_number": 123,
"sku": "<string>",
"description": "<string>",
"amount": 123,
"tax_only": true,
"taxes": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
]
}
],
"refund_distribution_strategy": "None",
"amount": 123,
"amount_includes_tax": true,
"currency": "<string>",
"metadata": {},
"reference_string": "<string>",
"note": "<string>",
"token_action": "CancelNegativeBalance",
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"status": "Complete"
}
],
"next_billing": {
"object": "Transaction",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"amount": 123,
"original_amount": 123,
"currency": "<string>",
"division_number": "<string>",
"previous_id": "<string>",
"account": {
"id": "<string>",
"object": "Account",
"vid": "<string>",
"external_id": "<string>",
"created": "<string>",
"parent": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"default_currency": "<string>",
"email": "<string>",
"email_type": "html",
"language": "<string>",
"notify_before_billing": true,
"company": "<string>",
"name": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"payment_methods": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
}
]
},
"metadata": {},
"tax_exemptions": [
{
"object": "TaxExemption",
"region": "<string>",
"exemption_id": "<string>",
"active": true
}
],
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"credit": [
{
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
}
],
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"tax_use_code": "<string>"
},
"source_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"dest_payment_method": {
"id": "<string>",
"vid": "<string>",
"object": "PaymentMethod",
"created": "<string>",
"type": "Amazon",
"credit_card": {
"vid": "<string>",
"object": "CreditCard",
"last_digits": "<string>",
"account_length": 123,
"hash_type": "sha1",
"expiration_date": "<string>",
"extended_card_attributes": {},
"cvn": "<string>",
"last_au_request_date": "<string>",
"last_update_date": "<string>",
"au_response_code": "<string>",
"au_response_message": "<string>"
},
"direct_debit": {},
"paypal": {},
"amazon": {},
"merchant_accepted_payment": {
"object": "MerchantAcceptedPayment",
"amount": 123,
"currency": "<string>",
"created": "<string>",
"payment_type": "<string>",
"account": "<string>",
"last_digits": "<string>"
},
"external_billing": {
"object": "ExternalBilling",
"bill_receiver": "<string>",
"payment_channel": "<string>",
"financial_account": "<string>"
},
"carrier_billing": {
"object": "CarrierBilling",
"phone_number": {
"object": "PhoneNumber",
"phone_type": "CS",
"country_code": "<string>",
"area_code": "<string>",
"local_number": "<string>",
"extension": "<string>",
"raw_input": "<string>"
},
"encoded_phone_number": "<string>",
"carrier": "<string>",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_criteria": {
"object": "PriceCriteria",
"payment_provider": {
"object": "PaymentProvider",
"name": "<string>",
"dispute_address": "<string>",
"dispute_email": "<string>",
"dispute_uri": "<string>",
"auth_expiration_days": 123,
"auth_currency_override": "<string>",
"metadata": {}
},
"currency": "<string>",
"country_code": "<string>",
"price_point_deviation_policy": "HiOnly",
"dynamic_price_mode": "PayoutGross",
"merchant_service_identifier": "<string>",
"sub_merchant_identifier": "<string>",
"description": "<string>",
"fwd_url": "<string>",
"static_selection_row_ref": 123,
"static_price_inc_sales_tax": "<string>",
"dynamic_deviation": 123,
"dynamic_match": 123,
"dynamic_target_price": "<string>"
},
"account_identifier": "<string>",
"carrier_billing_account_identifier_type": "MSISDN",
"customer_identifier": "not yet available - see VIN-26551",
"customer_identifier_type": "PoS , Web",
"validated": "<string>"
},
"apple_pay": {},
"google_pay": {},
"metadata": {},
"account_holder": "<string>",
"billing_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"customer_specified_type": "<string>",
"customer_description": "<string>",
"currency": "<string>",
"primary": true,
"active": true,
"validation_status": {
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
},
"policy": {}
},
"ecp_transaction_type": "All",
"status_log": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "TransactionStatus",
"status": "New",
"created": "<string>",
"payment_method_type": "CreditCard",
"vin_avs": "FullMatch",
"funding_source_balance": 123
}
]
},
"payment_processor": "<string>",
"payment_processor_transaction_id": "<string>",
"shipping_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"metadata": {},
"items": [
{
"object": "TransactionItem",
"sku": "<string>",
"index_number": 123,
"item_type": "<string>",
"name": "<string>",
"subscription_item": {
"object": "SubscriptionItem",
"id": "<string>",
"product": {
"object": "Product",
"id": "<string>",
"descriptions": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductDescription",
"language": "<string>",
"description": "<string>"
}
]
},
"status": "Active",
"vid": "<string>",
"created": "<string>",
"tax_classification": "<string>",
"br_tax_category": "Goods",
"default_billing_plan": {
"id": "<string>",
"vid": "<string>",
"object": "BillingPlan",
"created": "<string>",
"description": "<string>",
"status": "Active",
"tax_classification": "<string>",
"br_tax_category": "<string>",
"trial": {
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
},
"periods": [
{
"object": "BillingPlanPeriod",
"type": "Day",
"quantity": 123,
"cycles": 123,
"prices": [
{
"object": "<string>",
"amount": 123,
"currency": "<string>",
"price_list_name": "<string>",
"token_amount": {
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
}
]
}
],
"billing_notification_days": 123,
"trial_end_notification_days": 123,
"skip_initial_billing_notification": true,
"end_of_life": "<string>",
"metadata": {},
"entitlements": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
],
"billing_descriptor": "<string>",
"times_to_run": "<string>",
"entitlements_valid_for": "<string>",
"repeat_every": "<string>",
"season_set": {
"id": "<string>",
"vid": "<string>",
"object": "SeasonSet",
"created": "<string>",
"seasons": [
{
"object": "Season",
"description": "<string>",
"starts": "<string>",
"ends": "<string>"
}
],
"metadata": {}
},
"days_before_season_to_bill": 123,
"days_entitled_before_season": 123,
"days_entitled_after_season": 123,
"entitled_off_season": true,
"used_on_subscriptions": true,
"grace_period_override": 123
},
"default_rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"end_of_life": "<string>",
"metadata": {},
"entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"inherited_entitlements": {
"object": "List",
"total_count": 123,
"data": [
{
"id": "<string>",
"object": "Entitlement",
"description": "<string>"
}
]
},
"billing_descriptor": "<string>",
"credit_granted": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"prices": {
"object": "List",
"total_count": 123,
"data": [
{
"object": "ProductPrice",
"amount": 123,
"currency": "<string>",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
}
}
]
},
"bundled_products": "<array>"
},
"vid": "<string>",
"index": 123,
"campaign_id": "<string>",
"amount": 123,
"currency": "<string>",
"rate_plan": {
"object": "RatePlan",
"id": "<string>",
"vid": "<string>"
},
"metadata": {},
"quantity": 123,
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"cycles": 123,
"cycles_remaining": 123,
"created": "<string>",
"ends": "<string>",
"starts": "<string>",
"discount_tickets": [
{}
],
"replaces": "<unknown>",
"replaced_by": "<unknown>"
},
"price": 123,
"metadata": {},
"quantity": 123,
"tax_classification": "<string>",
"tokens": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"campaign_code": "<string>",
"campaign_id": "<string>",
"campaign_description": "<string>",
"service_period_starts": "<string>",
"service_period_ends": "<string>",
"tax_type": "<string>",
"tax": {
"object": "<string>",
"data": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
],
"total_count": 123
},
"related_transactions": [
"<string>"
],
"item_refunds": [
{
"created": "<string>",
"amount": "<string>",
"tax": 123,
"tax_only": true,
"refund": {
"object": "Refund",
"id": "<string>",
"vid": "<string>",
"created": "<string>",
"transaction": "<unknown>",
"refund_items": [
{
"transaction_item_index_number": 123,
"sku": "<string>",
"description": "<string>",
"amount": 123,
"tax_only": true,
"taxes": [
{
"object": "<string>",
"jurisdiction": "<string>",
"name": "<string>",
"amount": 123,
"external_tax_name": "<string>",
"external_tax_category": "<string>",
"external_jurisdiction_name": "<string>",
"tax_rate": 123,
"external_tax_identifier": "<string>"
}
]
}
],
"refund_distribution_strategy": "None",
"amount": 123,
"amount_includes_tax": true,
"currency": "<string>",
"metadata": {},
"reference_string": "<string>",
"note": "<string>",
"token_action": "CancelNegativeBalance",
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"status": "Complete"
}
}
],
"discount": 123,
"subtotal": 123,
"total": 123
}
],
"affiliate": "<string>",
"sub_affiliate": "<string>",
"user_agent": "<string>",
"preferred_notification_language": "<string>",
"source_mac_address": "<string>",
"source_ip": "<string>",
"billing_descriptor": "<string>",
"sales_tax_address": {
"object": "Address",
"vid": "<string>",
"name": "<string>",
"line1": "<string>",
"line2": "<string>",
"line3": "<string>",
"city": "<string>",
"county": "<string>",
"district": "<string>",
"postal_code": "<string>",
"country": "<string>",
"phone": "<string>",
"fax": "<string>",
"latitude": 123,
"longitude": 123,
"tax_area_identifier": 123
},
"verification_code": "<string>",
"subscription_sequence": 123,
"billing_plan_sequence": 123,
"mandate": {
"object": "Mandate",
"created": "<string>",
"identifier": "<string>",
"status": "Active"
},
"original_billing_date": "<string>",
"billing_attempt": 123,
"subscription": "<unknown>",
"score": 123,
"score_calculated": "<string>",
"score_calculated_orig": "<string>",
"score_codes": [
{
"object": "ScoreCode",
"id": "<string>",
"description": "<string>"
}
],
"distance_ip_ba": 123,
"avs_code": "<string>",
"cvn_code": "<string>",
"cvn_checked": true,
"policy": [
"<string>"
],
"to_be_captured": true
},
"metadata": {},
"credit": {
"object": "Credit",
"token_amounts": [
{
"object": "TokenAmount",
"token": {
"object": "Token",
"id": "<string>",
"vid": "<string>",
"description": "<string>"
},
"amount": 123,
"source": "<string>"
}
],
"currency_amounts": [
{
"object": "CurrencyAmount",
"vid": "<string>",
"currency": "<string>",
"amount": 123,
"metadata": {},
"sort_value": 123,
"description": "<string>",
"reason": "<string>",
"granted_by_cashbox": true,
"granted": "<string>",
"account": {
"object": "Account",
"id": "<string>",
"vid": "<string>"
},
"subscription": {
"object": "Subscription",
"id": "<string>",
"vid": "<string>"
}
}
]
},
"statement_format": "Attachment",
"invoice_terms": 123,
"statement_offset": 123,
"statement_template": "<string>",
"billing_plan_campaign_code": "<string>",
"billing_plan_campaign_id": "<string>",
"unkonwn_starts": true,
"balance": 123,
"mandate": {
"object": "Mandate",
"created": "<string>",
"identifier": "<string>",
"status": "Active"
},
"cancel_reason": {
"reason_code": "<string>",
"description": "<string>"
},
"policy": [
"<string>"
]
}{
"code": "invalid-request",
"message": "<string>",
"validationErrors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"code": "authentication-required",
"message": "<string>"
}{
"code": "not-found",
"message": "<string>"
}{
"code": "input-conflict",
"message": "<string>"
}{
"code": "server-error",
"message": "<string>"
}Authorizations
The authorization key obtained from MarketONE.
Headers
The TraceId indicates the overall ID of the trace. Every span in a trace shares this ID. The X-B3-TraceId header is encoded as 32 or 16 lower-hex characters. For example, a 128-bit TraceId header might look like 463ac35c9f6413ad48485a3953bb6124.
The SpanId is 64-bit in length and indicates the position of the current operation in the trace tree. The value should not be interpreted; it may or may not be derived from the value of the TraceId. The X-B3-SpanId header is encoded as 16 lower-hex characters. For example, a SpanId header might look like a2fb4a1d1a96d312. Unless propagating only the Sampling State, the X-B3-SpanId header is required.
The ParentSpanId is 64-bit in length and indicates the position of the parent operation in the trace tree. When the span is the root of the trace tree, there is no ParentSpanId. The X-B3-ParentSpanId header may be present on a child span and must be absent on the root span. It is encoded as 16 lower-hex characters. For example, a ParentSpanId header might look like 0020000000000001.
Optional partner code that will be passed in header.
32Path Parameters
The id or the vid of the Subscription to be updated.
Query Parameters
Indicates whether to prorate for unused service portions.
Billing date at which changes take effect; today or nextBill
Indicates whether to commit changes or return results without execution
Indicates this is an update happened in another system which is being migrated.
Body
A Request object
Show child attributes
Show child attributes
Show child attributes
Show child attributes
A set of key/value pairs that you can attach to an object. Useful for storing additional information. Subscription metadata will be inherited by resulting transactions. For merchant accepted payments these fields will be used to identify payment-processing-information "payment_processor_payment_id", "payment_procesor_name", "payment_amount", "payment_date"
Show child attributes
Show child attributes
Response
OK
Subscriptions allow you to bill an Account over time and/or on a recurring basis. A subscription ties an Account to a particular billing plan and set of purchased products (subscription items) you’ve created. The API allows you to create, update and amend/modify your subscriptions.
Value is “Subscription”.
Subscription A unique identifier.
128The Account represents an aggregator’s customer. As such it can contain as much or as little information as you collect about the customers (people or organizations) to which you offer billing and subscriptions. Subscriptions and Transactions must belong to an Account - as such, Accounts will be required in MarketONE for billing. Read More in our User Guide An Account can have any number of children accounts and may have up to one parent account. Read more in our User Guide. An Account owns the “on file” payment methods to be used by it in billing. Payment Methods can be created at the same time as an Account is created or updated, but when updating an existing Payment Method the Payment Method Endpoint must be used.
Show child attributes
Show child attributes
The status of the subscription from a service and entitlement perspective.
Pending Activation, Active, Pending Cancel, Cancelled, Expired, Processing, Deleted, Dryrun, Unknown, Upgraded, Legacy Suspended, Bogus AutoBill Status, Paused, Pending Pause The product-based line items for the subscription.
Show child attributes
Show child attributes
A Globally Unique Identifier (GUID) for this object. This value is generated by MarketONE.
128The date/time at which the subscription was requested.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The financial state of the subscription.
Free/Trial, Billing Completed, Failed To Collect, Free Period, Bogus BillingState, Paused, Good Standing, Grace Period, In Retry, Legacy Unknown BillingState, Overdue, Pending Acceptance, Terminated, Unbilled, Unknown, Unusable PaymentMethod, Pending Resume, Pending Pause The date/time the subscription starts service.
The date/time the subscription ends service.
The date/time to which the subscription will entitle service if no further payments are made – a “paid thru” date based on billing schedule and grace period.
Optional source IP Address at sign-up.
Optional “soft descriptor” to send to the payment processor for transactions from this subscription.
The day of the month on which the subscription is (typically) billed. Often called an “anniversary date.”
Number of billing cycles customer is obligated to maintain the subscription. Cancelling before this time requires aggregator to “force” cancellation.
Affiliate or channel identifier, if any, under which the subscription was submitted.
A more granular or subordinate affiliate identifier.
Indicates whether to send an expiration or trial-end email notification using the days-in-advance configuration in the Billing Plan.
The Transaction object provides a way to charge a customer. You can create one-time transactions, retrieve individual transactions, fetch individual transactions, and list all Transactions for a given account or subscription. Posting with a new Transaction creates a new one-time Transaction object. If “to_be_captured” is false, the request will trigger an authorization attempt (based on the provided payment method’s authorization process). If successfully authorized, a subsequent post to the transaction’s actions/capture endpoint will capture the authorized transaction. If you post a new transaction with “to_be_captured” true, it will authorize and immediately capture the transaction if successful. To refund transactions, use the refunds endpoint.
Show child attributes
Show child attributes
A list of any refunds associated with the Transaction in most_recent_billing.
Show child attributes
Show child attributes
The Transaction object provides a way to charge a customer. You can create one-time transactions, retrieve individual transactions, fetch individual transactions, and list all Transactions for a given account or subscription. Posting with a new Transaction creates a new one-time Transaction object. If “to_be_captured” is false, the request will trigger an authorization attempt (based on the provided payment method’s authorization process). If successfully authorized, a subsequent post to the transaction’s actions/capture endpoint will capture the authorized transaction. If you post a new transaction with “to_be_captured” true, it will authorize and immediately capture the transaction if successful. To refund transactions, use the refunds endpoint.
Show child attributes
Show child attributes
A set of key/value pairs that you can attach to an object. Useful for storing additional information. Subscription metadata will be inherited by resulting transactions.
Show child attributes
Show child attributes
The Credit object represents a service credit granted to an account or subscription, taking the form of either currency, token, or time amounts.
Show child attributes
Show child attributes
Instructions for if/how to include the invoice statement for this subscription. Values can be Attachment, DoNotSend,Inline
Attachment, DoNotSend, Inline Net Terms (in days); after this many days from a billing, the invoice will be considered delinquent.
Days before scheduled billing to deliver the statement.
Template to use for statement generation.
The Campaign code redeemed on this AutoBill against the price of the Billing Plan. To apply a Campaign, use this field to pass in a valid Coupon or Promotion code. Note This data member will not be returned.
The unique identifier for a Campaign applied to this AutoBill’s BillingPlan. This is a read-only field returned by MarketONE for informational purposes. Values sent in with a SOAP call will be ignored. Read only.
Used to create a Subscription Pending Activation.
The mandates object represents the end-custom approval for a one-time or recurring billing using their provided bank account details. A common requirement for UK and SEPA direct debit payment methods.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The policy object governing Subscription behavior.
Was this page helpful?

