> For the complete documentation index, see [llms.txt](https://docs.finpay.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finpay.id/finpay-pg/core-api/direct-debit/mandiri/binding.md).

# Binding

Bind (register) a customer for Mandiri Direct Debit as a funding source.

### Endpoint

| Environment | Method | URL                                                          |
| ----------- | ------ | ------------------------------------------------------------ |
| Development | POST   | <https://devo.finnet.co.id/pg/payment/card/directdebit/bind> |
| Production  | POST   | <https://live.finnet.co.id/pg/payment/card/directdebit/bind> |

### Body Request

Content-Type: `application/json`.

| No | Name                         | Type   | Mandatory | Description                                    |
| -- | ---------------------------- | ------ | --------- | ---------------------------------------------- |
| 1  | customer                     | Object | M         | Customer identity and contact details.         |
| 2  | customer.id                  | String | M         | Customer identifier on your system.            |
| 3  | customer.email               | String | M         | Customer email.                                |
| 4  | customer.firstName           | String | M         | Customer first name.                           |
| 5  | customer.lastName            | String | M         | Customer last name.                            |
| 6  | customer.mobilePhone         | String | M         | Use international format (example: `+628...`). |
| 7  | sourceOfFunds                | Object | M         | Funding source configuration.                  |
| 8  | sourceOfFunds.type           | String | M         | Value for Mandiri Direct Debit: `ddmandiri`.   |
| 9  | recurring                    | Object | M         | Recurring configuration for the binding.       |
| 10 | recurring.type               | String | M         | Recurring type. Example: `PURCHASE`.           |
| 11 | recurring.id                 | String | M         | Recurring identifier.                          |
| 12 | recurring.amount             | String | M         | Amount as string. Example: `"1000"`.           |
| 13 | recurring.interval           | String | M         | Interval value. Example: `"1"`.                |
| 14 | recurring.intervalUnit       | String | M         | Interval unit. Example: `monthly`.             |
| 15 | recurring.maxInterval        | String | M         | Max interval value. Example: `"2"`.            |
| 16 | recurring.startDate          | String | M         | Start date. Format: `yyyyMMdd`.                |
| 17 | recurring.endDate            | String | M         | End date. Format: `yyyyMMdd`.                  |
| 18 | recurring.retry              | Object | M         | Retry configuration.                           |
| 19 | recurring.retry.interval     | String | M         | Retry interval value. Example: `"1"`.          |
| 20 | recurring.retry.intervalUnit | String | M         | Retry interval unit. Example: `minutes`.       |
| 21 | recurring.retry.maxInterval  | String | M         | Retry max interval value. Example: `"1"`.      |

#### Sample Request

```json
{
  "customer": {
    "id": "finnet@finpay.id",
    "email": "finnet@finpay.id",
    "firstName": "Finnet",
    "lastName": "Finpay",
    "mobilePhone": "+628123456789"
  },
  "sourceOfFunds": {
    "type": "ddmandiri"
  },
  "recurring": {
    "type": "PURCHASE",
    "id": "abcd",
    "amount": "1000",
    "interval": "1",
    "intervalUnit": "monthly",
    "maxInterval": "2",
    "startDate": "20250725",
    "endDate": "20300726",
    "retry": {
      "interval": "1",
      "intervalUnit": "minutes",
      "maxInterval": "1"
    }
  }
}
```

### Body Response

| No | Name            | Type                                                | Mandatory | Description                             |
| -- | --------------- | --------------------------------------------------- | --------- | --------------------------------------- |
| 1  | responseCode    | [Enum](/appendix/enumeration/response-code-list.md) | M         | Response Code.                          |
| 2  | responseMessage | String                                              | M         | Response Message.                       |
| 3  | redirecturl     | String                                              | M         | Redirect URL.                           |
| 4  | processingTime  | Number                                              | M         | Processing time.                        |
| 5  | traceId         | String                                              | M         | Trace ID for debugging/troubleshooting. |

#### Sample Response

```json
{
  "responseCode": "2000000",
  "responseMessage": "Request has been processed successfully",
  "redirecturl": "https://devo.finpay.id/pg/payment/card/directdebit/ddmandiri/41cc1289f4d3a52cd2f84e58281f36b7d092bae8b62d462b3bb312651c21d047",
  "processingTime": 0.04789113998413086,
  "traceId": "a420b67f-87ce-46c9-a2c1-ce2f5128f02b"
}
```


---

# 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://docs.finpay.id/finpay-pg/core-api/direct-debit/mandiri/binding.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.
