Translation disclaimer

Documentation is written in English and subsequently translated. This page, therefore, might not have the most up-to-date content. If any questions arise relating to the accuracy of the translated content, please refer to the English version of the page.

Menu

管理您的支付

撤销

POST 您的请求到 direct:reverse 操作链接。

注释:该请求不需要请求正文。

撤销示例请求

POST https://try.access.worldpay.com/payments/alternative/direct/reversals/linkData

撤销响应

您会接收到:

  • HTTP 代码 201
  • 您的 reversal 请求的 outcome
  • 链接来追踪您的支付事件

示例响应:

Copied!
{
    "_links": {
        "direct:events": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/linkData"
        },
        "curies": [{
            "name": "direct",
            "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rels}",
            "templated": true
        }]
    }
}

查询和事件

GET 您的请求到 direct:events 操作链接。

注释:该请求不需要请求正文。

查询示例请求

GET https://try.access.worldpay.com/payments/alternative/direct/events?transactionReference=uniqueReference&entity=yourMerchantEntity

查询响应

您会接收到:

  • HTTP 代码 201
  • 您的 events 请求的 outcome
  • 用于撤销追踪您支付的链接

示例响应:

Copied!
{
    "outcome": "sentForSettlement|refused|reversed",
    "_links": {
        "direct:events": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/linkData"
        },
        "direct:reversal": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/reversals/linkData"
        },
        "curies": [{
            "name": "direct",
            "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rels}",
            "templated": true
        }]
    }
}

事件示例请求

GET https://try.access.worldpay.com/payments/alternative/direct/events/linkData

事件响应

您会接收到:

  • HTTP 代码 201
  • 您的 events 请求的 lastEvent
  • 用于撤销追踪您支付的链接

示例响应:

Copied!
{
    "lastEvent": "sentForSettlement|refused|reversed",
    "_links": {
        "direct:events": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/linkData"
        },
        "direct:reversal": {
            "href": "https://try.access.worldpay.com/payments/alternative/direct/reversals/linkData"
        },
        "curies": [{
            "name": "direct",
            "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rels}",
            "templated": true
        }]
    }
}