Nexscope

Crear pedido en 1688

Crea un pedido de compra en 1688 con artículos, SKU y datos de entrega seleccionados, tras una confirmación expresa.

Coste10 créditos / llamada
Probar en línea
POST · https://api.nexscope.ai/alibaba1688/createOrderMCP · nexscope_data_alibaba1688_create_order

Qué hace esta API

Crea un pedido de compra en 1688 con artículos, SKU y datos de entrega seleccionados, tras una confirmación expresa.

Casos de uso de Crear pedido en 1688

Enviar un pedido confirmado

Usa cargoParamList [CARGO_ITEMS] y la dirección de entrega [ADDRESS_ID] que he elegido para preparar un pedido de 1688. Muéstrame los artículos y la dirección. Solo después de mi confirmación expresa, envía confirmCreateOrder=true y comunica el orderId real o el error devuelto.

Enviar un pedido con una dirección proporcionada

Usa cargoParamList [CARGO_ITEMS] y addressParam [ADDRESS] para preparar un pedido de 1688. Revisa conmigo los datos de entrega y espera mi confirmación expresa antes de enviar confirmCreateOrder=true. Comunica code, message y orderId tal como se devuelvan.

Crear un pedido con flujo de distribución

Prepara mi pedido de 1688 con cargoParamList [CARGO_ITEMS], addressId [ADDRESS_ID], el flujo de distribución documentado [FLOW] y fenxiaoChannel [CHANNEL]. Muéstrame la configuración y espera mi confirmación expresa antes de enviar confirmCreateOrder=true. Comunica el orderId o error real.

Crear un pedido con logística transfronteriza

Prepara mi pedido de 1688 con cargoParamList [CARGO_ITEMS], addressId [ADDRESS_ID], isvBizType [BUSINESS_TYPE], crossBorderLogisticsSolutionId [SOLUTION_ID] y useBorderLogisticsSolution=true. Revisa conmigo la opción logística y espera mi confirmación expresa antes de enviar confirmCreateOrder=true. Comunica el resultado real.

Elegir una modalidad de transacción documentada

Prepara mi pedido de 1688 con cargoParamList [CARGO_ITEMS], addressId [ADDRESS_ID] y tradeType [TRADE_TYPE] admitido. Explica la modalidad elegida sin suponer que se pagó. Tras mi confirmación expresa, envía confirmCreateOrder=true y comunica el orderId o error devuelto.

Usar una promoción documentada

Prepara mi pedido de 1688 con cargoParamList [CARGO_ITEMS], addressId [ADDRESS_ID], shopPromotionId [PROMOTION_ID] y useRedEnvelope [Y_OR_N]. Muestra la configuración sin prometer un descuento. Tras mi confirmación expresa, envía confirmCreateOrder=true y comunica el resultado real.

Incluir referencia y mensaje del pedido

Prepara mi pedido de 1688 con cargoParamList [CARGO_ITEMS], addressId [ADDRESS_ID], outOrderId [CLIENT_ORDER_ID] y message [ORDER_MESSAGE]. Conserva mis valores sin deducir idempotencia de outOrderId. Tras mi confirmación expresa, envía confirmCreateOrder=true y comunica el orderId devuelto.

Establecer la opción de comprador anónimo

Prepara mi pedido de 1688 con cargoParamList [CARGO_ITEMS], addressId [ADDRESS_ID] y la opción documentada anonymousBuyer [ANONYMOUS_BUYER]. Muestra el valor elegido sin prometer efectos de privacidad no documentados. Tras mi confirmación expresa, envía confirmCreateOrder=true y comunica el resultado real.

Preguntas frecuentes sobre Crear pedido en 1688

¿Qué devuelve la API Crear pedido en 1688?

Crea un pedido de compra en 1688 con artículos, SKU y datos de entrega seleccionados, tras una confirmación expresa. Revisa los campos y el estado realmente devueltos; los datos ausentes no demuestran un resultado favorable.

¿Cuántos créditos cuesta la API Crear pedido en 1688?

El coste documentado actualmente es 10 créditos / llamada. Si se muestra una estimación o un intervalo, el cargo final depende de la solicitud. Comprueba el registro de uso después de llamar a la API.

¿Cómo llamo a la API Crear pedido en 1688?

Usa el endpoint documentado /alibaba1688/createOrder con tu clave de API de Nexscope y los parámetros indicados. En un cliente MCP compatible, usa la herramienta nexscope_data_alibaba1688_create_order y revisa su esquema antes de enviar la solicitud.

