gpt4 book ai didi

c# - 传递 USPS eVSCertifyRequest 错误,因为在数据库中找不到 MasterMID

转载 作者:数据小太阳 更新时间:2023-10-29 01:45:34 25 4
gpt4 key购买 nike

使用 eVSCertifyRequest 创建 USPS 标签,我按如下方式传递参数:

https://secure.shippingapis.com/ShippingAPI.dll?API=eVSCertify&XML=<eVSCertifyRequest USERID="XXXXXXXX">
<Option>1</Option>
<Revision></Revision>
<ImageParameters>
<ImageParameter>4X6LABEL</ImageParameter>
</ImageParameters>
<FromName>Mitesh Jain</FromName>
<FromFirm>Mitesh Jain</FromFirm>
<FromAddress1>52 NORMANDY RD</FromAddress1>
<FromAddress2>QWE</FromAddress2>
<FromCity>MARLTON</FromCity>
<FromState>NJ</FromState>
<FromZip5>08053</FromZip5>
<FromZip4>0805</FromZip4>
<FromPhone>1234567890</FromPhone>
<POZipCode></POZipCode>
<AllowNonCleansedOriginAddr>false</AllowNonCleansedOriginAddr>
<ToName>JRC,LLC</ToName>
<ToFirm>JRC,LLC</ToFirm>
<ToAddress1>110 South 8th Street</ToAddress1>
<ToAddress2>Suite 104</ToAddress2>
<ToCity>Philadelphia</ToCity>
<ToState>PA</ToState>
<ToZip5>15001</ToZip5>
<ToZip4>1500</ToZip4>
<ToPhone>0123456789</ToPhone>
<POBox></POBox>
<AllowNonCleansedDestAddr>false</AllowNonCleansedDestAddr>
<WeightInOunces>1</WeightInOunces>
<ServiceType>PRIORITY</ServiceType>
<Container>FLAT RATE ENVELOPE</Container>
<Width></Width>
<Length></Length>
<Height></Height>
<Machinable></Machinable>
<ProcessingCategory></ProcessingCategory>
<PriceOptions></PriceOptions>
<InsuredAmount></InsuredAmount>
<AddressServiceRequested></AddressServiceRequested>
<ExpressMailOptions>
<DeliveryOption></DeliveryOption>
<WaiverOfSignature></WaiverOfSignature>
</ExpressMailOptions>
<ShipDate></ShipDate>
<CustomerRefNo></CustomerRefNo>
<ExtraServices>
<ExtraService></ExtraService>
</ExtraServices>
<HoldForPickup></HoldForPickup>
<OpenDistribute></OpenDistribute>
<PermitNumber></PermitNumber>
<PermitZIPCode></PermitZIPCode>
<PermitHolderName></PermitHolderName>
<CRID></CRID>
<MID>847654321</MID>
<SenderName></SenderName>
<SenderEMail></SenderEMail>
<RecipientName></RecipientName>
<RecipientEMail></RecipientEMail>
<ReceiptOption></ReceiptOption>
<ImageType>PDF</ImageType>
<HoldForManifest>Y</HoldForManifest>
<NineDigitRoutingZip>false</NineDigitRoutingZip>
<Content>
<ContentType>HAZMAT</ContentType>
</Content>

但是我得到如下错误

 <?xml version="1.0" encoding="UTF-8"?>
<Error>
<Number>-2147221102</Number>
<Source>clsEVS:GetAPIRegistrationInfo</Source>
<Description>MasterMID not found in database. </Description>

我还需要通过什么或我在这方面遗漏了什么?我从路径 https://www.usps.com/business/web-tools-apis/evs-label-api.htm#_Toc487532684 获取了引用。

最佳答案

您似乎使用了提供的示例 MID 示例,而不是提供您的实际 MID。当您 1. 完全删除 MID,或 2. 提供您的实际 MID 时,请求是否成功?

关于c# - 传递 USPS eVSCertifyRequest 错误,因为在数据库中找不到 MasterMID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45986239/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com