GCash

Create an agreement for a binding

Creates an agreement for a binding to enable subscription payments

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

Path parameters

idstring required

Binding ID

Request body

amountinteger
currencystring
merchant_trans_idstring
order_titlestring

Example request

{
  "amount": 1000,
  "currency": "PHP",
  "merchant_trans_id": "trans_123",
  "order_title": "Order Title"
}

Response

Successfully created agreement

has_moreboolean

Example response

{
  "data": {
    "acquirement_id": "acq_abc123",
    "id": "bind_abc123",
    "paid_time": "2023-01-01 00:00:00+00:00",
    "result_code": "SUCCESS",
    "result_code_id": "00",
    "transaction_id": "txn_abc123"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.