Api request
Url | |||
---|---|---|---|
Ok | POST |
Request to "https://rest.apisandbox.zuora.com/v1/orders/preview"
.
array:4 [ "Host" => array:1 [ 0 => "rest.apisandbox.zuora.com" ] "User-Agent" => array:1 [ 0 => "Swagger-Codegen/1.0.0/php" ] "Accept" => array:1 [ 0 => "application/json" ] "Content-Type" => array:1 [ 0 => "application/json" ] ] |
array:4 [ "orderDate" => "2024-09-28" "previewAccountInfo" => array:3 [ "billCycleDay" => 28 "currency" => "EUR" "soldToContact" => array:1 [ "country" => "FR" ] ] "previewOptions" => array:3 [ "previewThruType" => "SpecificDate" "previewTypes" => array:3 [ 0 => "OrderMetrics" 1 => "BillingDocs" 2 => "ChargeMetrics" ] "specificPreviewThruDate" => "2024-09-28" ] "subscriptions" => array:1 [ 0 => array:2 [ "customFields" => [] "orderActions" => array:1 [ 0 => array:3 [ "createSubscription" => array:2 [ "subscribeToRatePlans" => array:1 [ 0 => array:3 [ "chargeOverrides" => array:1 [ 0 => array:3 [ "chargeNumber" => "PRW-CH_9764fe95ab97885d1a3a912659295d70" "pricing" => array:1 [ "recurringFlatFee" => [] ] "productRatePlanChargeId" => "8ad0965d7d769bbd017d7faf4be623fd" ] ] "customFields" => [] "productRatePlanId" => "8ad0965d7d769bbd017d7faf4bbf23fa" ] ] "terms" => array:4 [ "autoRenew" => false "initialTerm" => array:4 [ "period" => 120 "periodType" => "Month" "startDate" => "2024-09-28" "termType" => "TERMED" ] "renewalSetting" => "RENEW_WITH_SPECIFIC_TERM" "renewalTerms" => array:1 [ 0 => array:2 [ "period" => 1 "periodType" => "Month" ] ] ] ] "triggerDates" => array:3 [ 0 => array:2 [ "name" => "ContractEffective" "triggerDate" => "2024-09-28" ] 1 => array:2 [ "name" => "ServiceActivation" "triggerDate" => "2024-09-28" ] 2 => array:2 [ "name" => "CustomerAcceptance" "triggerDate" => "2024-09-28" ] ] "type" => "CreateSubscription" ] ] ] ] ] |
array:2 [ "success" => true "previewResult" => array:3 [ "chargeMetrics" => array:1 [ 0 => array:2 [ "subscriptionNumber" => null "charges" => array:1 [ 0 => array:8 [ "productRatePlanId" => "8ad0965d7d769bbd017d7faf4bbf23fa" "subscriptionRatePlanNumber" => "SRP-00023191" "productRatePlanChargeId" => "8ad0965d7d769bbd017d7faf4be623fd" "originRatePlanId" => null "chargeNumber" => "PRW-CH_9764fe95ab97885d1a3a912659295d70" "cmrr" => array:4 [ "regular" => 137.5 "discount" => null "regularDelta" => 137.5 "discountDelta" => null ] "tcv" => array:4 [ "regular" => 16500.0 "discount" => null "regularDelta" => 16500.0 "discountDelta" => null ] "tcb" => array:4 [ "regular" => 16500.0 "discount" => null "regularDelta" => 16500.0 "discountDelta" => null ] ] ] ] ] "invoices" => array:1 [ 0 => array:5 [ "amount" => 1650.0 "amountWithoutTax" => 1375.0 "taxAmount" => 275.0 "targetDate" => "2024-09-28" "invoiceItems" => array:1 [ 0 => array:14 [ "serviceStartDate" => "2024-09-28" "serviceEndDate" => "2025-09-27" "amountWithoutTax" => 1375.0 "taxAmount" => 275.0 "chargeDescription" => "" "chargeName" => "Maintenance software pour le logiciel Stream version 2000" "chargeNumber" => "PRW-CH_9764fe95ab97885d1a3a912659295d70" "processingType" => "Charge" "productName" => "STREAM_EMS_FR_EUR" "productRatePlanChargeId" => "8ad0965d7d769bbd017d7faf4be623fd" "unitPrice" => 1650.0 "subscriptionNumber" => null "orderLineItemNumber" => null "additionalInfo" => array:3 [ "quantity" => 1 "unitOfMeasure" => "" "numberOfDeliveries" => 0.0 ] ] ] ] ] "orderMetrics" => array:1 [ 0 => array:2 [ "orderActions" => array:1 [ 0 => array:3 [ "sequence" => 0 "type" => "CreateSubscription" "orderMetrics" => array:1 [ 0 => array:9 [ "productRatePlanChargeId" => "8ad0965d7d769bbd017d7faf4be623fd" "originRatePlanId" => "8ad087d29222960a01923862b497770f" "tcb" => array:1 [ 0 => array:8 [ "subscriptionOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "invoiceOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "amount" => 16500.0 "endDate" => "2034-09-27" "termNumber" => 1 "tax" => null "type" => "Regular" "startDate" => "2024-09-28" ] ] "quantity" => array:1 [ 0 => array:6 [ "subscriptionOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "invoiceOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "amount" => 1.0 "endDate" => "2034-09-27" "termNumber" => 1 "startDate" => "2024-09-28" ] ] "productRatePlanId" => "8ad0965d7d769bbd017d7faf4bbf23fa" "subscriptionRatePlanNumber" => "SRP-00023191" "tcv" => array:1 [ 0 => array:7 [ "subscriptionOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "invoiceOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "amount" => 16500.0 "endDate" => "2034-09-27" "termNumber" => 1 "type" => "Regular" "startDate" => "2024-09-28" ] ] "chargeNumber" => "PRW-CH_9764fe95ab97885d1a3a912659295d70" "mrr" => array:1 [ 0 => array:7 [ "subscriptionOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "invoiceOwner" => "1db97f36-419a-4069-81d4-656ce83e5acd" "amount" => 137.5 "endDate" => "2034-09-27" "termNumber" => 1 "type" => "Regular" "startDate" => "2024-09-28" ] ] ] ] ] ] "subscriptionNumber" => null ] ] ] ] |