Ver planes y créditosConecta esta API con MCP

Prueba esta API
Endpoint
https://api.nexscope.ai/alibaba1688/createOrder
Método MCP
nexscope_data_alibaba1688_create_order

Paso 1 de 3 · Autenticarse

Autenticación

Todos los endpoints de ejecución requieren una clave de API de usuario. Envíala como token bearer en la cabecera Authorization .

Authorization: Bearer nk-xxxxxxxxxxxxxxxxx
Las claves de API ausentes o no válidas devuelven un error de autenticación. Gestiona las claves desde .

Paso 2 de 3 · Enviar una solicitud

POSThttps://api.nexscope.ai/alibaba1688/createOrder

Ejecutar una API

Envía un cuerpo de solicitud JSON usando los parámetros descritos abajo.

Solicitud de ejemplo

Sustituye YOUR_API_KEY y ejecuta este comando en tu terminal.

curl -X POST 'https://api.nexscope.ai/alibaba1688/createOrder' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "addressId": "987654321012345678",
  "cargoParamList": [
    {
      "offerId": "1234567890123456789",
      "quantity": 2,
      "specId": "example-spec"
    }
  ],
  "confirmCreateOrder": false,
  "flow": "general"
}'

Ejemplo de código

{
  "addressId": "987654321012345678",
  "cargoParamList": [
    {
      "offerId": "1234567890123456789",
      "quantity": 2,
      "specId": "example-spec"
    }
  ],
  "confirmCreateOrder": false,
  "flow": "general"
}

Paso 3 de 3 · Inspeccionar el resultado

Comprueba la respuesta

Consulta code para ver el estado de la solicitud y data para ver el resultado. Abre la referencia de parámetros y respuestas para consultar las definiciones completas de los campos.

Códigos de estado HTTP

CódigoDescripción
200Respuesta HTTP predeterminada tanto para el éxito como para muchos errores de negocio. Solo el código JSON externo 0 indica éxito o aceptación asíncrona; consulta data para obtener el resultado.
429Límite de admisión de ejecuciones; respeta Retry-After cuando esté presente.
503La admisión de ejecuciones no está disponible temporalmente; respeta Retry-After cuando esté presente.
OpcionalX-Nexscope-Http-Status: semantic asigna estados HTTP a los errores de negocio gestionados por el controlador en las rutas de ejecución y tareas. Los fallos previos a la autenticación, como una clave API ausente o no válida (code 11209, incluida una copia incompleta o dañada) o una sesión web caducada (code 12001), pueden seguir devolviendo HTTP 200 antes de esta asignación. Comprueba siempre el código JSON externo; las solicitudes malformadas y los fallos de infraestructura también pueden devolver respuestas HTTP distintas de 200.
Todas las categorías/ Compras en 1688
POSThttps://api.nexscope.ai/alibaba1688/createOrder

Ejecutar esta API

Envía una solicitud JSON para ejecutar esta API y recibir los datos de respuesta documentados.

Endpoint

MétodoPOST
Rutahttps://api.nexscope.ai/alibaba1688/createOrder
AutenticaciónBearer API key
Content-Typeapplication/json

Before testing 1688 procurement

Examples illustrate the request format. Product, SKU, address, logistics and order IDs are not verified for your account. Replace them with actual values before running a request.

Authorization and where to get your values
  1. Get an authorization URL

    Use your Nexscope API key and an accountName label of your choice. Your Nexscope key identifies your Nexscope account. Open the returned URL in your browser to authorize your own 1688 buyer account; its tokens are stored securely by the Nexscope backend.

    Authorization is supported by LinkFox Agent, Nexscope's strategic partner in China. You will see "LinkFox Agent" on the 1688 authorization page. Authorize your own 1688 account; Nexscope links it to your Nexscope user account.

    Use data only within the scope of your authorization and in accordance with applicable local laws, regulations, and platform terms.

    The permission descriptions and agreement notice on the 1688 authorization page are in Chinese. Use your browser's translation feature and select English to read them. Changing your browser's language alone does not switch these sections to English.

    1688 authorization page — English reference translation
    English reference translation of the 1688 authorization form showing LinkFoxAgent, access to member information, the consent notice and empty login fields.

    This translated screenshot is provided for reference only. Please refer to the actual 1688 authorization page and applicable agreements. The translation does not change the official page or indicate that your account is authorized.

    Open the full-size translated screenshot

    Complete authorization within 10 minutes of requesting the URL. If the link expires or authorization fails, request a new URL and try again. Check authorized accounts afterward; the redirect page alone does not verify authorization.

    Getting an authorization URL and checking authorized accounts each cost 10 credits per call. Internal token exchange and refresh are not charged separately. Other procurement calls use their configured credit price.

  2. Check authorized accounts

    Continue with buyer operations only when an account has status=ACTIVE and expired=false. Returning from the authorization page alone does not confirm success. Tokens and refresh are handled by the backend.

  3. Use a real product ID from a selected 1688 product or search result. Query its SKUs and use a returned specId when selecting a specification.

    Query your addresses and select a returned addressId, or supply the documented addressParam.

    Use your existing order ID or the orderId returned by order creation. Send it as aliOrderId, orderIdList or orderIds as required by the selected API. Keep all IDs as strings. Existing-order queries do not require creating a new order.

    For a shipment, select logisticsId from the order logistics result. For an invoice, copy each order's amount from the invoice amount result unchanged in cents and provide your actual invoice title details.

