---
title: "Create eWallet Payment API"
method: POST
path: "/debit/payment-host-to-host"
---

# Create eWallet Payment API

`POST /debit/payment-host-to-host`

The following endpoint can be used to initiate payment via eWallets.

## Headers

- `Content-Type` string, required
- `X-TIMESTAMP` string, required
- `Authorization` string
- `X-SIGNATURE` string, required
- `X-PARTNER-ID` string, required
- `X-EXTERNAL-ID` string, required
- `CHANNEL-ID` string, required

## Request body

- object
  - `partnerReferenceNo` string, required — Transaction reference from merchant’s system. Must be unique.
  - `amount` object, required
    - `value` string, required — Transaction amount with 2 decimal places.
    - `currency` string, required — Currency in ISO 4217 format. Only “IDR” value is accepted.
  - `additionalInfo` object, required
    - `expiryDate` string — Expiry time in ISO 8601: YYYY-MM-DDThh:mm:ss+07:00. It is set to default if not provided.
    - `customerInfo` object — The customerInfo fields including customer_ref_id, given_name, email, mobile. Either mobile or email is a mandatory field whereas others are optional
      - `customer_ref_id` string — Merchant’s customer reference.
      - `given_name` string — Customer name.
      - `email` string — Customer email address.
      - `mobile` string — Customer phone number.
    - `phoneNumber` string, required — Phone number attached to eWallet. Mandatory for OVO.
    - `channelCode` string, required — eWallet channel of choice. Supported channels: "GOPAY", "SHOPEEPAY", "DANA", "OVO", "LINKAJA".

## Response `200`

This response indicates that an eWallet payment was successfully initiated.

- object
  - `responseCode` string, required — Response code indicating the result of the operation.
  - `responseMessage` string, required — Message explaining the responseCode.
  - `referenceNo` string, required — Durianpay internal payment reference ID.
  - `partnerReferenceNo` string, required — Merchant’s unique transaction reference.
  - `webRedirectUrl` string — URL redirection to eWallet app/web. To be shared to customer. Not applicable for OVO.
  - `additionalInfo` object, required
    - `expiryDate` string, required — Expiry date of transaction. Format: YYYY-MM-DDThh:mm:ss+07:00.
    - `customerInfo` object
      - `customer_id` string — Durianpay's internal customer reference ID.
      - `customer_ref_id` string — Merchant's internal customer reference ID.
      - `given_name` string — Customer name.
      - `email` string — Customer email address.
      - `mobile` string — Customer phone number.
    - `phoneNumber` string, required — Phone number attached to eWallet. Mandatory for OVO.
    - `channelCode` string, required — eWallet channel of choice. Supported channels: "GOPAY", "SHOPEEPAY", "DANA", "OVO", "LINKAJA".

## Other responses

- `400` — This response indicates a client-side error occurred while processing the request.
- `500` — This response indicates a server-side error occurred while processing the request.

---

[API](https://skmtc.net/durianpay/apis/durianpay-api.md) · [All operations](https://skmtc.net/durianpay/apis/durianpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/durianpay/durianpay-api/versions/ffc0e7e8a227/schema)
