Patch Biz Partner Product

PATCH/biz-partner-products/{id}

Patches Biz Partner Product data.

Privileges:

  • biz-core.manage

Audit event:

  • biz.core.v2.bizpProduct.patch

Errors:

  • BIZ_CORE:BIZ_PARTNER_PRODUCT_NOT_FOUND - Biz Partner Product not found

Validation errors:

  • CANT_CHANGE_BIZP_PRODUCT_STATUS_NEW_AND_OLD_STATUS_ARE_SAME - New status and old status are the same
  • CANT_CHANGE_BIZP_PRODUCT_STATUS_FROM_ENABLED_TO_SUSPENDED_FOR_RELATION_TYPE_OWNER - Product relation type owner can not be suspended
  • invalid value - Status change from {oldStatus} to {newStatus} not allowed
  • invalid value - Status can not be empty value
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

idintegerrequired

id.

Body

application/json
statusstring
Possible values: suspended, enabled

Request example

cURL · cURL
curl -L -X PATCH "https://api-cpaas.sms.es/biz-core/v2/biz-partner-products/{id}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "status": "suspended"
}'

Responses

Biz Partner Product data

application/json
accountManagerIdinteger
accountManagerNamestring
bizPartnerIdinteger
bizPartnerNamestring
customerTypestring
disabledDtstring (date-time)
enabledDtstring (date-time)
idinteger
instanceIdinteger
notesstring
productCodeNamestring
productIdinteger
productNamestring
productTypeinteger
productTypeCodeNamestring
productTypeNamestring
relationTypestring
relationTypeCodeNamestring
relationTypeIdinteger
serviceCategoryIdinteger
serviceCategoryNamestring
serviceProductNamestring
statusstring
Possible values: enabled, disabled, suspended, deleted
statusDtstring (date-time)
Example response
{
  "accountManagerId": 0,
  "accountManagerName": "string",
  "bizPartnerId": 0,
  "bizPartnerName": "string",
  "customerType": "string",
  "disabledDt": "2026-01-01T12:00:00Z",
  "enabledDt": "2026-01-01T12:00:00Z",
  "id": 0,
  "instanceId": 0,
  "notes": "string",
  "productCodeName": "string",
  "productId": 0,
  "productName": "string",
  "productType": 0,
  "productTypeCodeName": "string",
  "productTypeName": "string",
  "relationType": "string",
  "relationTypeCodeName": "string",
  "relationTypeId": 0,
  "serviceCategoryId": 0,
  "serviceCategoryName": "string",
  "serviceProductName": "string",
  "status": "enabled",
  "statusDt": "2026-01-01T12:00:00Z"
}