curl --request POST \
--url https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
"{ \"id\": \"Payment_1627412499\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\" }, \"subscription\": \"Subscription_1627411928\", \"invoice\": \"Subscription_1627411928-00000000\", \"currency\": \"USD\", \"payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\" }, \"amount\": \"109.11\", \"overage_disposition\": \"applyToThisAutoBill\" }"
'import requests
url = "https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments"
payload = "{ \"id\": \"Payment_1627412499\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\" }, \"subscription\": \"Subscription_1627411928\", \"invoice\": \"Subscription_1627411928-00000000\", \"currency\": \"USD\", \"payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\" }, \"amount\": \"109.11\", \"overage_disposition\": \"applyToThisAutoBill\" }"
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify('{ "id": "Payment_1627412499", "account": { "object": "Account", "id": "Account_1627411928" }, "subscription": "Subscription_1627411928", "invoice": "Subscription_1627411928-00000000", "currency": "USD", "payment_method": { "object": "PaymentMethod", "id": "MAP_1627412403" }, "amount": "109.11", "overage_disposition": "applyToThisAutoBill" }')
};
fetch('https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments', 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://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments",
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('{ "id": "Payment_1627412499", "account": { "object": "Account", "id": "Account_1627411928" }, "subscription": "Subscription_1627411928", "invoice": "Subscription_1627411928-00000000", "currency": "USD", "payment_method": { "object": "PaymentMethod", "id": "MAP_1627412403" }, "amount": "109.11", "overage_disposition": "applyToThisAutoBill" }'),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments"
payload := strings.NewReader("\"{ \\\"id\\\": \\\"Payment_1627412499\\\", \\\"account\\\": { \\\"object\\\": \\\"Account\\\", \\\"id\\\": \\\"Account_1627411928\\\" }, \\\"subscription\\\": \\\"Subscription_1627411928\\\", \\\"invoice\\\": \\\"Subscription_1627411928-00000000\\\", \\\"currency\\\": \\\"USD\\\", \\\"payment_method\\\": { \\\"object\\\": \\\"PaymentMethod\\\", \\\"id\\\": \\\"MAP_1627412403\\\" }, \\\"amount\\\": \\\"109.11\\\", \\\"overage_disposition\\\": \\\"applyToThisAutoBill\\\" }\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("\"{ \\\"id\\\": \\\"Payment_1627412499\\\", \\\"account\\\": { \\\"object\\\": \\\"Account\\\", \\\"id\\\": \\\"Account_1627411928\\\" }, \\\"subscription\\\": \\\"Subscription_1627411928\\\", \\\"invoice\\\": \\\"Subscription_1627411928-00000000\\\", \\\"currency\\\": \\\"USD\\\", \\\"payment_method\\\": { \\\"object\\\": \\\"PaymentMethod\\\", \\\"id\\\": \\\"MAP_1627412403\\\" }, \\\"amount\\\": \\\"109.11\\\", \\\"overage_disposition\\\": \\\"applyToThisAutoBill\\\" }\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "\"{ \\\"id\\\": \\\"Payment_1627412499\\\", \\\"account\\\": { \\\"object\\\": \\\"Account\\\", \\\"id\\\": \\\"Account_1627411928\\\" }, \\\"subscription\\\": \\\"Subscription_1627411928\\\", \\\"invoice\\\": \\\"Subscription_1627411928-00000000\\\", \\\"currency\\\": \\\"USD\\\", \\\"payment_method\\\": { \\\"object\\\": \\\"PaymentMethod\\\", \\\"id\\\": \\\"MAP_1627412403\\\" }, \\\"amount\\\": \\\"109.11\\\", \\\"overage_disposition\\\": \\\"applyToThisAutoBill\\\" }\""
response = http.request(request)
puts response.read_body"{ \"object\": \"Payment\", \"id\": \"Payment_1627412499\", \"vid\": \"f8c7ebb86fb029747d90c0668c1cb07f0ff7777f\", \"created\": \"2021-07-27T19:01:39+00:00\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\" }, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" }, \"invoice\": { \"object\": \"Invoice\", \"id\": \"Subscription_1627411928-00000000\", \"vid\": \"74b891179905180dc134c4e31d2436c6214971fd\", \"billing_service_period_start\": \"2021-07-27T00:00:00+00:00\", \"billing_service_period_end\": \"2022-07-26T00:00:00+00:00\", \"due_date\": \"2021-09-25T00:00:00+00:00\", \"invoice_date\": \"2021-07-27T00:00:00+00:00\", \"status\": \"Due\", \"invoice_currency\": \"USD\", \"invoice_balance\": 109.11, \"gross_charges_total\": 109.11, \"tax_charges_total\": 9.12, \"credit_total\": 0, \"payments_received_total\": 109.11, \"invoice_line_items\": { \"object\": \"List\", \"data\": [ { \"object\": \"InvoiceItem\", \"index_number\": 0, \"type\": \"RecurringCharge\", \"sku\": \"ANNUAL\", \"description\": \"Recurring Charge, Billing Plan ANNUAL\", \"quantity\": 1, \"unit_amount\": 0, \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"billing_plan\": { \"object\": \"BillingPlan\", \"id\": \"ANNUAL\", \"vid\": \"4da26e523ad9d7370ba65ddffb389e2a9030f7fb\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 1, \"type\": \"RecurringCharge\", \"sku\": \"BOOTCAMP-ANNUAL\", \"description\": \"Bootcamp Annual Subscription\", \"quantity\": 1, \"unit_amount\": 99.99, \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } } ], \"total_count\": 2 }, \"invoice_tax_items\": { \"object\": \"List\", \"data\": [ { \"object\": \"InvoiceItem\", \"index_number\": 2, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX\", \"description\": \"Sales Tax Total\", \"quantity\": 1, \"unit_amount\": 9.12, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 3, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_COUNTY_085\", \"description\": \"SANTA CLARA COUNTY SALES TAX\", \"quantity\": 1, \"unit_amount\": 0.25, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 4, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_SPECIAL_EMBK0\", \"description\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1.87, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 5, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_SPECIAL_EMUA0\", \"description\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 6, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_STATE_06\", \"description\": \"CALIFORNIA STATE SALES TAX\", \"quantity\": 1, \"unit_amount\": 6, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 7, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1\", \"description\": \"Total\", \"quantity\": 1, \"unit_amount\": 9.12, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 8, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_COUNTY_085\", \"description\": \"SANTA CLARA COUNTY SALES TAX\", \"quantity\": 1, \"unit_amount\": 0.25, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 9, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_SPECIAL_EMBK0\", \"description\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1.87, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 10, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_SPECIAL_EMUA0\", \"description\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 11, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_STATE_06\", \"description\": \"CALIFORNIA STATE SALES TAX\", \"quantity\": 1, \"unit_amount\": 6, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } } ], \"total_count\": 10 }, \"invoice_payments\": { \"object\": \"List\", \"data\": [ { \"object\": \"Transaction\", \"id\": \"SLD10004338\", \"vid\": \"d332f26624e20bd0936285c5de9f7467b837d22a\", \"created\": \"2021-07-27T19:01:39+00:00\", \"amount\": 109.11, \"currency\": \"USD\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\", \"created\": \"2021-07-27T18:52:08+00:00\", \"default_currency\": \"USD\", \"email\": \"sbakaraju@vindicia.com\", \"email_type\": \"html\", \"language\": \"EN\", \"name\": \"Julia Jenkins\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"payment_methods\": { \"object\": \"List\", \"data\": [ { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627411928\", \"vid\": \"3a1d7de3d1f371988759adcdbbee4bf939fa9e04\", \"created\": \"2021-07-27T18:52:09+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 0, \"currency\": \"USD\", \"created\": \"2021-07-27T18:52:09+00:00\", \"payment_type\": \"MerchantAcceptedPayment\", \"account\": \"XXX\" }, \"primary\": true, \"active\": true } ], \"total_count\": 1 } }, \"source_payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\", \"vid\": \"2ca52e196cbd6e2a4b94be0a6b21d27ec9eb6bbd\", \"created\": \"2021-07-27T19:00:03+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 109.11, \"currency\": \"USD\", \"created\": \"2021-07-27T19:00:03+00:00\", \"payment_type\": \"External System\", \"account\": \"XXXXX5327\", \"last_digits\": \"5327\" }, \"billing_address\": { \"object\": \"Address\", \"vid\": \"f2dc4bff59b7e01bd4f23c5ff6dc6ae171fd16ec\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"primary\": true, \"active\": false }, \"status_log\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionStatus\", \"status\": \"Authorized\", \"created\": \"2021-07-27T19:01:40+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\", \"note\": \"VIN_900 - N/A\" }, { \"object\": \"TransactionStatus\", \"status\": \"New\", \"created\": \"2021-07-27T19:01:39+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\" } ], \"total_count\": 2 }, \"payment_processor\": \"Vindicia\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"metadata\": { \"vin:BillingPlanUnit\": \"year\", \"vin:RetryNumber\": \"0\", \"vin:BillingPlanLength\": \"1\", \"vin:BillingPlanDurationInSeconds\": \"0\", \"vin:BillingCycle\": \"0\", \"vin:FutureAmount\": \"99.99\" }, \"items\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionItem\", \"sku\": \"ANNUAL\", \"index_number\": 1, \"item_type\": \"Purchase\", \"name\": \"Recurring Charge, Billing Plan ANNUAL\", \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"total\": 0 }, { \"object\": \"TransactionItem\", \"sku\": \"BOOTCAMP-ANNUAL\", \"index_number\": 2, \"item_type\": \"Purchase\", \"name\": \"Bootcamp Annual Subscription\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" }, \"price\": 99.99, \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25, \"external_tax_name\": \"CA COUNTY TAX\", \"external_jurisdiction_name\": \"SANTA CLARA\", \"tax_rate\": 0.0025 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA COUNTY DISTRICT TAX SP\", \"tax_rate\": 0.01875 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA CO LOCAL TAX SL\", \"tax_rate\": 0.01 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6, \"external_tax_name\": \"CA STATE TAX\", \"external_jurisdiction_name\": \"CALIFORNIA\", \"tax_rate\": 0.06 } ], \"total_count\": 4 }, \"subtotal\": 99.99, \"total\": 109.11 }, { \"object\": \"TransactionItem\", \"sku\": \"Total Tax\", \"index_number\": 3, \"item_type\": \"Purchase\", \"name\": \"Total Tax\", \"price\": 0, \"quantity\": 1, \"tax_classification\": \"TaxExempt\", \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6 } ], \"total_count\": 4 }, \"discount\": 0, \"subtotal\": 0, \"total\": 9.12 } ], \"total_count\": 3 }, \"billing_descriptor\": \"Bootcamp Annual Subscription\", \"sales_tax_address\": { \"object\": \"Address\", \"vid\": \"a928dcab03521e960d2a34902877da78c804077e\", \"line1\": \"ABE Ave\", \"city\": \"SAN JOSE\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"subscription_sequence\": 1, \"billing_plan_sequence\": 1, \"original_billing_date\": \"2021-07-27T00:00:00+00:00\", \"billing_attempt\": 0, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" } } ], \"total_count\": 1 }, \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\" }, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" }, \"billing_sequence\": 0 }, \"payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\", \"vid\": \"2ca52e196cbd6e2a4b94be0a6b21d27ec9eb6bbd\" }, \"amount\": 109.11, \"currency\": \"USD\", \"overage_disposition\": \"applyToThisAutoBill\", \"transaction\": { \"object\": \"Transaction\", \"id\": \"SLD10004338\", \"vid\": \"d332f26624e20bd0936285c5de9f7467b837d22a\", \"created\": \"2021-07-27T19:01:39+00:00\", \"amount\": 109.11, \"currency\": \"USD\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\", \"created\": \"2021-07-27T18:52:08+00:00\", \"default_currency\": \"USD\", \"email\": \"sbakaraju@vindicia.com\", \"email_type\": \"html\", \"language\": \"EN\", \"name\": \"Julia Jenkins\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"payment_methods\": { \"object\": \"List\", \"data\": [ { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627411928\", \"vid\": \"3a1d7de3d1f371988759adcdbbee4bf939fa9e04\", \"created\": \"2021-07-27T18:52:09+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 0, \"currency\": \"USD\", \"created\": \"2021-07-27T18:52:09+00:00\", \"payment_type\": \"MerchantAcceptedPayment\", \"account\": \"XXX\" }, \"primary\": true, \"active\": true } ], \"total_count\": 1 } }, \"source_payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\", \"vid\": \"2ca52e196cbd6e2a4b94be0a6b21d27ec9eb6bbd\", \"created\": \"2021-07-27T19:00:03+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 109.11, \"currency\": \"USD\", \"created\": \"2021-07-27T19:00:03+00:00\", \"payment_type\": \"External System\", \"account\": \"XXXXX5327\", \"last_digits\": \"5327\" }, \"billing_address\": { \"object\": \"Address\", \"vid\": \"f2dc4bff59b7e01bd4f23c5ff6dc6ae171fd16ec\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"primary\": true, \"active\": false }, \"status_log\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionStatus\", \"status\": \"Authorized\", \"created\": \"2021-07-27T19:01:40+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\", \"note\": \"VIN_900 - N/A\" }, { \"object\": \"TransactionStatus\", \"status\": \"New\", \"created\": \"2021-07-27T19:01:39+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\" } ], \"total_count\": 2 }, \"payment_processor\": \"Vindicia\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"metadata\": { \"vin:BillingPlanUnit\": \"year\", \"vin:RetryNumber\": \"0\", \"vin:BillingPlanLength\": \"1\", \"vin:BillingPlanDurationInSeconds\": \"0\", \"vin:BillingCycle\": \"0\", \"vin:FutureAmount\": \"99.99\" }, \"items\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionItem\", \"sku\": \"ANNUAL\", \"index_number\": 1, \"item_type\": \"Purchase\", \"name\": \"Recurring Charge, Billing Plan ANNUAL\", \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"total\": 0 }, { \"object\": \"TransactionItem\", \"sku\": \"BOOTCAMP-ANNUAL\", \"index_number\": 2, \"item_type\": \"Purchase\", \"name\": \"Bootcamp Annual Subscription\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" }, \"price\": 99.99, \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25, \"external_tax_name\": \"CA COUNTY TAX\", \"external_jurisdiction_name\": \"SANTA CLARA\", \"tax_rate\": 0.0025 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA COUNTY DISTRICT TAX SP\", \"tax_rate\": 0.01875 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA CO LOCAL TAX SL\", \"tax_rate\": 0.01 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6, \"external_tax_name\": \"CA STATE TAX\", \"external_jurisdiction_name\": \"CALIFORNIA\", \"tax_rate\": 0.06 } ], \"total_count\": 4 }, \"subtotal\": 99.99, \"total\": 109.11 }, { \"object\": \"TransactionItem\", \"sku\": \"Total Tax\", \"index_number\": 3, \"item_type\": \"Purchase\", \"name\": \"Total Tax\", \"price\": 0, \"quantity\": 1, \"tax_classification\": \"TaxExempt\", \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6 } ], \"total_count\": 4 }, \"discount\": 0, \"subtotal\": 0, \"total\": 9.12 } ], \"total_count\": 3 }, \"billing_descriptor\": \"Bootcamp Annual Subscription\", \"sales_tax_address\": { \"object\": \"Address\", \"vid\": \"a928dcab03521e960d2a34902877da78c804077e\", \"line1\": \"ABE Ave\", \"city\": \"SAN JOSE\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"subscription_sequence\": 1, \"billing_plan_sequence\": 1, \"original_billing_date\": \"2021-07-27T00:00:00+00:00\", \"billing_attempt\": 0, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" } }, \"status\": \"Pending\" }""{ \"object\": \"Error\", \"message\": \"JSON is invalid\" }"{
"code": "<string>",
"message": "<string>"
}"{ \"object\": \"Error\", \"message\": \"This endpoint does not exist. Check our API docs.\" }"Create a Payment
Creates a new payment object.
Note:- When creating a payment for Merchant Accepted Payment method, a prior step is required for creating the payment method - creating a payment method object and should be included in the request. See Create a Payment Method for more details.
curl --request POST \
--url https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
"{ \"id\": \"Payment_1627412499\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\" }, \"subscription\": \"Subscription_1627411928\", \"invoice\": \"Subscription_1627411928-00000000\", \"currency\": \"USD\", \"payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\" }, \"amount\": \"109.11\", \"overage_disposition\": \"applyToThisAutoBill\" }"
'import requests
url = "https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments"
payload = "{ \"id\": \"Payment_1627412499\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\" }, \"subscription\": \"Subscription_1627411928\", \"invoice\": \"Subscription_1627411928-00000000\", \"currency\": \"USD\", \"payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\" }, \"amount\": \"109.11\", \"overage_disposition\": \"applyToThisAutoBill\" }"
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify('{ "id": "Payment_1627412499", "account": { "object": "Account", "id": "Account_1627411928" }, "subscription": "Subscription_1627411928", "invoice": "Subscription_1627411928-00000000", "currency": "USD", "payment_method": { "object": "PaymentMethod", "id": "MAP_1627412403" }, "amount": "109.11", "overage_disposition": "applyToThisAutoBill" }')
};
fetch('https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments', 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://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments",
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('{ "id": "Payment_1627412499", "account": { "object": "Account", "id": "Account_1627411928" }, "subscription": "Subscription_1627411928", "invoice": "Subscription_1627411928-00000000", "currency": "USD", "payment_method": { "object": "PaymentMethod", "id": "MAP_1627412403" }, "amount": "109.11", "overage_disposition": "applyToThisAutoBill" }'),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments"
payload := strings.NewReader("\"{ \\\"id\\\": \\\"Payment_1627412499\\\", \\\"account\\\": { \\\"object\\\": \\\"Account\\\", \\\"id\\\": \\\"Account_1627411928\\\" }, \\\"subscription\\\": \\\"Subscription_1627411928\\\", \\\"invoice\\\": \\\"Subscription_1627411928-00000000\\\", \\\"currency\\\": \\\"USD\\\", \\\"payment_method\\\": { \\\"object\\\": \\\"PaymentMethod\\\", \\\"id\\\": \\\"MAP_1627412403\\\" }, \\\"amount\\\": \\\"109.11\\\", \\\"overage_disposition\\\": \\\"applyToThisAutoBill\\\" }\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("\"{ \\\"id\\\": \\\"Payment_1627412499\\\", \\\"account\\\": { \\\"object\\\": \\\"Account\\\", \\\"id\\\": \\\"Account_1627411928\\\" }, \\\"subscription\\\": \\\"Subscription_1627411928\\\", \\\"invoice\\\": \\\"Subscription_1627411928-00000000\\\", \\\"currency\\\": \\\"USD\\\", \\\"payment_method\\\": { \\\"object\\\": \\\"PaymentMethod\\\", \\\"id\\\": \\\"MAP_1627412403\\\" }, \\\"amount\\\": \\\"109.11\\\", \\\"overage_disposition\\\": \\\"applyToThisAutoBill\\\" }\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://virtserver.swaggerhub.com/Amdocs_Media/Subscribe_API_WIP/2024.09/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "\"{ \\\"id\\\": \\\"Payment_1627412499\\\", \\\"account\\\": { \\\"object\\\": \\\"Account\\\", \\\"id\\\": \\\"Account_1627411928\\\" }, \\\"subscription\\\": \\\"Subscription_1627411928\\\", \\\"invoice\\\": \\\"Subscription_1627411928-00000000\\\", \\\"currency\\\": \\\"USD\\\", \\\"payment_method\\\": { \\\"object\\\": \\\"PaymentMethod\\\", \\\"id\\\": \\\"MAP_1627412403\\\" }, \\\"amount\\\": \\\"109.11\\\", \\\"overage_disposition\\\": \\\"applyToThisAutoBill\\\" }\""
response = http.request(request)
puts response.read_body"{ \"object\": \"Payment\", \"id\": \"Payment_1627412499\", \"vid\": \"f8c7ebb86fb029747d90c0668c1cb07f0ff7777f\", \"created\": \"2021-07-27T19:01:39+00:00\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\" }, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" }, \"invoice\": { \"object\": \"Invoice\", \"id\": \"Subscription_1627411928-00000000\", \"vid\": \"74b891179905180dc134c4e31d2436c6214971fd\", \"billing_service_period_start\": \"2021-07-27T00:00:00+00:00\", \"billing_service_period_end\": \"2022-07-26T00:00:00+00:00\", \"due_date\": \"2021-09-25T00:00:00+00:00\", \"invoice_date\": \"2021-07-27T00:00:00+00:00\", \"status\": \"Due\", \"invoice_currency\": \"USD\", \"invoice_balance\": 109.11, \"gross_charges_total\": 109.11, \"tax_charges_total\": 9.12, \"credit_total\": 0, \"payments_received_total\": 109.11, \"invoice_line_items\": { \"object\": \"List\", \"data\": [ { \"object\": \"InvoiceItem\", \"index_number\": 0, \"type\": \"RecurringCharge\", \"sku\": \"ANNUAL\", \"description\": \"Recurring Charge, Billing Plan ANNUAL\", \"quantity\": 1, \"unit_amount\": 0, \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"billing_plan\": { \"object\": \"BillingPlan\", \"id\": \"ANNUAL\", \"vid\": \"4da26e523ad9d7370ba65ddffb389e2a9030f7fb\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 1, \"type\": \"RecurringCharge\", \"sku\": \"BOOTCAMP-ANNUAL\", \"description\": \"Bootcamp Annual Subscription\", \"quantity\": 1, \"unit_amount\": 99.99, \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } } ], \"total_count\": 2 }, \"invoice_tax_items\": { \"object\": \"List\", \"data\": [ { \"object\": \"InvoiceItem\", \"index_number\": 2, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX\", \"description\": \"Sales Tax Total\", \"quantity\": 1, \"unit_amount\": 9.12, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 3, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_COUNTY_085\", \"description\": \"SANTA CLARA COUNTY SALES TAX\", \"quantity\": 1, \"unit_amount\": 0.25, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 4, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_SPECIAL_EMBK0\", \"description\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1.87, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 5, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_SPECIAL_EMUA0\", \"description\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 6, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_STATE_06\", \"description\": \"CALIFORNIA STATE SALES TAX\", \"quantity\": 1, \"unit_amount\": 6, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\" }, { \"object\": \"InvoiceItem\", \"index_number\": 7, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1\", \"description\": \"Total\", \"quantity\": 1, \"unit_amount\": 9.12, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 8, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_COUNTY_085\", \"description\": \"SANTA CLARA COUNTY SALES TAX\", \"quantity\": 1, \"unit_amount\": 0.25, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 9, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_SPECIAL_EMBK0\", \"description\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1.87, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 10, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_SPECIAL_EMUA0\", \"description\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"quantity\": 1, \"unit_amount\": 1, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } }, { \"object\": \"InvoiceItem\", \"index_number\": 11, \"type\": \"Tax\", \"sku\": \"VIN_SALES_TAX_ITEM_1_STATE_06\", \"description\": \"CALIFORNIA STATE SALES TAX\", \"quantity\": 1, \"unit_amount\": 6, \"tax_classification\": \"TaxExempt\", \"item_added\": \"2021-07-27T00:00:00+00:00\", \"item_removed\": null, \"item_serviceperiod_start\": \"2021-07-27T00:00:00+00:00\", \"item_serviceperiod_end\": \"2022-07-26T00:00:00+00:00\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" } } ], \"total_count\": 10 }, \"invoice_payments\": { \"object\": \"List\", \"data\": [ { \"object\": \"Transaction\", \"id\": \"SLD10004338\", \"vid\": \"d332f26624e20bd0936285c5de9f7467b837d22a\", \"created\": \"2021-07-27T19:01:39+00:00\", \"amount\": 109.11, \"currency\": \"USD\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\", \"created\": \"2021-07-27T18:52:08+00:00\", \"default_currency\": \"USD\", \"email\": \"sbakaraju@vindicia.com\", \"email_type\": \"html\", \"language\": \"EN\", \"name\": \"Julia Jenkins\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"payment_methods\": { \"object\": \"List\", \"data\": [ { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627411928\", \"vid\": \"3a1d7de3d1f371988759adcdbbee4bf939fa9e04\", \"created\": \"2021-07-27T18:52:09+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 0, \"currency\": \"USD\", \"created\": \"2021-07-27T18:52:09+00:00\", \"payment_type\": \"MerchantAcceptedPayment\", \"account\": \"XXX\" }, \"primary\": true, \"active\": true } ], \"total_count\": 1 } }, \"source_payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\", \"vid\": \"2ca52e196cbd6e2a4b94be0a6b21d27ec9eb6bbd\", \"created\": \"2021-07-27T19:00:03+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 109.11, \"currency\": \"USD\", \"created\": \"2021-07-27T19:00:03+00:00\", \"payment_type\": \"External System\", \"account\": \"XXXXX5327\", \"last_digits\": \"5327\" }, \"billing_address\": { \"object\": \"Address\", \"vid\": \"f2dc4bff59b7e01bd4f23c5ff6dc6ae171fd16ec\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"primary\": true, \"active\": false }, \"status_log\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionStatus\", \"status\": \"Authorized\", \"created\": \"2021-07-27T19:01:40+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\", \"note\": \"VIN_900 - N/A\" }, { \"object\": \"TransactionStatus\", \"status\": \"New\", \"created\": \"2021-07-27T19:01:39+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\" } ], \"total_count\": 2 }, \"payment_processor\": \"Vindicia\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"metadata\": { \"vin:BillingPlanUnit\": \"year\", \"vin:RetryNumber\": \"0\", \"vin:BillingPlanLength\": \"1\", \"vin:BillingPlanDurationInSeconds\": \"0\", \"vin:BillingCycle\": \"0\", \"vin:FutureAmount\": \"99.99\" }, \"items\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionItem\", \"sku\": \"ANNUAL\", \"index_number\": 1, \"item_type\": \"Purchase\", \"name\": \"Recurring Charge, Billing Plan ANNUAL\", \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"total\": 0 }, { \"object\": \"TransactionItem\", \"sku\": \"BOOTCAMP-ANNUAL\", \"index_number\": 2, \"item_type\": \"Purchase\", \"name\": \"Bootcamp Annual Subscription\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" }, \"price\": 99.99, \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25, \"external_tax_name\": \"CA COUNTY TAX\", \"external_jurisdiction_name\": \"SANTA CLARA\", \"tax_rate\": 0.0025 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA COUNTY DISTRICT TAX SP\", \"tax_rate\": 0.01875 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA CO LOCAL TAX SL\", \"tax_rate\": 0.01 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6, \"external_tax_name\": \"CA STATE TAX\", \"external_jurisdiction_name\": \"CALIFORNIA\", \"tax_rate\": 0.06 } ], \"total_count\": 4 }, \"subtotal\": 99.99, \"total\": 109.11 }, { \"object\": \"TransactionItem\", \"sku\": \"Total Tax\", \"index_number\": 3, \"item_type\": \"Purchase\", \"name\": \"Total Tax\", \"price\": 0, \"quantity\": 1, \"tax_classification\": \"TaxExempt\", \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6 } ], \"total_count\": 4 }, \"discount\": 0, \"subtotal\": 0, \"total\": 9.12 } ], \"total_count\": 3 }, \"billing_descriptor\": \"Bootcamp Annual Subscription\", \"sales_tax_address\": { \"object\": \"Address\", \"vid\": \"a928dcab03521e960d2a34902877da78c804077e\", \"line1\": \"ABE Ave\", \"city\": \"SAN JOSE\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"subscription_sequence\": 1, \"billing_plan_sequence\": 1, \"original_billing_date\": \"2021-07-27T00:00:00+00:00\", \"billing_attempt\": 0, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" } } ], \"total_count\": 1 }, \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\" }, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" }, \"billing_sequence\": 0 }, \"payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\", \"vid\": \"2ca52e196cbd6e2a4b94be0a6b21d27ec9eb6bbd\" }, \"amount\": 109.11, \"currency\": \"USD\", \"overage_disposition\": \"applyToThisAutoBill\", \"transaction\": { \"object\": \"Transaction\", \"id\": \"SLD10004338\", \"vid\": \"d332f26624e20bd0936285c5de9f7467b837d22a\", \"created\": \"2021-07-27T19:01:39+00:00\", \"amount\": 109.11, \"currency\": \"USD\", \"account\": { \"object\": \"Account\", \"id\": \"Account_1627411928\", \"vid\": \"49eca12d299daf4196c6722169b05a192b55600e\", \"created\": \"2021-07-27T18:52:08+00:00\", \"default_currency\": \"USD\", \"email\": \"sbakaraju@vindicia.com\", \"email_type\": \"html\", \"language\": \"EN\", \"name\": \"Julia Jenkins\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"payment_methods\": { \"object\": \"List\", \"data\": [ { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627411928\", \"vid\": \"3a1d7de3d1f371988759adcdbbee4bf939fa9e04\", \"created\": \"2021-07-27T18:52:09+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 0, \"currency\": \"USD\", \"created\": \"2021-07-27T18:52:09+00:00\", \"payment_type\": \"MerchantAcceptedPayment\", \"account\": \"XXX\" }, \"primary\": true, \"active\": true } ], \"total_count\": 1 } }, \"source_payment_method\": { \"object\": \"PaymentMethod\", \"id\": \"MAP_1627412403\", \"vid\": \"2ca52e196cbd6e2a4b94be0a6b21d27ec9eb6bbd\", \"created\": \"2021-07-27T19:00:03+00:00\", \"type\": \"MerchantAcceptedPayment\", \"merchant_accepted_payment\": { \"object\": \"MerchantAcceptedPayment\", \"amount\": 109.11, \"currency\": \"USD\", \"created\": \"2021-07-27T19:00:03+00:00\", \"payment_type\": \"External System\", \"account\": \"XXXXX5327\", \"last_digits\": \"5327\" }, \"billing_address\": { \"object\": \"Address\", \"vid\": \"f2dc4bff59b7e01bd4f23c5ff6dc6ae171fd16ec\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"primary\": true, \"active\": false }, \"status_log\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionStatus\", \"status\": \"Authorized\", \"created\": \"2021-07-27T19:01:40+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\", \"note\": \"VIN_900 - N/A\" }, { \"object\": \"TransactionStatus\", \"status\": \"New\", \"created\": \"2021-07-27T19:01:39+00:00\", \"payment_method_type\": \"MerchantAcceptedPayment\" } ], \"total_count\": 2 }, \"payment_processor\": \"Vindicia\", \"shipping_address\": { \"object\": \"Address\", \"vid\": \"e4bc8c78e45bda08e42766e79fae9135b57f09cc\", \"line1\": \"ABE Ave\", \"city\": \"San Jose\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"metadata\": { \"vin:BillingPlanUnit\": \"year\", \"vin:RetryNumber\": \"0\", \"vin:BillingPlanLength\": \"1\", \"vin:BillingPlanDurationInSeconds\": \"0\", \"vin:BillingCycle\": \"0\", \"vin:FutureAmount\": \"99.99\" }, \"items\": { \"object\": \"List\", \"data\": [ { \"object\": \"TransactionItem\", \"sku\": \"ANNUAL\", \"index_number\": 1, \"item_type\": \"Purchase\", \"name\": \"Recurring Charge, Billing Plan ANNUAL\", \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"total\": 0 }, { \"object\": \"TransactionItem\", \"sku\": \"BOOTCAMP-ANNUAL\", \"index_number\": 2, \"item_type\": \"Purchase\", \"name\": \"Bootcamp Annual Subscription\", \"subscription_item\": { \"object\": \"SubscriptionItem\", \"id\": \"Item_1627411928\", \"vid\": \"6b0690e30e0fe6ce07e56775b9fcb95029a06c6c\" }, \"price\": 99.99, \"quantity\": 1, \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25, \"external_tax_name\": \"CA COUNTY TAX\", \"external_jurisdiction_name\": \"SANTA CLARA\", \"tax_rate\": 0.0025 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA COUNTY DISTRICT TAX SP\", \"tax_rate\": 0.01875 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1, \"external_tax_name\": \"CA SPECIAL TAX\", \"external_jurisdiction_name\": \"SANTA CLARA CO LOCAL TAX SL\", \"tax_rate\": 0.01 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6, \"external_tax_name\": \"CA STATE TAX\", \"external_jurisdiction_name\": \"CALIFORNIA\", \"tax_rate\": 0.06 } ], \"total_count\": 4 }, \"subtotal\": 99.99, \"total\": 109.11 }, { \"object\": \"TransactionItem\", \"sku\": \"Total Tax\", \"index_number\": 3, \"item_type\": \"Purchase\", \"name\": \"Total Tax\", \"price\": 0, \"quantity\": 1, \"tax_classification\": \"TaxExempt\", \"service_period_starts\": \"2021-07-27T00:00:00+00:00\", \"service_period_ends\": \"2022-07-26T00:00:00+00:00\", \"tax_type\": \"Exclusive Sales\", \"tax\": { \"object\": \"List\", \"data\": [ { \"object\": \"TaxItem\", \"jurisdiction\": \"COUNTY_085\", \"name\": \"SANTA CLARA COUNTY SALES TAX\", \"amount\": 0.25 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMBK0\", \"name\": \"SANTA CLARA COUNTY DISTRICT TAX SP SPECIAL SALES TAX\", \"amount\": 1.87 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"SPECIAL_EMUA0\", \"name\": \"SANTA CLARA CO LOCAL TAX SL SPECIAL SALES TAX\", \"amount\": 1 }, { \"object\": \"TaxItem\", \"jurisdiction\": \"STATE_06\", \"name\": \"CALIFORNIA STATE SALES TAX\", \"amount\": 6 } ], \"total_count\": 4 }, \"discount\": 0, \"subtotal\": 0, \"total\": 9.12 } ], \"total_count\": 3 }, \"billing_descriptor\": \"Bootcamp Annual Subscription\", \"sales_tax_address\": { \"object\": \"Address\", \"vid\": \"a928dcab03521e960d2a34902877da78c804077e\", \"line1\": \"ABE Ave\", \"city\": \"SAN JOSE\", \"district\": \"CA\", \"postal_code\": \"95124\", \"country\": \"US\" }, \"subscription_sequence\": 1, \"billing_plan_sequence\": 1, \"original_billing_date\": \"2021-07-27T00:00:00+00:00\", \"billing_attempt\": 0, \"subscription\": { \"object\": \"Subscription\", \"id\": \"Subscription_1627411928\", \"vid\": \"594e837ba1797b5c9c37879d0d8aeed72acefb7e\" } }, \"status\": \"Pending\" }""{ \"object\": \"Error\", \"message\": \"JSON is invalid\" }"{
"code": "<string>",
"message": "<string>"
}"{ \"object\": \"Error\", \"message\": \"This endpoint does not exist. Check our API docs.\" }"Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
JSON - A full Payments object. For Merchant Accepted Payment payment method, a Payment Method object must be included in the payment object.
Detail about the payment done
Value is "Payment"
Payment The status of the Payment.
A unique identifier. Optionally, this object can also be identified by its vid. Using a unique custom identifier is strongly encouraged.
128A Globally Unique Identifier (GUID) for this object. This value is generated by Vindicia.
128The time this payment was initiated
The Account represents a merchant’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 CashBox 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.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Price
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
ISO 4217 currency code to be used for this Payment Amount.
Response
JSON - A full Payments object with the Transaction object included.
Detail about the payment done
Value is "Payment"
Payment The status of the Payment.
A unique identifier. Optionally, this object can also be identified by its vid. Using a unique custom identifier is strongly encouraged.
128A Globally Unique Identifier (GUID) for this object. This value is generated by Vindicia.
128The time this payment was initiated
The Account represents a merchant’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 CashBox 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.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Price
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
ISO 4217 currency code to be used for this Payment Amount.