Request parameters and response index

Each link opens the complete request schema, required and conditional fields, types, supported values and response schema. These summaries do not replace the schemas. All operations use POST JSON and your Nexscope API key.

OperationRequest parametersBusiness response and next step
authorizeUrlaccountName: a nonblank buyer-account label.authorizeUrl: open manually and complete authorization within 10 minutes.
authorizedStoresAn empty object; the current Nexscope user is selected automatically.stores[].accountName, status and expired. Continue only with ACTIVE and expired=false.
receiveAddressListAn empty object; uses your authorized buyer account.items[].addressId and recipient/address details. Use your actual addressId.
skuofferId: a positive decimal ID string.skuList[].specId, price and amountOnSale. Select specId for a product specification.
orderPreviewaddressId or addressParam, cargoParamList and flow; optional invoiceParam.status, sumPayment, sumCarriage, discountFee, cargoList and payment/promotion options. Stop if status=false.
createOrderAddress, cargo and flow inputs; confirmCreateOrder=true. See the schema for optional creation fields; invoiceParam is preview-only.success, orderId and business messages. Save orderId for later reconciliation.
paymentUrlorderIdList: a nonempty string array; confirmGetPaymentUrl=true.success, payUrl, errorMessage and errorCode. Never open or pay automatically.
orderStatusaliOrderId: the actual order ID as a string.aliOrderId, aliStatus and normalizedStatus.
logisticsaliOrderId: the actual order ID as a string.logisticsOrders[].logisticsId, logisticsBillNo, logisticsCompanyName and status.
logisticsTracealiOrderId; optional logisticsId from logistics.traceList[].traceTime, location, traceDescription and traceStatus. Times use Asia/Shanghai.
confirmReceivealiOrderId and confirmReceive=true.success and aliOrderId. Confirm receipt only after checking the shipment.
cancelOrderaliOrderId and confirmCancel=true; optional cancelReason and remark.success, aliOrderId, compatibility orderId and message. Cancellation is not a refund request.
invoiceAmountorderIds: a nonempty array of positive decimal ID strings.orderInvoiceAmountModelList[].orderId/amount and retCodes. Copy each amount unchanged in cents.
invoiceApplyinvoiceApplyModelList with orderId, amount, invoiceType and purchaserInvoiceTitleModel; confirmApplyInvoice=true.successList and failedList, including per-order errors. Inspect both lists even when the platform code is 0.

Send product, SKU and order IDs as strings. For direct API requests, provide flow explicitly: general, fenxiao or boutiquefenxiao. The procurement Skill scripts default an omitted flow to general. Use distribution modes only when intended.

Preview totals, shipping and discounts are in cents; cargoList.finalUnitPrice and cargoList.amount are in yuan. SKU prices and stock are indicative; the preview determines purchasability and final amounts. Keep invoiceAmount values unchanged in cents.

Nexscope returns code, msg, data, ts, time, cost and traceId. Numeric outer code=0 means platform success; HTTP 200 alone does not. The procurement result keeps its provider code/message/data wrapper; inspect the business result inside data.data, including status, success and invoice rows. The outer cost field is elapsed time, not credits.

Actions that require confirmation

Confirm each exact action and its parameters separately. The confirmation field must be the JSON boolean true, not a string or number. Changing the account, order, goods, address, invoice details or other parameters requires a new confirmation. Online test requests confirmation before execution.

  • confirmCreateOrder: Create a real order after a successful preview.
  • confirmGetPaymentUrl: Retrieve a payment link; this does not make a payment.
  • confirmReceive: Confirm receipt of the exact order.
  • confirmCancel: Attempt to cancel the exact order; this does not request a refund.
  • confirmApplyInvoice: Submit invoice applications with the confirmed title and exact per-order amounts.

