curl --location --request PUT 'https://stg-gateway.invora.app/api/billing/v2/integrations/' \
--header 'Content-Type: application/json' \
--data '{
"id": "string",
"code": "string",
"name": "string",
"anrok": {
"apiKey": "string"
},
"avalara": {
"accountId": "string",
"companyCode": "string",
"licenseKey": "string"
},
"hubspot": {
"connectionId": "string",
"defaultTargetedObject": "HUBSPOT_TARGETED_OBJECTS_ENUM_UNSPECIFIED",
"syncInvoices": true,
"syncSubscriptions": true
},
"netsuite": {
"accountId": "string",
"clientId": "string",
"clientSecret": "string",
"connectionId": "string",
"scriptEndpointUrl": "string",
"tokenId": "string",
"tokenSecret": "string",
"syncCreditNotes": true,
"syncInvoices": true,
"syncPayments": true
},
"salesforce": {
"instanceId": "string"
},
"xero": {
"connectionId": "string",
"syncCreditNotes": true,
"syncInvoices": true,
"syncPayments": true
},
"updateMask": "string"
}'{
"integration": {
"id": "string",
"code": "string",
"name": "string",
"type": "INTEGRATION_TYPE_UNSPECIFIED",
"anrok": {
"apiKey": "string",
"connectionId": "string",
"externalAccountId": "string",
"failedInvoicesCount": 0,
"hasMappingsConfigured": true
},
"avalara": {
"accountId": "string",
"companyCode": "string",
"companyId": "string",
"licenseKey": "string",
"failedInvoicesCount": 0,
"hasMappingsConfigured": true
},
"hubspot": {
"connectionId": "string",
"defaultTargetedObject": "HUBSPOT_TARGETED_OBJECTS_ENUM_UNSPECIFIED",
"invoicesObjectTypeId": "string",
"subscriptionsObjectTypeId": "string",
"portalId": "string",
"syncInvoices": true,
"syncSubscriptions": true
},
"netsuite": {
"accountId": "string",
"clientId": "string",
"clientSecret": "string",
"connectionId": "string",
"scriptEndpointUrl": "string",
"tokenId": "string",
"tokenSecret": "string",
"syncCreditNotes": true,
"syncInvoices": true,
"syncPayments": true,
"hasMappingsConfigured": true
},
"salesforce": {
"instanceId": "string"
},
"xero": {
"connectionId": "string",
"syncCreditNotes": true,
"syncInvoices": true,
"syncPayments": true,
"hasMappingsConfigured": true
}
}
}