---
title: "Create an agreement for a binding"
method: POST
path: "/v1/gcash/bindings/{id}/agreement"
tags: ["GCash"]
---

# Create an agreement for a binding

`POST /v1/gcash/bindings/{id}/agreement`

## Request

- Base URL: `https://ewallets-api.paymongo.com`
- URL: `https://ewallets-api.paymongo.com/v1/gcash/bindings/{id}/agreement`
- Auth: HTTP basic

Creates an agreement for a binding to enable subscription payments

## Path parameters

- `id` string, required

## Request body

- AgreementRequestDTO: Request payload for creating an agreement with payment details
  - `amount` integer
  - `currency` string
  - `merchant_trans_id` string
  - `order_title` string

## Response `200`

Successfully created agreement

- object: Standard response containing data and its metadata if any
  - `data` AgreementResponseDTO: Response payload containing the result of the agreement creation
    - `acquirement_id` string
    - `id` string
    - `paid_time` string
    - `result_code` string
    - `result_code_id` string
    - `transaction_id` string
  - `has_more` boolean

## Other responses

- `400`: Invalid request body or validation errors
- `401`: Missing or invalid credentials
- `422`: merchant_not_configured: the merchant has no live-mode configuration for this wallet
- `500`: Internal server error

---

[API](https://skmtc.dev/paymongo/apis/ewallets.md) - [All operations](https://skmtc.dev/paymongo/apis/ewallets/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/ewallets/revisions/a445ca65c132?raw)
