请求创建订单接口报错,测试环境正常,烦请帮忙解决

请求地址:

 

  https://transact.ti.com/v2/backlog/orders

入参:

 

{"order":{"id":70,"customerPurchaseOrderNumber":"JG-3401-2406160003","orderNumber":"","orderStatus":"CREATE","shipToAccountNumber":"185169","endCustomerCompanyName":"重庆君歌","delFlag":"0","purchaseOrderItemList":[{"id":226,"headId":70,"customerLineItemNumber":"1","tiPartNumber":"TPS54201DDCR","customerAnticipatedUnitPrice":0.170,"tiTotalOrderItemQuantity":0,"customerCurrencyCode":"USD","tiUnitPrice":0.000,"requestedQuantity":30000,"requestedDeliveryDate":"Jun 18, 2024 12:00:00 AM","lineItemChangeIndicator":"I","schedules":[{"requestedQuantity":30000,"requestedDeliveryDate":"2024-06-18"}],"delFlag":"0","sendFlag":"0","unshippedQuantity":0,"shippedQuantity":0,"nextEstimatedDeliveryQuantity":0,"cancellationWindowWeeks":0,"rescheduleWindowWeeks":0,"itemNumber":"J40140169","standards":"TPS54201DDCR","applyDate":"Jun 17, 2024 5:46:50 PM","totalAmount":0.000000,"tiTotalAmount":0.000,"createBy":"suyeqin","createTime":"Jun 17, 2024 4:09:25 PM"}],"lineItems":[{"id":226,"headId":70,"customerLineItemNumber":"1","tiPartNumber":"TPS54201DDCR","customerAnticipatedUnitPrice":0.170,"tiTotalOrderItemQuantity":0,"customerCurrencyCode":"USD","tiUnitPrice":0.000,"requestedQuantity":30000,"requestedDeliveryDate":"Jun 18, 2024 12:00:00 AM","lineItemChangeIndicator":"I","schedules":[{"requestedQuantity":30000,"requestedDeliveryDate":"2024-06-18"}],"delFlag":"0","sendFlag":"0","unshippedQuantity":0,"shippedQuantity":0,"nextEstimatedDeliveryQuantity":0,"cancellationWindowWeeks":0,"rescheduleWindowWeeks":0,"itemNumber":"J40140169","standards":"TPS54201DDCR","applyDate":"Jun 17, 2024 5:46:50 PM","totalAmount":0.000000,"tiTotalAmount":0.000,"createBy":"suyeqin","createTime":"Jun 17, 2024 4:09:25 PM"}],"sendFlag":"0","createBy":"suyeqin","createTime":"Jun 17, 2024 3:30:37 PM","updateBy":"","updateTime":"Jun 17, 2024 4:09:25 PM"}}

 

出参:

 

{"fault":{"faultstring":"Invalid API call as no apiproduct match found","detail":{"errorcode":"keymanagement.service.InvalidAPICallAsNoApiProductMatchFound"}}}    

  • Hello team, 

    请帮忙看一下这个紧急case, 客户Innolight Junge是API 2.0客户,目前已完成UAT正在进行pilot run。客户在正式环境创建订单的原数据如上入参所示,返回报错“Invalid API call as no apiproduct match found”。客户将原数据拷贝到测试环境中创建订单是成功的。请帮忙检查一下,谢谢!

  • Hello Amy, 请问客户确定是用的正式环境的credential么?

  • 是的哦  TOKEN获取正常,创建订单失败
    接口名称:
    authentication
    创建信息:
    / Mon Jun 17 17:46:51 CST 2024
    请求地址:
    transact.ti.com/.../accesstoken
    请求方法:
    post
    请求参数:
    {
    • "grant_type": "client_credentials",
    • "client_secret": "Tdxxx",
    • "client_id": "tlxx"
    }
    返回参数:
    {
    • "access_token": "0adiJjVRu17Z4GHAhAAl6G8PXWn5",
    • "token_type": "bearer",
    • "expires_in": 3599,
    • "scope": "",
    • "application_name": "BKG_APP_PRE_CQJEC_185175",
    • "developer.email": "suyeqin@cqjec.com",
    • "issued_at": "1718617610525",
    • "client_id": "tl6zGoGIXnvHC7YHbnBPq3h2Lrxz1Vs6"
    }
  • BKG_APP_PRE_CQJEC_185175这个是测试环境的credential, 你需要用正式环境 BKG_APP_CQJEC_185175 的secret和id调用token 

  • 管理员账号下未查询到BKG_APP_CQJEC_185175   只有BKG_APP_PRE_CQJEC_185175

  • 你好,已经通过邮件沟通,稍后amy会联系您那边告知正式环境相关API密钥,谢谢。