> 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/blu-by-bca-digital/binding.md).

# Binding

Bind (register) Customer's blu by BCA Digital account as a Direct Debit funding source. Redirect the customer to `redirectUrl` to authorize linking.

### Endpoint <a href="#technical-specification" id="technical-specification"></a>

| 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

| No | Name                   | Type   | Mandatory | Description                                                     |
| -- | ---------------------- | ------ | --------- | --------------------------------------------------------------- |
| 1  | `customer`             | object | M         | Customer identity and contact details.                          |
| 2  | `customer.id`          | string | M         | Customer ID in 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         | Registered blu by BCA Digital number, such as `+6281234567890`. |
| 7  | `url`                  | object | M         |                                                                 |
| 8  | `url.callbackUrl`      | string | M         | URL for push notification.                                      |
| 9  | `url.redirectUrl`      | string | M         | blu by BCA Digital hosted authorization page.                   |
| 10 | `sourceOfFunds`        | object | M         | Funding source configuration.                                   |
| 11 | `sourceOfFunds.type`   | string | M         | `ddblu`.                                                        |

#### **Sample Request**

```json
{
  "customer": {
        "id": "whyasta@gmail.com",
        "email": "whyasta@gmail.com",
        "firstName": "Wahyu",
        "lastName": "Asta",
        "mobilePhone": "+6286500018994"
    },
    "url": {
        "callbackUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultsuccess.php",
        "redirectUrl": "https://{blu-hosted-page}/account-binding/linkage/76d229ea-7fcb-43a7-8fc4-a6c4f9dbe238"
    },
    "sourceOfFunds": {
        "type": "ddblu"
    }
}'
```

### Body Response

**`200 OK`**

| Name              | Type   | Description                                   |
| ----------------- | ------ | --------------------------------------------- |
| `responseCode`    | enum   | Response code.                                |
| `responseMessage` | string | Response message.                             |
| `referenceNumber` | string | Binding reference number.                     |
| `redirectUrl`     | string | blu by BCA Digital hosted authorization page. |
| `expiryLink`      | string | Expiry time in ISO 8601 format.               |
| `processingTime`  | number | Processing time in seconds.                   |
| `traceId`         | string | Trace ID.                                     |

#### **Sample Response**

```json
{
  "responseCode": "2000000",
  "responseMessage": "Request has been processed successfully",
  "referenceNumber": "2026061809133098493769",
  "redirectUrl": "https://{blu-hosted-page}/account-binding/linkage/76d229ea-7fcb-43a7-8fc4-a6c4f9dbe238",
  "expiryLink": "2026-06-18T10:13:30+07:00",
  "processingTime": 1.0054900646209717,
  "traceId": "eeece648-8290-445c-96b9-11ae53525dad"
}
```

### Response Code & Message <a href="#response-code-message" id="response-code-message"></a>

<table><thead><tr><th width="70.16667175292969">No</th><th width="134.07135009765625">HTTP Code</th><th width="149.66668701171875">Code</th><th>Message</th></tr></thead><tbody><tr><td>1</td><td>200</td><td>2000000</td><td>Request has been processed successfully</td></tr><tr><td>2</td><td>400</td><td>4000001</td><td>Invalid Field Format. The <code>customer.mobile</code> phone format is invalid</td></tr><tr><td>3</td><td>404</td><td>4043000</td><td>Invalid Transaction Status. Feature Not Allowed</td></tr></tbody></table>

***

### Customer Journey

{% stepper %}
{% step %}

#### Connect blu by BCA Digital account

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2F8THVYPSWR7gAkYnqNo22%2Fdd-blu-binding-01-connect.png?alt=media&amp;token=931497d5-2548-4688-a725-b5d2677e4805" alt="blu binding landing page" width="300"><figcaption><p>Connect blu by BCA Digital account</p></figcaption></figure>
{% endstep %}

{% step %}

#### Give Consent

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2F7FyCFVWf2mOOKNqpowjf%2Fdd-blu-binding-02-consent.png?alt=media&amp;token=644f7841-9590-4eb8-b94e-244492d7cbc7" alt="blu binding consent" width="300"><figcaption><p>Consent to Direct Debit authorization</p></figcaption></figure>
{% endstep %}

{% step %}

#### Enter Password and OTP

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2FGDbQYDlCb9ECIljIon2O%2Fdd-blu-binding-03-password.png?alt=media&amp;token=89d49809-466b-453c-880c-3bf34a914ed6" alt="Enter blu password" width="300"><figcaption><p>Enter blu by BCA Digital password</p></figcaption></figure>

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2FgukFkK6eUiWES2bgPoPU%2Fdd-blu-binding-04-otp-channel.png?alt=media&amp;token=5feb25e9-d6fe-489f-b371-1608f25842ac" alt="Choose OTP channel" width="300"><figcaption><p>Choose OTP channel</p></figcaption></figure>

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2FJMJsIdssV7bX7gzM8uDE%2Fdd-blu-binding-05-otp.png?alt=media&amp;token=a76156e8-2503-4464-a130-2753f29266b4" alt="Enter 4-digit OTP" width="300"><figcaption><p>Verify phone number with OTP</p></figcaption></figure>
{% endstep %}

{% step %}

#### Linking in progress

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2FmXyWn7staidZeRVAyo43%2Fdd-blu-binding-06-linking-in-progress.jpg?alt=media&amp;token=bed49b38-c418-449f-bf14-31f39c4753a1" alt="Direct Debit Linking in progress" width="300"><figcaption><p>Direct Debit linking in progress</p></figcaption></figure>
{% endstep %}
{% endstepper %}

If the customer enters a wrong password, the blu by BCA Digital page shows an error and the customer can retry.

<figure><img src="https://1043525006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0e6BKtpYpb5u7FWksQC3%2Fuploads%2FX1rht1MKis1LjEhp1hV8%2Fdd-blu-binding-err-wrong-password.png?alt=media&amp;token=ba72816b-1f14-403d-a68b-4ae757e223c1" alt="Wrong blu password" width="300"><figcaption><p>Wrong Password</p></figcaption></figure>


---

# 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/blu-by-bca-digital/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.