Do not automatically retry an uncertain write after a timeout or network error. Check order or invoice state first, then obtain confirmation for any further attempt. Never automatically open a payment link or make a payment.

Errors and how to recover

Check the HTTP status, Nexscope outer code and business result separately. Supplier 1002/1003/1005 codes are not Nexscope outer codes. Gateway HTTP authentication or credit errors can also occur; do not rely on HTTP status alone.

  • 11209: API key is missing or does not exist. Supply your Nexscope API key; this can be returned with HTTP 200.
  • 99001: Invalid parameters or missing confirmation. Follow the English message, correct the request and confirm again when necessary. Procurement pricing configuration errors also require support to check the service configuration.
  • 13007: Buyer authorization is unavailable, or a procurement service/proxy call failed. Read the message and check authorization when indicated; not every 13007 requires reauthorization. Do not switch to another buyer or repeat an uncertain write.
  • 13011: Insufficient Nexscope credits. Check your Nexscope balance.
  • 99000: Unexpected service failure. Keep the traceId when provided and contact support; reconcile uncertain writes before any retry.
  • code=0 with business status=false or success=false: The business operation failed or partially failed. Stop dependent actions and inspect business messages and per-order results. INVOICE_ALREADY_APPLIED means the order is already invoiced; do not resubmit the whole batch.

Parámetros de la solicitud

NombreTipoObligatorioDescripción
addressIdstringopcional
Select from receiveAddressList.
addressParamobjectopcional
addressParam
addressParam.addressstringobligatorio
Street address.
addressParam.areaTextstringopcional
Valor de Area text usado por esta operación de API.
addressParam.cityTextstringopcional
Valor de City text usado por esta operación de API.
addressParam.fullNamestringobligatorio
Recipient name.
addressParam.mobilestringobligatorio
Recipient phone; avoid sharing outside the request.
addressParam.phonestringopcional
Landline phone number.
addressParam.postCodestringopcional
Postal code.
addressParam.provinceTextstringopcional
Valor de Province text usado por esta operación de API.
anonymousBuyerbooleanopcional
Valor de Anonymous buyer usado por esta operación de API.
cargoParamListarrayobligatorio
cargoParamList
Cantidad mínima de elementos: 1
cargoParamList[]objectobligatorio
cargoParamList
cargoParamList[].offerIdstringobligatorio
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
cargoParamList[].quantityintegerobligatorio
Quantity in the selling unit.
Mínimo: 1
cargoParamList[].specIdstringopcional
SKU specification identifier.
confirmCreateOrderbooleanobligatorio
Must be JSON true after separate explicit user confirmation. Examples default to false and do not authorize this action.
Predeterminado: false
crossBorderLogisticsSolutionIdstringopcional
Cross-border logistics solution sourceId.
fenxiaoChannelstringopcional
Distribution platform.
Permitidos: douyin, kuajing, pinduoduo, taote
flowstringopcional
Order flow; defaults to general when omitted.
Permitidos: general, fenxiao, boutiquefenxiao
Predeterminado: general
isvBizTypestringopcional
Cross-border business type.
Permitidos: cross, cross_daigou, cross_distribution
Predeterminado: cross
messagestringopcional
Valor de Message usado por esta operación de API.
outOrderIdstringopcional
Valor de Out order id usado por esta operación de API.
shopPromotionIdstringopcional
Valor de Shop promotion id usado por esta operación de API.
tradeTypestringopcional
Trade type: assureTrade, alipay, period, assure, creditBuy, bank, 631staged or 37staged.
useBorderLogisticsSolutionbooleanopcional
Whether to use a cross-border logistics solution.
useRedEnvelopestringopcional
Valor de Use red envelope usado por esta operación de API.
Permitidos: y, n
Predeterminado: n

Opción 1 de cualquier alternativa — requiere addressId

Opción 2 de cualquier alternativa — requiere addressParam

Respuesta de ejemplo

Estructura de respuesta de la plataforma. code 0 indica éxito o aceptación; data contiene el resultado de negocio.

{
  "code": 0,
  "cost": "0",
  "data": {
    "orderId": "3309156590237728779",
    "success": true
  },
  "msg": null,
  "time": "2026-10-20T00:00:00Z",
  "traceId": null,
  "ts": "0"
}

Campos de respuesta

