curl --request POST \
--url https://api.useaira.com/v1/contracts/{id}/activate \
--header 'X-API-KEY: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"retroactiveDate": "2023-12-25",
"status": "active",
"rateAdjustmentIndex": "none",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"invoiceAllocationStrategy": "single",
"includeNewSubsidiariesOnUsageScope": true,
"usageScopes": [
{
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"allocations": [
{
"paymentAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allocationPercentage": "<string>"
}
],
"billingSettings": {
"invoiceMinimumAmount": 1,
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"billingSchedule": {
"periodUnit": "week",
"anchorSource": "based_on_contract_start_date",
"anchorDay": 16,
"anchorMonth": 6.5
},
"paymentGatewaySettings": {
"dueOffsetDays": 2,
"paymentMethod": "bolepix"
}
}Activates a draft contract. The contract must already have at least one active plan instance.
curl --request POST \
--url https://api.useaira.com/v1/contracts/{id}/activate \
--header 'X-API-KEY: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"retroactiveDate": "2023-12-25",
"status": "active",
"rateAdjustmentIndex": "none",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"invoiceAllocationStrategy": "single",
"includeNewSubsidiariesOnUsageScope": true,
"usageScopes": [
{
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"allocations": [
{
"paymentAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allocationPercentage": "<string>"
}
],
"billingSettings": {
"invoiceMinimumAmount": 1,
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"billingSchedule": {
"periodUnit": "week",
"anchorSource": "based_on_contract_start_date",
"anchorDay": 16,
"anchorMonth": 6.5
},
"paymentGatewaySettings": {
"dueOffsetDays": 2,
"paymentMethod": "bolepix"
}
}API Key Authentication.
Unique identifier for the contract.
Schema defining a contract.
Schema defining a contract.
Unique identifier for the contract.
ID of the customer associated with this contract.
Date when the contract becomes active.
Optional date when the contract expires. If null, the contract has no end date.
Optional retroactive date to apply contract changes from a past date.
Current status of the contract.
active, canceled, completed, draft Reference index (e.g. IPCA) used to filter contracts when applying a mass adjustment on contracts.
none, igpm, ipca, other Custom fields that can be associated with the entity. The fields must be previously created in the system before they can be used.
Show child attributes
{
"customField1": "value1",
"customField2": ["value2", "value3"]
}Invoice allocation strategy configured for the contract.
single, percent_split Whether future subsidiaries are automatically included in usage scope.
Customers that compose the usage scope for this contract.
1Show child attributes
Payment account allocation configuration.
1Show child attributes
Schema defining billing settings for a contract.
Show child attributes
Schema defining billing schedule for a contract.
Show child attributes
Schema defining payment gateway settings for a contract.
Show child attributes