###### CREATE ACCOUNT ######
curl--location '
https://127.0.0.1:8080/1.0/kb/accounts' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data - raw '{
"name": "Gerald Prosacco",
"firstNameLength": "5",
"email": "
Dami...@example.org",
"currency": "ARS",
"timeZone": "Etc/UCT",
"address1": "R Teste",
"address2": "",
"postalCode": "00000-000",
"city": "Bs Aires",
"state": "SP",
"country": "AR",
"locale": "pt_BR",
"phone": "(11) 90000-0000",
"notes": "Create automated account - pt_BR"
}'
##### ADD DEFAULT PAYMENT METHOD #####
curl --location '
https://127.0.0.1:8080/1.0/kb/accounts/4c13f450-6363-4da8-8ba7-9aa840e49372/paymentMethods?isDefault=true&payAllUnpaidInvoices=false' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"pluginName": "__EXTERNAL_PAYMENT__",
"pluginInfo": {
"properties": [
]
}
}'
#### CREATE SUBSCRIPTION ####
curl --location '
https://127.0.0.1:8080/1.0/kb/accounts/4c13f450-6363-4da8-8ba7-9aa840e49372/paymentMethods?isDefault=true&payAllUnpaidInvoices=false' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--data '{
"pluginName": "__EXTERNAL_PAYMENT__",
"pluginInfo": {
"properties": [
]
}
}'
#### CREATE SUBSCRIPTION ####
curl --location '
https://127.0.0.1:8080/1.0/kb/subscriptions' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"phaseType": "EVERGREEN",
"planName": "PL_DTVGO_AR_LITE"
}'
#### UPDATE BCD #####
curl --location --request PUT '
https://127.0.0.1:8080/1.0/kb/subscriptions/512e8f20-c7df-4e9b-a69c-c40cc9212bfa/bcd' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{ "billCycleDayLocal": 3 }'
### DRYRUN ADD ON ###
curl --location '
https://127.0.0.1:8080/1.0/kb/invoices/dryRun?accountId=4c13f450-6363-4da8-8ba7-9aa840e49372' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"dryRunType": "SUBSCRIPTION_ACTION",
"dryRunAction": "START_BILLING",
"phaseType": "EVERGREEN",
"bundleId":"180bc842-3464-410f-b8d5-a993ce48a688",
"billingPeriod": "MONTHLY",
"productName": "AR_HBO_OTT",
"productCategory": "ADD_ON",
"billingPolicy": "IMMEDIATE",
"priceOverrides": [
{
"phaseType": "EVERGREEN",
"recurringPrice": 9200
}
]
}'
RESPONSE
{
"amount": 4451.61,
"currency": "ARS",
"status": "COMMITTED",
"creditAdj": 0.00,
"refundAdj": 0.00,
"invoiceId": "fdefcf7d-3750-474a-8a26-e446e26003f5",
"invoiceDate": "2026-06-04",
"targetDate": "2026-06-04",
"invoiceNumber": null,
"balance": 4451.61,
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"bundleKeys": null,
"credits": null,
"items": [
{
"invoiceItemId": "6c63e0c3-246d-40cb-af68-009b44ba2658",
"invoiceId": "fdefcf7d-3750-474a-8a26-e446e26003f5",
"linkedInvoiceItemId": null,
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"childAccountId": null,
"bundleId": "180bc842-3464-410f-b8d5-a993ce48a688",
"subscriptionId": "0b07088e-dfa0-46d4-884e-bd5d0dec5b27",
"productName": "AR_HBO_OTT",
"planName": "PL_AR_HBO_OTT-dryrun-6",
"phaseName": "PL_AR_HBO_OTT-dryrun-6-evergreen",
"usageName": null,
"prettyProductName": null,
"prettyPlanName": null,
"prettyPhaseName": null,
"prettyUsageName": null,
"itemType": "RECURRING",
"description": "PL_AR_HBO_OTT-dryrun-6-evergreen",
"startDate": "2026-06-04",
"endDate": "2026-06-19",
"amount": 4451.61,
"rate": 9200,
"currency": "ARS",
"quantity": null,
"itemDetails": null,
"catalogEffectiveDate": "2025-06-26T02:00:25.000Z",
"childItems": null,
"auditLogs": []
}
],
"trackingIds": [],
"isParentInvoice": false,
"parentInvoiceId": null,
"parentAccountId": null,
"auditLogs": []
}
##### DRYRUN CHANGE ######
curl --location '
https://127.0.0.1:8080/1.0/kb/invoices/dryRun?accountId=4c13f450-6363-4da8-8ba7-9aa840e49372' \
--header 'accept: application/json' \
--header 'X-Killbill-CreatedBy: bfb-ms-bss-customer-subscription' \
--header 'X-Killbill-ApiKey: ARGENTINA' \
--header 'X-Killbill-ApiSecret: ARGENTINA' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"dryRunType": "SUBSCRIPTION_ACTION",
"dryRunAction": "CHANGE",
"phaseType": "EVERGREEN",
"bundleId":"180bc842-3464-410f-b8d5-a993ce48a688",
"subscriptionId":"512e8f20-c7df-4e9b-a69c-c40cc9212bfa",
"planName": "PL_PLAN_PRO",
"billingPolicy": "IMMEDIATE",
"priceOverrides": [
{
"phaseType": "EVERGREEN",
"recurringPrice": 80000
}
]
}'
RESPONSE
{
"amount": 59083.01,
"currency": "ARS",
"status": "COMMITTED",
"creditAdj": 0.00,
"refundAdj": 0.00,
"invoiceId": "7130cd69-15b2-4d79-bd62-8be78fe2f714",
"invoiceDate": "2026-06-04",
"targetDate": "2026-06-04",
"invoiceNumber": null,
"balance": 59083.01,
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"bundleKeys": null,
"credits": null,
"items": [
{
"invoiceItemId": "edd81e02-8f76-4953-b137-2235f51602dc",
"invoiceId": "7130cd69-15b2-4d79-bd62-8be78fe2f714",
"linkedInvoiceItemId": null,
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"childAccountId": null,
"bundleId": "180bc842-3464-410f-b8d5-a993ce48a688",
"subscriptionId": "512e8f20-c7df-4e9b-a69c-c40cc9212bfa",
"productName": "PLAN_PRO",
"planName": "PL_PLAN_PRO-dryrun-8",
"phaseName": "PL_PLAN_PRO-dryrun-8-evergreen",
"usageName": null,
"prettyProductName": null,
"prettyPlanName": null,
"prettyPhaseName": null,
"prettyUsageName": null,
"itemType": "RECURRING",
"description": "PL_PLAN_PRO-dryrun-8-evergreen",
"startDate": "2026-06-04",
"endDate": "2026-07-03",
"amount": 77333.33,
"rate": 80000,
"currency": "ARS",
"quantity": null,
"itemDetails": null,
"catalogEffectiveDate": "2025-06-26T02:00:25.000Z",
"childItems": null,
"auditLogs": []
},
{
"invoiceItemId": "64eafa87-b90e-464a-89bb-5bd0dd9e4025",
"invoiceId": "7130cd69-15b2-4d79-bd62-8be78fe2f714",
"linkedInvoiceItemId": "3f047a32-5428-4ad9-a13f-b5db21705fcf",
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"childAccountId": null,
"bundleId": null,
"subscriptionId": null,
"productName": null,
"planName": null,
"phaseName": null,
"usageName": null,
"prettyProductName": null,
"prettyPlanName": null,
"prettyPhaseName": null,
"prettyUsageName": null,
"itemType": "REPAIR_ADJ",
"description": "Adjustment (subscription change)",
"startDate": "2026-06-04",
"endDate": "2026-06-19",
"amount": -9290.32,
"rate": null,
"currency": "ARS",
"quantity": null,
"itemDetails": null,
"catalogEffectiveDate": null,
"childItems": null,
"auditLogs": []
},
{
"invoiceItemId": "17467c97-2a2f-4163-930d-9881d53ff847",
"invoiceId": "7130cd69-15b2-4d79-bd62-8be78fe2f714",
"linkedInvoiceItemId": "b9ba490b-45ae-4ea3-b6ff-2cb08da028ab",
"accountId": "4c13f450-6363-4da8-8ba7-9aa840e49372",
"childAccountId": null,
"bundleId": null,
"subscriptionId": null,
"productName": null,
"planName": null,
"phaseName": null,
"usageName": null,
"prettyProductName": null,
"prettyPlanName": null,
"prettyPhaseName": null,
"prettyUsageName": null,
"itemType": "REPAIR_ADJ",
"description": "Adjustment (subscription change)",
"startDate": "2026-06-19",
"endDate": "2026-07-03",
"amount": -8960.00,
"rate": null,
"currency": "ARS",
"quantity": null,
"itemDetails": null,
"catalogEffectiveDate": null,