NombreTipoObligatorioDescripción
codeintegeropcional
Nexscope transport/business envelope code; 0 means the request was processed. Inspect data for operation outcomes.
coststringopcional
Processing time in milliseconds, not credits.
dataobjectopcional
Valor de Data usado por esta operación de API.
data.codestringopcional
Upstream business code.
data.messagestringopcional
Valor de Message usado por esta operación de API.
data.orderIdstringopcional
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
data.subCodestringopcional
Valor de Sub code usado por esta operación de API.
data.subMessagestringopcional
Valor de Sub message usado por esta operación de API.
data.successbooleanopcional
Inspect this business outcome even when HTTP status is 200.
msgstring | nullopcional
Safe response message.
timestringopcional
Server response time.
traceIdstring | nullopcional
Request trace identifier.
tsstringopcional
Server timestamp.

Respuestas

CódigoDescripción
200Respuesta HTTP predeterminada tanto para el éxito como para muchos errores de negocio. Solo el código JSON externo 0 indica éxito o aceptación asíncrona; consulta data para obtener el resultado.
429Límite de admisión de ejecuciones; respeta Retry-After cuando esté presente.
503La admisión de ejecuciones no está disponible temporalmente; respeta Retry-After cuando esté presente.
OpcionalX-Nexscope-Http-Status: semantic asigna estados HTTP a los errores de negocio gestionados por el controlador en las rutas de ejecución y tareas. Los fallos previos a la autenticación, como una clave API ausente o no válida (code 11209, incluida una copia incompleta o dañada) o una sesión web caducada (code 12001), pueden seguir devolviendo HTTP 200 antes de esta asignación. Comprueba siempre el código JSON externo; las solicitudes malformadas y los fallos de infraestructura también pueden devolver respuestas HTTP distintas de 200.

Fuente de datos, vigencia y limitaciones

La fuente, la vigencia, la cobertura, los límites de frecuencia y las notas de estimación no se especifican en esta definición de API salvo que aparezcan en la documentación de campos de solicitud o respuesta anterior. No supongas datos oficiales del mercado ni actualización en tiempo real cuando no estén documentados explícitamente.

Paso 1 de 2 · Conectar tu cliente MCP

MCP

Usa el endpoint MCP cuando un agente necesite descubrir y llamar a herramientas de API con JSON-RPC.

GET /mcp/legacy
POST /mcp/legacy
Authorization: Bearer nk-xxxxxxxxxxxxxxxxx
Content-Type: application/json

Paso 2 de 2 · Llamar a la herramienta

Llamar a una herramienta

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "nexscope_data_alibaba1688_create_order",
    "arguments": {
      "addressId": "987654321012345678",
      "cargoParamList": [
        {
          "offerId": "1234567890123456789",
          "quantity": 2,
          "specId": "example-spec"
        }
      ],
      "confirmCreateOrder": false,
      "flow": "general"
    }
  }
}

¿Qué puedes hacer con esta API?

Datos explicados y casos de uso prácticos

AI Guide

Question

What can 1688 Create Order do, and when should I use it?

AI answer

Create Order for the currently authenticated Nexscope user. Use your Nexscope API key. Requires an ACTIVE, unexpired 1688 authorization owned by the current user. Procurement responses are live; do not cache or automatically retry writes.

Data categoryDocumented fieldsHow to use them
RequestaddressId, addressParam, cargoParamList, flow, isvBizType, message, tradeType, shopPromotionId, outOrderId, useRedEnvelope, anonymousBuyer, confirmCreateOrderProvide the required identifiers, filters, or paging inputs listed in the API document.
Responsedata.success, data.code, data.message, data.subCode, data.subMessage, data.orderIdInspect returned values and source references; availability depends on the request and upstream source.
  • Submit a reviewed order.
    • Prompt example: “Build an order for the selected 1688 offer, SKU, quantity, and address. Show the order preview and payable total; submit only after I explicitly approve the exact order, and report the returned order ID and business outcome.”
  • Check whether the required store authorization and input identifiers are ready.
    • Prompt example: “Before using 1688 Create Order, show which store authorization and exact IDs this request needs. Tell me which values are still missing.”
  • Review the operation result and any missing fields.
    • Prompt example: “For my 1688 Create Order request, summarize the returned business status, IDs and amounts, and identify any missing or unsuccessful values without assuming success from HTTP 200.”

This action can change an order or invoice state. Obtain explicit approval for the exact operation, submit once, and do not automatically retry an uncertain result.

API relacionadas