> For the complete documentation index, see [llms.txt](https://developers.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.doku.com/archive/snap/e-wallet/shopeepay.md).

# ShopeePay

### Integration Steps <a href="#pdf-page-vwpkpshm1dk0d9lf47mv-integration-steps" id="pdf-page-vwpkpshm1dk0d9lf47mv-integration-steps"></a>

Here is the overview of how to integrate with ShopeePay :

1. [Payment](https://open.gitbook.com/~space/qCxtvLoJNNxvp4U7kLHd/~changes/xks6ABOMESCkz47z8vNy/~gitbook/pdf?back=false\&only=yes\&page=vwPKpSHm1dK0d9lf47mV#pdf-page-vwPKpSHm1dK0d9lf47mV-1.-payment)
2. [Acknowledge Payment Notification](https://open.gitbook.com/~space/qCxtvLoJNNxvp4U7kLHd/~changes/xks6ABOMESCkz47z8vNy/~gitbook/pdf?back=false\&only=yes\&page=vwPKpSHm1dK0d9lf47mV#pdf-page-vwPKpSHm1dK0d9lf47mV-2.-acknowledge-payment-notification)

#### 1. Payment <a href="#pdf-page-vwpkpshm1dk0d9lf47mv-id-1.-payment" id="pdf-page-vwpkpshm1dk0d9lf47mv-id-1.-payment"></a>

To do payment using ShopeePay, you will need to hit this API through your backend :&#x20;

{% openapi src="/files/jlyywpSo9sX5lClRYrxm" path="/direct-debit/merchant/shopeepay/v1.0/debit/payment-host-to-host" method="post" %}
[Shopee Pay.json](https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2FU7qzjhs2DjdWs4AzyRsd%2FShopee%20Pay.json?alt=media\&token=2d85b214-e7ec-490e-82f1-46f5aa8344e5)
{% endopenapi %}

#### 2. Acknowledge Payment Notification <a href="#pdf-page-vwpkpshm1dk0d9lf47mv-id-2.-acknowledge-payment-notification" id="pdf-page-vwpkpshm1dk0d9lf47mv-id-2.-acknowledge-payment-notification"></a>

After the payment is being made by your customer, DOKU will send **HTTP Notification** to your defined `Notification URL`. Learn how to [handle the notification from DOKU](https://app.gitbook.com/s/qCxtvLoJNNxvp4U7kLHd/getting-started-with-doku-api/notification) .

### Additional Feature <a href="#pdf-page-vwpkpshm1dk0d9lf47mv-additional-feature" id="pdf-page-vwpkpshm1dk0d9lf47mv-additional-feature"></a>

#### Online Refund :  <a href="#pdf-page-vwpkpshm1dk0d9lf47mv-online-refund" id="pdf-page-vwpkpshm1dk0d9lf47mv-online-refund"></a>

{% openapi src="/files/jlyywpSo9sX5lClRYrxm" path="/direct-debit/merchant/shopeepay/v1.0/debit/refund" method="post" %}
[Shopee Pay.json](https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2FU7qzjhs2DjdWs4AzyRsd%2FShopee%20Pay.json?alt=media\&token=2d85b214-e7ec-490e-82f1-46f5aa8344e5)
{% endopenapi %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.doku.com/archive/snap/e-wallet/shopeepay.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
