Nexscope

Cancelar pedido de 1688

Solicita la cancelación de un pedido de 1688 elegible, tras una confirmación expresa. La cancelación no equivale a un reembolso.

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

Qué hace esta API

Solicita la cancelación de un pedido de 1688 elegible, tras una confirmación expresa. La cancelación no equivale a un reembolso.

Casos de uso de Cancelar pedido de 1688

Solicitar la cancelación tras confirmar

Para el pedido de 1688 [ALI_ORDER_ID], explica que la cancelación depende de su estado actual. Cuando yo confirme expresamente la cancelación, envía confirmCancel=true con cancelReason [CANCEL_REASON] y la nota opcional remark [REMARK] y comunica el estado y mensaje devueltos. No presentes la cancelación como un reembolso.

Comprobar el resultado de la cancelación

Tras confirmar la cancelación del pedido de 1688 [ALI_ORDER_ID], muestra el identificador y el resultado real. Si el servicio rechaza la solicitud, comunica su mensaje sin afirmar que el pedido se canceló.

Preguntas frecuentes sobre Cancelar pedido de 1688

¿Qué devuelve la API Cancelar pedido de 1688?

Solicita la cancelación de un pedido de 1688 elegible, tras una confirmación expresa. La cancelación no equivale a un reembolso. Revisa los campos y el estado realmente devueltos; los datos ausentes no demuestran un resultado favorable.

¿Cuántos créditos cuesta la API Cancelar pedido de 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 Cancelar pedido de 1688?

Usa el endpoint documentado /alibaba1688/cancelOrder con tu clave de API de Nexscope y los parámetros indicados. En un cliente MCP compatible, usa la herramienta nexscope_data_alibaba1688_cancel_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/cancelOrder
Método MCP
nexscope_data_alibaba1688_cancel_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/cancelOrder

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/cancelOrder' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "aliOrderId": "3309156590237728779",
  "confirmCancel": false
}'

Ejemplo de código

{
  "aliOrderId": "3309156590237728779",
  "confirmCancel": false
}

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/cancelOrder

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/cancelOrder
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
aliOrderIdstringobligatorio
Exact positive integer identifier. Send as a JSON string.
Ejemplo: 3309156590237728779
cancelReasonstringopcional
-
remarkstringopcional
-
confirmCancelbooleanobligatorio
Must be JSON true after separate explicit user confirmation. Examples default to false and do not authorize this action.
Ejemplo: false

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": {
    "aliOrderId": "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.aliOrderIdstringopcional
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
data.messagestringopcional
Cancellation is not a refund or after-sales application.
data.orderIdstringopcional
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
data.successbooleanopcional
Valor de Success usado por esta operación de API.
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_cancel_order",
    "arguments": {
      "aliOrderId": "3309156590237728779",
      "confirmCancel": false
    }
  }
}

¿Qué puedes hacer con esta API?

Datos explicados y casos de uso prácticos

AI Guide

Question

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

AI answer

Cancel 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. Cancellation is not a refund. Eligibility depends on the current 1688 order state.

Data categoryDocumented fieldsHow to use them
RequestaliOrderId, cancelReason, remark, confirmCancelProvide the required identifiers, filters, or paging inputs listed in the API document.
Responsedata.success, data.aliOrderId, data.orderId, data.messageInspect returned values and source references; availability depends on the request and upstream source.
  • Request an eligible cancellation.
    • Prompt example: “Check whether my 1688 order [ORDER_ID] is eligible to cancel. Explain the consequence and ask for my explicit approval before requesting cancellation; then report the returned business outcome.”
  • Check whether the required store authorization and input identifiers are ready.
    • Prompt example: “Before using 1688 Cancel 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 Cancel 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