Crea una preferencia de pago.
POST
/carrito/processPreferenceMP
const url = 'https://api-nb-dev.blu.net.ar/v1/carrito/processPreferenceMP';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"title":"Compra de productos","quantity":1,"unit_price":12500.5,"clientId":101,"orderId":5001,"branch":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-nb-dev.blu.net.ar/v1/carrito/processPreferenceMP \ --header 'Content-Type: application/json' \ --data '{ "title": "Compra de productos", "quantity": 1, "unit_price": 12500.5, "clientId": 101, "orderId": 5001, "branch": 1 }'Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
title
required
string
quantity
required
unit_price
required
number format: float
clientId
required
integer
orderId
required
integer
branch
required
integer
Example
{ "title": "Compra de productos", "quantity": 1, "unit_price": 12500.5, "clientId": 101, "orderId": 5001, "branch": 1}Responses
Sección titulada «Responses»Preferencia creada.
Media typeapplication/json
object
preference_id
required
Example
{ "preference_id": "preferencia_ficticia_123"}No fue posible crear la preferencia de pago.
Media typeapplication/json
object
error_message
required
string
Example
{ "error_message": "No fue posible procesar el pago."}NB Conecta · Integraciones New Bytes
Copyright © 2026 New Bytes