"id": "9495d9da-33be-4634-a67e-22eced59274d",
"integrationId": "T1|D MG 01|0021878",
"organizationId": "9495d9da-33be-4634-a67e-22eced59274d",
"organizationIntegrationId": "T1|D MG 01",
"name": "Nome",
"customerId": "9495d9da-33be-4634-a67e-22eced59274d",
"customerIntegrationId": "A00003",
"addressId": "9495d9da-33be-4634-a67e-22eced59274d",
"emailId": "9495d9da-33be-4634-a67e-22eced59274d",
"phoneId": "9495d9da-33be-4634-a67e-22eced59274d",
"currencyId": "9495d9da-33be-4634-a67e-22eced59274d",
"planId": "9495d9da-33be-4634-a67e-22eced59274d",
"planIntegrationId": "T1|D MG 01|0021878",
"planReference": "112233",
"planVersionId": 1,
"creationDate": "2022-04-06",
"subscriptionAccession": "2022-04-06",
"tastingDays": 1,
"billingCycleStartAt": "2022-04-06",
"subscriptionStart": "2022-04-06",
"subscriptionEnd": "2022-04-06",
"description": "campo de descrição",
"paymentMethods": [
{
"paymentMethod": "0 = None",
"paymentMethodDescription": "string"
}
],
"paymentTokenId": "59f975c5-6c5e-43ff-8da3-07b21afbccbc",
"reference": "112233",
"cancellationDate": "2022-04-06",
"chargeEach": 1,
"period": "1 = Day",
"numberOfTimes": 1,
"chargeType": "1 = WithSpecificDay",
"specificDay": 1,
"quantityDay": 1,
"referenceDay": "1 = DaysBefore",
"referencePeriod": "1 = StartOfPeriod",
"origin": "Origem",
"customer": {
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"integrationId": "T1|D MG 01|0021878",
"code": "123456",
"organizationId": "9495d9da-33be-4634-a67e-22eced59274d",
"organizationIntegrationId": "T1|D MG 01",
"reference": "00010020",
"name": "TOTVs",
"typeDocument": "1 = NaturalPerson",
"documentNumber": "308540",
"stateRegistration": "000.000.000.000",
"cityRegistration": "000000-0",
"status": "1 = Active",
"birthDate": "01/01/2001",
"addresses": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"type": "1 = Home",
"street": "Rua Dom Pedro I",
"number": "100",
"complement": "Bloco B",
"district": "Bairro Jardim",
"zipCode": "00000-000",
"cityName": "São Paulo",
"stateInitials": "SP",
"stateName": "São Paulo",
"countryName": "Brasil",
"isActive": true
}
],
"emails": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"type": "1 = Personal",
"emailAddress": "[email protected]",
"isActive": true
}
],
"phones": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"type": "1 = Home",
"countryCode": "+55",
"areaCode": "11",
"number": "91122-3344",
"extension": "2666",
"isActive": true
}
],
"isActive": true
},
"items": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"subscriptionId": "9495d9da-33be-4634-a67e-22eced59274d",
"planItemId": "9495d9da-33be-4634-a67e-22eced59274d",
"itemId": "9495d9da-33be-4634-a67e-22eced59274d",
"itemIntegrationId": "T1|D MG 01|0021878",
"integrationId": "T1|D MG 01|0021878",
"itemName": "Nome do item",
"paymentType": "1 = Recurring",
"recurringType": "1 = Continuos",
"typeCalculation": "1 = FixedPrice",
"quantityCicles": 1,
"variation": "1 = Currency",
"aditonal": 1.5,
"discount": 1.5,
"cicleNumber": 1,
"quantity": 1,
"baseValue": 1,
"value": 1,
"totalAmount": 1,
"reference": "INTMOV019",
"description": "Internet movel 5G",
"quantityRange": 1,
"unitMeasurement": "Mb",
"currencyCode": "BRL",
"minMarginValue": 42.3,
"maxMarginValue": 60.5,
"minMarginPercent": 70,
"maxMarginPercent": 110,
"isActive": true,
"priceRange": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"subscriptionItemId": "9495d9da-33be-4634-a67e-22eced59274d",
"initialQuantity": 1,
"finalQuantity": 1,
"rangeValue": 1,
"exceedRange": true,
"exceedTypeCalculation": "1 = FixedPrice"
}
],
"metadata": [
{
"alias": "string",
"name": "string",
"key": "string",
"value": "string"
}
]
}
],
"subscriptionPause": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"subscriptionId": "9495d9da-33be-4634-a67e-22eced59274d",
"startDate": "2022-04-06",
"endDate": "2022-04-06",
"observation": "Observações",
"integrationId": "112233"
}
],
"billsSimulation": [
{
"subscriptionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"cicle": 0,
"initialCicleDate": "2023-02-10T14:29:48.175Z",
"finalCicleDate": "2023-02-10T14:29:48.175Z",
"billingDate": "2023-02-10T14:29:48.175Z",
"totalAmount": 0
}
],
"billingRuler": {
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"description": "Description",
"sendingCharge": "0 = ExactlyDay",
"chargeAfterDueDate": "0 = NoDayAfterDueDate",
"chargeAfterDueDateEachDay": 0,
"chargeAfterDueDatePer": 0,
"default": false
},
"bills": [
{
"id": "9495d9da-33be-4634-a67e-22eced59274d",
"integrationId": "T1|D MG 01|0021878",
"reference": "0021878",
"description": "Bill Description",
"source": "Protheus",
"origin": "Protheus",
"cicle": 1,
"type": "0 = Single",
"status": "1 = Created",
"totalAmount": 100.5,
"usageTotalAmount": 200.99,
"creationDate": "2021-01-01",
"dueDate": "2021-01-01",
"paymentDate": "2021-01-01",
"currencyId": "9495d9da-33be-4634-a67e-22eced59274d",
"currencyCode": "BRL",
"organizationId": "9495d9da-33be-4634-a67e-22eced59274d",
"paymentMethods": [
{
"paymentMethod": "0 = None",
"paymentMethodDescription": "string"
}
],
"organizationIntegrationId": "T1|D MG 01|0021878",
"customerId": "9495d9da-33be-4634-a67e-22eced59274d",
"customerIntegrationId": "01 | SP | 012454",
"customerName": "Aleixo Telles",
"customerPhoneNumber": "+55 (11) 992635498",
"customerEmail": "[email protected]",
"subscriptionId": "9495d9da-33be-4634-a67e-22eced59274d",
"subscriptionIntegrationId": "T1|D MG 01|jun030",
"subscriptionReference": "jun030",
"subscriptionName": "English Course",
"metadata": [
{
"alias": "string",
"name": "string",
"key": "string",
"value": "string"
}
]
}
],
"metadata": [
{
"alias": "string",
"name": "string",
"key": "string",
"value": "string"
}
]
} |