Bynet
  1. Products
Bynet
  • 🚀 Introdução à API
  • 📦 Criar Pedido
  • My company
    • Get all data
      GET
    • Update
      PUT
    • Update documents
      PUT
    • Get by ID
      GET
    • Update other info
      PUT
  • Products
    • Create
      POST
    • Find All
      GET
    • Find by ID
      GET
    • Update
      PUT
    • Delete
      DELETE
    • Update Status
      PUT
  • Bank
    • Create
      POST
    • Find all
      GET
    • Find by ID
      GET
    • Find pre bank
      GET
  • Transactions
    • Find All
      GET
    • Create
      POST
    • Find by ID
      GET
    • Update delivery status
      PUT
    • Export Excel
      POST
    • Summary all
      GET
    • Fee
      POST
    • Summary by ID
      GET
  • Checkout
    • Layouts
      • Create Layout
      • Find
      • Update settings
      • Update status
      • Find by ID
    • Find info
    • Create Order
    • Find info order
    • Find payment methods by ID
    • Create payment
    • Find payment methods
  • Transfers
    • Create
    • Update
    • Find all
    • Find by ID
    • summary
  • Cashout
    • Create
    • Find all
    • Find by ID
  • Customers
    • Find all
    • Find by ID
  • Balance
    • Find
    • Summary
    • Find finalcial reserve
  • Webhook
    • ⚙️ Webhook: Formato de Postback
    • Create
    • Find all
    • Find by ID
    • Update
    • Delete
  1. Products

Update Status

PUT
/api/user/products/{id}/status

🔄 Atualizar Status do Produto#

Este endpoint permite atualizar o status de um produto específico utilizando o seu ID.

✅ Requisitos da Requisição#

Método HTTP: PUT
Endpoint: /api/user/products/{id}/status
Content-Type: application/json
Autenticação: api_token

🧠 Header da requisição#

CampoTipoObrigatórioDescrição
x-api-keystringSimToken de autenticação API Key
User-AgentAtivoB2B/1.0Sim

⚙️ Parâmetros de Consulta#

ParâmetroTipoObrigatórioDescrição
idstringSimID do produto a ser atualizado.
Exemplo de ID: e653ca6c-479c-4aab-8935-6f542e97ead0

📥 Body da Requisição (application/json)#

{
  "status": "INACTIVE"
}

Request

Path Params

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/user/products/e653ca6c-479c-4aab-8935-6f542e97ead0/status' \
--header 'x-api-key: {Token}' \
--header 'User-Agent: AtivoB2B/1.0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status": "string"
}'
Response Response Example
200 - Success
{
  "data": {
    "id": "0",
    "title": "Produto X",
    "description": "desc",
    "shippingType": "DIGITAL",
    "status": "INACTIVE",
    "unitPrice": 0,
    "maxInstallments": 0,
    "accessLink": "X",
    "additionalInfo": "case",
    "images": [
      {
        "id": "0",
        "key": "0.jpg",
        "url": "X"
      }
    ],
    "paymentMethod": {
      "PIX": false,
      "BOLETO": true,
      "CREDIT_CARD": false
    },
    "sellerId": "0",
    "uniqueProductLinkId": "0",
    "createdAt": "2025-04-09T21:44:23.038Z",
    "updatedAt": "2025-04-17T15:10:43.631Z",
    "deletedAt": null
  },
  "message": "O status do produto foi atualizado com sucesso",
  "status": 200,
  "error": null
}
Modified at 2025-07-23 19:02:40
Previous
Delete
Next
Create
Built with