mercadolibre / php-sdk

MercadoLibre's PHP SDK
185 stars 266 forks source link

Can't set invoice type in sale_terms #107

Open LCSP opened 3 years ago

LCSP commented 3 years ago

Hello. I'm trying to publish an item with the invoice type (refer to example->sale_terms->invoice) but I'm getting this response from ML: "Not allowed to modify sale term INVOICE".

Can someone tell me why I can't set the invoice type? Thanks

Item Body:

{
  "title": "XIAOMI Mi 8 (6\/64GB) - Azul",
  "category_id": "MLA1055",
  "price": 54495,
  "currency_id": "ARS",
  "available_quantity": "1",
  "buying_mode": "buy_it_now",
  "condition": "new",
  "listing_type_id": "free",
  "description": {
    "plain_text": "\n\n\n\n\n Test"
  },
  "sale_terms": [
    {
      "id": "WARRANTY_TYPE",
      "value_name": "Sin garantía"
    },
    {
      "id": "WARRANTY_TIME",
      "value_name": "30 días"
    },
    {
      "id": "INVOICE",
      "value_name": "Factura A",
      "value_id": "6891885" 
    }
  ],
  "pictures": [
    {
      "source": "http:\/\/URL\/fotos\/productos\/300.jpg"
    }
  ],
  "attributes": [
    {
      "id": "BRAND",
      "value_name": "LG"
    },
    {
      "id": "MODEL",
      "value_name": "A450M"
    },
    {
      "id": "IS_DUAL_SIM",
      "value_id": "242084"
    },
    {
      "id": "COLOR",
      "value_id": "52019"
    },
    {
      "id": "INTERNAL_MEMORY",
      "value_name": "3 GB"
    },
    {
      "id": "RAM",
      "value_name": "3 GB"
    },
    {
      "id": "GTIN",
      "value_name": "7898567777786"
    },
    {
      "id": "CARRIER",
      "value_id": "298335"
    }
  ]
}