请求与响应
在完成必要的
使用 FTP
提交账户更新器请求
从我们接收确认响应
- 如果响应指出了任何错误,则您必须更正错误,然后再重新提交新的请求
Visa 和 MasterCard 向我们发送包含所请求信息的文件
我们发送完成响应
使用 [FTP] 检索您的文件(/zh/docs/access-worldpay/account-updater/testing/ftp)
批量请求
流程的第一步是提交账户更新器批量请求。
请求 XML 结构
在提交请求时,您可以使用卡或 token 信息。您必须使用以下结构:
Copied!
<cnpRequest version="12.0" xmlns="http://www.vantiv.cnp.com/schema" id="requestId" numBatchRequests="1">
<authentication>
<user>JohnSmith</user>
<password>Password1234</password>
</authentication>
<batchRequest id="batchId" numAccountUpdates="2" merchantId="testMerchant01">
<accountUpdate id=”1234” reportGroup"merchant01ReportGrpoup">
<orderId >123456</orderId>
<card>
<type>Visa</type>
<number>123412312345123</number>
<expDate>0721</expDate>
</card>
</accountUpdate>
<accountUpdate id=”1235” reportGroup="merchant01ReportGrpoup">
<orderId>123456</orderId>
<token>
<cnpToken >12345678912345</cnpToken>
<expDate>0721</expDate>
</token>
</accountUpdate>
</batchRequest>
</cnpRequest>
<cnpRequest version="12.0" xmlns="http://www.vantiv.cnp.com/schema" id="requestId" numBatchRequests="1"> <authentication> <user>JohnSmith</user> <password>Password1234</password> </authentication> <batchRequest id="batchId" numAccountUpdates="2" merchantId="testMerchant01"> <accountUpdate id=”1234” reportGroup"merchant01ReportGrpoup"> <orderId >123456</orderId> <card> <type>Visa</type> <number>123412312345123</number> <expDate>0721</expDate> </card> </accountUpdate> <accountUpdate id=”1235” reportGroup="merchant01ReportGrpoup"> <orderId>123456</orderId> <token> <cnpToken >12345678912345</cnpToken> <expDate>0721</expDate> </token> </accountUpdate> </batchRequest> </cnpRequest>
有关我们账户更新器元素的更多详情,请单击
确认响应
在您提交请求时,Worldpay 会返回确认响应。该响应确认请求已收到并且包含验证信息。
确认响应 XML 结构
Copied!
<cnpResponse version= "11.2" response="0" message="Valid Format" cnpSessionId="1700000128">
<batchResponse cnpBatchId="1700000136" merchantId="TestMerchant01">
<accountUpdateResponse id=”1234” reportGroup="MerchantReportGroup01">
<cnpTxnId>123456789</cnpTxnId>
<orderId>123456</orderId>
<response>000</response>
<responseTime>2009-12-21T11:37:04</responseTime>
<message>Approved</message>
</accountUpdateResponse>
</batchResponse>
</cnpResponse>
<cnpResponse version= "11.2" response="0" message="Valid Format" cnpSessionId="1700000128"> <batchResponse cnpBatchId="1700000136" merchantId="TestMerchant01"> <accountUpdateResponse id=”1234” reportGroup="MerchantReportGroup01"> <cnpTxnId>123456789</cnpTxnId> <orderId>123456</orderId> <response>000</response> <responseTime>2009-12-21T11:37:04</responseTime> <message>Approved</message> </accountUpdateResponse> </batchResponse> </cnpResponse>
有关我们账户更新器元素的更多详情,请单击
确认响应代码
我们会在收到请求时通知您。如果响应文件指出了任何错误,则您必须解决问题,然后在新的账户更新器请求中提交已更正的账户信息。
响应代码 | 响应消息 | 解决方案 |
---|---|---|
000 | 已批准 | 我们将这些账户转发给 Visa 和 MasterCard。 |
301 | 无效账号 | 卡号无效。更正账号,然后重新提交数据。 |
320 | 无效过期日期 | 过期日期无效。更正过期日期,然后重新提交卡数据。 |
821 | 商户未授权使用 token | 您未授权使用 token 。 |
822 | 未找到 token | 系统中未找到提交的 token 。更正 token 号,然后重新提交。 |
823 | token 无效 | 提交的 token 未通过验证。更正 token 号,然后重新提交。 |
899 | 通用 token 使用错误 | 存在未规定的 token 使用错误;请联系客户服务部门。 |
完成响应
我们返回完成响应,其中包括更新后的客户账户信息和网络提供的原因代码。您可以使用该信息来更新客户账户信息。
通常,我们会在您首次提交
完成响应格式
以下示例介绍了确认响应和完成响应的树形结构视图。
注释:如果提交的卡/ token 信息中没有更改,则系统会返回原始卡/ token 信息。但该响应不包含 updatedCard
或 updatedToken
子元素。
完成响应 XML 结构
Copied!
<cnpResponse version= "11.2" response="0" message="Merchant Fiscal Day: 06102010" cnpSessionId="1700000128">
<batchResponse cnpBatchId="1700000136" merchantId="TestMerchant01">
<accountUpdateResponse id=”1234” reportGroup= "MerchantReportGroup01">
<cnpTxnId >123456789</cnpTxnId>
<orderId >123456</orderId>
<response >000</response>
<responseTime >2009-12-21T11:37:04</responseTime>
<message >Approved</message>
<originalCard >
<type >Visa</type>
<number >123412312345123</number>
<expDate >0721</expDate>
</originalCard>
<updatedCard >
<type >Visa</type>
<number >1234123123451224</number>
<expDate >0725</expDate>
</updatedCard>
</accountUpdateResponse>
<accountUpdateResponse id=”1235” reportGroup= "MerchantReportGroup01">
<cnpTxnId>123456789</cnpTxnId>
<response>000</response>
<responseTime>2009-12-21T11:37:04</responseTime>
<message>Approved</message>
<originalToken>
<cnpToken>12345678912345</cnpToken>
<expDate>0721</expDate>
<type>Visa</type>
<bin>123456</bin>
</originalToken>
<updatedToken>
<cnpToken>12345622912345</cnpToken>
<expDate>0725</expDate>
<type>Visa</type>
<bin>123456</bin>
</updatedToken>
</accountUpdateResponse>
</batchResponse>
</cnpResponse>
<cnpResponse version= "11.2" response="0" message="Merchant Fiscal Day: 06102010" cnpSessionId="1700000128"> <batchResponse cnpBatchId="1700000136" merchantId="TestMerchant01"> <accountUpdateResponse id=”1234” reportGroup= "MerchantReportGroup01"> <cnpTxnId >123456789</cnpTxnId> <orderId >123456</orderId> <response >000</response> <responseTime >2009-12-21T11:37:04</responseTime> <message >Approved</message> <originalCard > <type >Visa</type> <number >123412312345123</number> <expDate >0721</expDate> </originalCard> <updatedCard > <type >Visa</type> <number >1234123123451224</number> <expDate >0725</expDate> </updatedCard> </accountUpdateResponse> <accountUpdateResponse id=”1235” reportGroup= "MerchantReportGroup01"> <cnpTxnId>123456789</cnpTxnId> <response>000</response> <responseTime>2009-12-21T11:37:04</responseTime> <message>Approved</message> <originalToken> <cnpToken>12345678912345</cnpToken> <expDate>0721</expDate> <type>Visa</type> <bin>123456</bin> </originalToken> <updatedToken> <cnpToken>12345622912345</cnpToken> <expDate>0725</expDate> <type>Visa</type> <bin>123456</bin> </updatedToken> </accountUpdateResponse> </batchResponse> </cnpResponse>
有关我们账户更新器元素的更多详情,请单击
完成响应代码
账户更新器完成响应代码及其相关消息(如
- 响应代码值出现在“
”元素中。 - 响应消息值出现在“
”元素中。 - 解决方案列提供了建议的操作。
响应代码 | 响应消息 | 解决方案 |
---|---|---|
191 | 商户未在更新计划中注册 | 将此问题上报给您的客户体验经理。这表示了在提交另一个请求文件之前必须解决的设置问题。 |
500 | 该账号已更改 | 提交在完成响应中返回的账号。该响应还可能表示账号和过期日期均已更改。 |
501 | 该账户已关闭 | 请联系持卡人提交更新信息。 |
502 | 过期日期已更改 | 提交在完成响应中返回的过期日期。 |
503 | 发卡银行未参加更新计划。 | 发卡机构未参加账户更新器计划。提交原始卡信息。 |
504 | 请联系持卡人提交更新信息 | 请联系持卡人提交更新信息。 |
505 | 未找到匹配项 | 在更新信息中未找到匹配项。提交原始卡信息。 |
506 | 未找到更改 | 提交原始卡信息。 |