Delete business partner
DELETE/partners/{id}
Delete business partner logically with all necessary checks at first (pricelists, billings, balances, connections, coOwner, nGage).
Privileges:
- biz-core.manage
Audit event:
- biz.core.v2.partner.delete
Errors:
- BIZ_CORE:PARTNER_NOTFOUND - Partner with given id not found.
Request
Responses
- 204
- 409
- default
Partner deleted successfully.
biz partner (bizPartnerId = xxxx) can have pricelists as customer and supplier for products SMS and MNP
API endpoint for customerSMSPricelists: /bulk/pricelists/sms/selling?eq(customerId)=xxxx&all=yes API endpoint for supplierSMSPricelists: /bulk/pricelists/sms/buying?eq(supplierId)=xxxx&all=yes API endpoint for customerMNPPricelists: /bulk/pricelists/mnp/selling?eq(customerId)=xxxx&all=yes API endpoint for supplierMNPPricelists: /bulk/pricelists/mnp/buying?eq(supplierId)=xxxx&all=yes for activate/deactivate biz partner additional parameter must be sent on URI (&neq(status)=inactive)
biz partner (bizPartnerId = xxxx) can have total balances as customer and supplier for products SMS and MNP
API endpoint for customerSMSTotalBalances: /bulk/billing/v2/total-balances?eq(bizPartnerId)=xxxx&all=yes API endpoint for supplierSMSTotalBalances: /bulk/gate-billing/v2/total-balances?eq(bizPartnerId)=xxxx&all=yes API endpoint for customerMNPTotalBalances: /bulk/mnp-billing/v2/total-balances?eq(bizPartnerId)=xxxx&all=yes API endpoint for supplierMNPTotalBalances: /bulk/mnp-gate-billing/v2/total-balances?eq(bizPartnerId)=xxxx&all=yes for activate/deactivate biz partner additional parameter must be sent on URI (&neq(status)=inactive)
biz partner (bizPartnerId = xxxx) can have billing accounts as customer and supplier for products SMS and MNP
API endpoint for customerSMSBillingAccounts: /bulk/billing/v2/accounts?eq(bizPartnerId)=xxxx&all=yes API endpoint for supplierSMSBillingAccounts: /bulk/gate-billing/v2/accounts?eq(bizPartnerId)=xxxx&all=yes API endpoint for customerMNPBillingAccounts: /bulk/mnp-billing/v2/accounts?eq(bizPartnerId)=xxxx&all=yes API endpoint for supplierMNPBillingAccounts: /bulk/mnp-gate-billing/v2/accounts?eq(bizPartnerId)=xxxx&all=yes for activate/deactivate biz partner additional parameter must be sent on URI (&neq(status)=inactive)
biz partner (bizPartnerId = xxxx) can have connections as customer and supplier for products SMS and MNP
API endpoint for customerSMSConnections: /bulk/sms-accounts/v1/accounts?eq(customerId)=xxxx&all=yes API endpoint for supplierSMSConnections: /bulk/gates/v1/out-gates?eq(supplierId)=xxxx&all=yes API endpoint for customerMNPConnections: /bulk/mnp-accounts/v1/out-gates?eq(customerId)=xxxx&all=yes API endpoint for supplierMNPConnections: /bulk/mnp-supplier-accounts/v1/supplier-accounts?eq(supplierId)=xxxx&all=yes for activate/deactivate biz partner additional parameter must be sent on URI (&neq(status)=inactive)
biz partner (bizPartnerId = xxxx) can have coOwners
API endpoint for bizPartnerCoOwner: /biz-core/v2/partners?ownerBpId=xxxx
biz partner (bizPartnerId = xxxx) can have NGages linked
API endpoint for bizPartnerNGages: /news/v1/services?partnerId=xxxx for activate/deactivate biz partner additional parameter must be sent on URI (&neq(status)=inactive)
Unable to delete Partner due it's instance role or relations (could be with pricelists, billings, balances, connections, coOwner, nGage) ### Example of JSON response for status code 409 ``` json {
"error": {
"code": "INVALID-PARAMETERS",
"message": "Invalid parameters",
"items": [
{
"name": "customerSMSConnections",
"message": "customerSMSConnections",
"description": "ID: 1547 Name: 3396_VOICES_EUR; ID: 1639 Name: 3396_VOICES; ID: 1686 Name: Test Account Eco;"
},
{
"name": "supplierSMSConnections",
"message": "supplierSMSConnections",
"description": "ID: 369 Name: ODTTELEKOM;"
},
{
"name": "supplierSMSPricelists",
"message": "supplierSMSPricelists",
"description": "ID: 1105 Name: AV Pack PL 1; ID: 1110 Name: AV Pack PL 1; ID: 1107 Name: AV Pack PL 1; "
},
{
"name": "customerSMSPricelists",
"message": "customerSMSPricelists",
"description": "ID: 469 Name: 1061_ECO; ID: 470 Name: 1061_FIXID; ID: 1038 Name: 1061_SUNRISE; ID: 1729 Name: TP-PL; "
},
{
"name": "customerSMSTotalBalances",
"message": "customerSMSTotalBalances",
"description": "ID: 37 Name: Cortex Postpaid CHF; ID: 38 Name: Cortex Postpaid EUR; ID: 135 Name: fdg; ID: 143 Name: Cortex Prepaid EUR; "
},
{
"name": "supplierSMSTotalBalances",
"message": "supplierSMSTotalBalances",
"description": "ID: 33\tName: Cortex Communications AG postpaid CHF\n"
},
{
"name": "customerSMSBillingAccount",
"message": "customerSMSBillingAccount",
"description": "ID: 41 Name: 3396_VOICES_EUR; ID: 42 Name: 3396_VOICES; ID: 43 Name: 1061_FIXID; "
},
{
"name": "users",
"message": "users",
"description": "UUID: 00e6b284-c66b-44a4-9858-98fd5e1be6ed First Name: John Last Name: Doe Email: john.doe@doe.com; "
},
{
"name": "appSubjects",
"message": "appSubjects",
"description": "App subject UUID: 00e6b284-c66b-44a4-9858-98fd5e1be6ed Description: App description ; "
},
{
"name": "groupSubjects",
"message": "groupSubjects",
"description": "Group subject UUID: 00e6b284-c66b-44a4-9858-98fd5e1be6ed Description: Group description ; "
},
{
"name": "unknownSubjects",
"message": "unknownSubjects",
"description": "Unknown subject UUID: 00e6b284-c66b-44a4-9858-98fd5e1be6ed Description: Unknown description ; "
}
]
}
}
Unexpected error.