> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/api-reference/reference/refunds.md).

# Refunds

## POST /orders/{RefNo}/refund/

> Issue a partial refund

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/orders/{RefNo}/refund/":{"post":{"tags":["Refunds"],"summary":"Issue a partial refund","parameters":[{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["application/json"]}},{"name":"RefNo","in":"path","description":"Unique, system-generated order identifier.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/body_3"}}}},"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"body_3":{"type":"object","properties":{"amount":{"description":"Refundable amount. Required as a supplementary check for partial refunds. Example: '26.00'.","type":"number"},"items":{"type":"array","items":{"$ref":"#/components/schemas/orders0shipping_Items"}},"comment":{"description":"Comments are displayed to customers in the refund confirmation they receive. Example: 'Let us know if you are satisfied with the refund process'. ","type":"string"},"reason":{"description":"In case you have custom refund reasons defined on your account, send one of the reasons. If not, send one of the platform defined reasons. [Read more about 2Checkout refund reasons](https://verifone.cloud/docs/2checkout/Documentation/27Refunds_and_chargebacks/Refunds). Example: 'Unwanted auto-renewal'.","type":"string"}}},"orders0shipping_Items":{"type":"object","properties":{"Code":{"description":"Product code defined in the Information tab from the Product level, in the Control Panel.","type":"string"},"Quantity":{"description":"Quantity of the product that is being purchased. Default value is 1.","type":"number"}}}}}}
```

## DELETE /orders/{RefNo}/refund/

> Working example: Cancel a refund request

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/orders/{RefNo}/refund/":{"delete":{"tags":["Refunds"],"summary":"Working example: Cancel a refund request","parameters":[{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","enum":["application/json"]}},{"name":"RefNo","in":"path","description":"Unique, system-generated order identifier.","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRefundReference200"}}}},"400":{"description":"Invalid data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRefundReference400"}}}}}}}},"components":{"schemas":{"CancelRefundReference200":{"type":"object","properties":{"RefundId":{"type":"string"}}},"CancelRefundReference400":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.2checkout.com/api-reference/reference/refunds.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
