WithholdingCancelDisc: post: tags: - 代扣管理 summary: 取消代扣交易 description: | 银行向公用事业单位发起的取消代扣交易请求接口。 用于取消已经发起但尚未完成的代扣交易。 ## 交易码说明 - 请求交易码:CancelDisc - 应答交易码:CancelDiscRes ## 使用场景 - 代扣交易发起后,用户要求取消 - 代扣交易异常需要撤销 - 银行系统故障需要回滚交易 ## 注意事项 - 只能取消当天发起的代扣交易 - 已经成功扣款的交易不能取消,需要通过退款流程处理 - 取消成功后,相关的代扣协议仍然有效 operationId: withholdingCancelDisc parameters: - $ref: '../components/parameters.yaml#/components/parameters/ContentTypeHeader' - $ref: '../components/parameters.yaml#/components/parameters/EncryptTypeHeader' - $ref: '../components/parameters.yaml#/components/parameters/EncryptModeHeader' - $ref: '../components/parameters.yaml#/components/parameters/DataTypeHeader' requestBody: required: true content: application/xml: schema: $ref: '../components/schemas.yaml#/components/schemas/WithholdingCancelDiscRequest' example: | 1.0.1 00001 CancelDisc 20240101 123456789012 123456 654321 ORIG123456789012 20240101 用户申请取消 CONTRACT001 15000 application/json: schema: $ref: '../components/schemas.yaml#/components/schemas/WithholdingCancelDiscRequest' responses: '200': description: 取消代扣交易成功 headers: Content-Type: $ref: '../components/headers.yaml#/components/headers/ContentType' X-Response-Time: $ref: '../components/headers.yaml#/components/headers/ResponseTime' X-Request-Id: $ref: '../components/headers.yaml#/components/headers/RequestId' content: application/xml: schema: $ref: '../components/schemas.yaml#/components/schemas/WithholdingCancelDiscResponse' example: | 1.0.1 00001 CancelDiscRes 20240101 123456789012 AAAAAAA 取消代扣交易成功 123456 654321 ORIG123456789012 1 20240101120000 application/json: schema: $ref: '../components/schemas.yaml#/components/schemas/WithholdingCancelDiscResponse' '400': $ref: '../components/responses.yaml#/components/responses/BusinessError' '500': $ref: '../components/responses.yaml#/components/responses/SystemError' '403': $ref: '../components/responses.yaml#/components/responses/SecurityError' security: - ApiKeyAuth: [] - EncryptedData: []