Nexscope

Solicitar factura en 1688

Solicita facturas para pedidos de 1688 elegibles, tras una confirmación expresa, y revisa los resultados de cada pedido.

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

Qué hace esta API

Solicita facturas para pedidos de 1688 elegibles, tras una confirmación expresa, y revisa los resultados de cada pedido.

Casos de uso de Solicitar factura en 1688

Solicitar facturas tras confirmar

Muéstrame los pedidos y datos de invoiceApplyModelList [INVOICE_REQUESTS] para revisarlos. Tras mi confirmación expresa, envía confirmApplyInvoice=true e informa por separado de los pedidos aceptados y rechazados.

Revisar los errores parciales

Después de confirmar la solicitud de factura [INVOICE_REQUESTS], muestra cada pedido de failedList con su errorCode y errorDesc. No supongas que todos los pedidos se procesaron correctamente.

Preguntas frecuentes sobre Solicitar factura en 1688

¿Qué devuelve la API Solicitar factura en 1688?

Solicita facturas para pedidos de 1688 elegibles, tras una confirmación expresa, y revisa los resultados de cada pedido. Revisa los campos y el estado realmente devueltos; los datos ausentes no demuestran un resultado favorable.

¿Cuántos créditos cuesta la API Solicitar factura 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 Solicitar factura en 1688?

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

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

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/invoiceApply' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "confirmApplyInvoice": false,
  "invoiceApplyModelList": [
    {
      "amount": 840,
      "invoiceType": "VATAX_COMM",
      "orderId": "3309156590237728779",
      "purchaserInvoiceTitleModel": {
        "title": "Example recipient",
        "titleType": "PERSONAL"
      }
    }
  ]
}'

Ejemplo de código

{
  "confirmApplyInvoice": false,
  "invoiceApplyModelList": [
    {
      "amount": 840,
      "invoiceType": "VATAX_COMM",
      "orderId": "3309156590237728779",
      "purchaserInvoiceTitleModel": {
        "title": "Example recipient",
        "titleType": "PERSONAL"
      }
    }
  ]
}

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

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/invoiceApply
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
confirmApplyInvoicebooleanobligatorio
Must be JSON true after separate explicit user confirmation. Examples default to false and do not authorize this action.
Predeterminado: false
invoiceApplyModelListarrayobligatorio
invoiceApplyModelList
Cantidad mínima de elementos: 1
invoiceApplyModelList[]objectobligatorio
invoiceApplyModelList
invoiceApplyModelList[].amountintegerobligatorio
Positive integer cents copied unchanged from invoiceAmount (64-bit integer).
Mínimo: 1
Máximo: 9223372036854776000
invoiceApplyModelList[].invoiceTypestringobligatorio
Valor de Invoice type usado por esta operación de API.
Permitidos: VATAX_COMM, VATAX_SPEC
invoiceApplyModelList[].orderIdstringobligatorio
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
invoiceApplyModelList[].purchaserInvoiceTitleModelobjectobligatorio
COMPANY requires taxpayerIdentify. COMPANY with VATAX_SPEC also requires bankName, bankAccountId, registerAddress and registerPhone.
invoiceApplyModelList[].purchaserInvoiceTitleModel.bankAccountIdstringopcional
Required for COMPANY titles with VATAX_SPEC.
invoiceApplyModelList[].purchaserInvoiceTitleModel.bankNamestringopcional
Required for COMPANY titles with VATAX_SPEC.
invoiceApplyModelList[].purchaserInvoiceTitleModel.registerAddressstringopcional
Required for COMPANY titles with VATAX_SPEC.
invoiceApplyModelList[].purchaserInvoiceTitleModel.registerPhonestringopcional
Required for COMPANY titles with VATAX_SPEC.
invoiceApplyModelList[].purchaserInvoiceTitleModel.taxpayerIdentifystringopcional
Required for all COMPANY titles.
invoiceApplyModelList[].purchaserInvoiceTitleModel.titlestringobligatorio
Valor de Title usado por esta operación de API.
invoiceApplyModelList[].purchaserInvoiceTitleModel.titleTypestringobligatorio
Valor de Title type usado por esta operación de API.
Permitidos: PERSONAL, COMPANY

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": {
    "failedList": [],
    "success": true,
    "successList": [
      {
        "orderId": "3309156590237728779",
        "result": "SUCCESS"
      }
    ]
  },
  "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.failedListarrayopcional
Valor de Failed list usado por esta operación de API.
data.failedList[]objectobligatorio
Elemento de data failedList.
data.failedList[].errorCodestringopcional
Valor de Error code usado por esta operación de API.
data.failedList[].errorDescstringopcional
Valor de Error desc usado por esta operación de API.
data.failedList[].orderIdstringopcional
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
data.failedList[].outBizIdstringopcional
Valor de Out biz id usado por esta operación de API.
data.failedList[].resultstringopcional
Valor de Result usado por esta operación de API.
data.failedList[].tradeOrderCompletedbooleanopcional
Valor de Trade order completed usado por esta operación de API.
data.messagestringopcional
Valor de Message usado por esta operación de API.
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.
data.successListarrayopcional
Valor de Success list usado por esta operación de API.
data.successList[]objectobligatorio
Elemento de data successList.
data.successList[].errorCodestringopcional
Valor de Error code usado por esta operación de API.
data.successList[].errorDescstringopcional
Valor de Error desc usado por esta operación de API.
data.successList[].orderIdstringopcional
Exact positive integer identifier. Send as a JSON string.
Patrón: ^[1-9][0-9]*$
data.successList[].outBizIdstringopcional
Valor de Out biz id usado por esta operación de API.
data.successList[].resultstringopcional
Valor de Result usado por esta operación de API.
data.successList[].tradeOrderCompletedbooleanopcional
Valor de Trade order completed 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_invoice_apply",
    "arguments": {
      "confirmApplyInvoice": false,
      "invoiceApplyModelList": [
        {
          "amount": 840,
          "invoiceType": "VATAX_COMM",
          "orderId": "3309156590237728779",
          "purchaserInvoiceTitleModel": {
            "title": "Example recipient",
            "titleType": "PERSONAL"
          }
        }
      ]
    }
  }
}

¿Qué puedes hacer con esta API?

Datos explicados y casos de uso prácticos

AI Guide

Question

What can 1688 Invoice Apply do, and when should I use it?

AI answer

Invoice Apply 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. Inspect every successList and failedList item. INVOICE_ALREADY_APPLIED means already invoiced. Issued invoices cannot be rolled back here.

Data categoryDocumented fieldsHow to use them
RequestinvoiceApplyModelList, confirmApplyInvoiceProvide the required identifiers, filters, or paging inputs listed in the API document.
Responsedata.success, data.code, data.message, data.subCode, data.subMessage, data.successList, data.failedListInspect returned values and source references; availability depends on the request and upstream source.
  • Apply for an invoice.
    • Prompt example: “Check invoice eligibility for 1688 order [ORDER_ID], show the invoice request details, and submit the application only after my explicit approval. Report the outcome for each order.”
  • Check whether the required store authorization and input identifiers are ready.
    • Prompt example: “Before using 1688 Invoice Apply, 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 Invoice Apply 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