Php 联邦快递运输api在印度国内运作吗

Php 联邦快递运输api在印度国内运作吗,php,fedex,Php,Fedex,我试图实现联邦快递api来计算将betwnn运送到一个国家的邮政编码的成本。它在美国很好地工作。它也在从美国到其他国家工作(在澳大利亚和非盟试用)。但当我试着用印度或澳大利亚的两个邮政编码作为发货人和收件人地址时。它给出了以下错误:- The transaction returned an Error. Severity: ERROR Source: crs Code: 691 Message: The PurposeOfShipmentType is null, empty or invali

我试图实现联邦快递api来计算将betwnn运送到一个国家的邮政编码的成本。它在美国很好地工作。它也在从美国到其他国家工作(在澳大利亚和非盟试用)。但当我试着用印度或澳大利亚的两个邮政编码作为发货人和收件人地址时。它给出了以下错误:-

The transaction returned an Error.
Severity: ERROR
Source: crs
Code: 691
Message: The PurposeOfShipmentType is null, empty or invalid.
LocalizedMessage: The PurposeOfShipmentType is null, empty or invalid.
不知道是什么问题。我检查了wsdl文件中PurposeOfShipmentType的值,它显示在下面的xml代码中:-

First occurrence
<xs:element name="Purpose" type="ns:PurposeOfShipmentType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.</xs:documentation>
        </xs:annotation>
      </xs:element>

second occurrence
<xs:simpleType name="PurposeOfShipmentType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="GIFT"/>
      <xs:enumeration value="NOT_SOLD"/>
      <xs:enumeration value="PERSONAL_EFFECTS"/>
      <xs:enumeration value="REPAIR_AND_RETURN"/>
      <xs:enumeration value="SAMPLE"/>
      <xs:enumeration value="SOLD"/>
    </xs:restriction>
  </xs:simpleType>

)

如果我没有错,联邦快递的测试账户不会返回印度特定信息。除非Fedex团队对其进行认证,并向您提供生产密钥,否则您可能无法获得您帐户的费率。如果我的理解有误,请纠正我

为了使印度到印度的国内运输有效,您需要在请求中添加
装运目的
类型。这条线在Magento的联邦快递货运代码中不是标准的。该行将作为
CommercialInvoice
下的子行添加到
CustomsClearanceDetail
标题中,然后该行下的一行是
Purpose
,该行可以具有
PurposeOfShipment
具有的任何值

下面是我使用的请求的一个示例,它返回了正确的印度到印度航运的航运估算

'CustomsClearanceDetail' => array(
     'CommercialInvoice' => array(
       'Purpose' => "SOLD"
    )
),

它告诉你什么是错的<代码>装运类型的目的和
装运类型的目的
均为:;空、空或无效。我已编辑问题以供您评论。我检查了PurposeOfShipmentType的值,但不知道应该是什么。您发送的是什么?在发货人的印度一个城市的邮政编码中,对于收件人的印度另一个城市的邮政编码中,包含国家代码,这对国际航运和美国城市都很有效。根据您的要求,
PurposeOfShipmentType
的值是多少?如何在opencart中执行?你知道吗?你的确切问题是什么?
'CustomsClearanceDetail' => array(
     'CommercialInvoice' => array(
       'Purpose' => "SOLD"
    )
),