Skip to main content
PATCH
/
collect
/
payment_pages
/
{id}
curl --request PATCH \
--url https://api.momentco.io/collect/payment_pages/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '{
"amount": 3000,
"description": "Updated premium product with new pricing"
}'
{
"id": "pp_EVT9283NAKSD8234SKJD",
"status": "active",
"page_url": "https://pages.momentpay.io/WELLNESS2025",
"amount": 15000,
"currency": "KES",
"title": "Wellness Retreat - Nairobi",
"description": "One-day guided wellness and meditation retreat",
"return_url": "https://retreats.example.com/thank-you",
"requires_customer_details": true,
"requires_delivery_details": false,
"metadata": {
"event_id": "wellness_nairobi_2025",
"category": "event_registration"
},
"custom_fields": [
{
"key": "session_choice",
"label": "Preferred Session",
"type": "dropdown",
"required": true,
"options": [
"Morning (8AM–12PM)",
"Afternoon (2PM–6PM)"
]
},
{
"key": "dietary_restrictions",
"label": "Any Dietary Restrictions?",
"type": "text",
"required": false,
"default_value": "None"
},
{
"key": "referral_code",
"label": "Referral Code",
"type": "text",
"required": false
}
],
"created_at": "2025-06-16T10:30:00Z",
"updated_at": "2025-06-16T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Headers

Idempotency-Key
string<uuid>
required
Required string length: 1 - 255

Path Parameters

id
string
required
Example:

Body

application/json
amount
integer
Example:
title
string
Maximum length: 200
Example:
description
string
Maximum length: 1000
Example:
return_url
string<uri>
Maximum length: 500
Example:
requires_customer_details
boolean
default:true
Example:
requires_delivery_details
boolean
Example:
products
string[]
custom_fields
object[]
metadata
object
Example:

Response

id
string
Example:
status
enum<string>
default:active
Available options:
active,
inactive,
expired
Example:
page_url
string<uri>
Example:
amount
integer
Example:
currency
string
Example:
title
string
Maximum length: 200
Example:
description
string
Maximum length: 1000
Example:
return_url
string<uri>
Maximum length: 500
Example:
requires_customer_details
boolean
default:true
Example:
requires_delivery_details
boolean
default:false
Example:
products
string[]
custom_fields
object[]
metadata
object
Example:
created_at
string<date-time>
Example:
updated_at
string<date-time>
Example: