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,
"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

Authentication using Bearer tokens. Include your API key in the Authorization header.

Key Types:

  • Test Keys: sk_test_* for development and testing
  • Live Keys: sk_* for production environments
  • Public Keys: pk_test_* or pk_* for client-side operations

📩 Need access? Contact Support to request your API keys.

Usage:

Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc

Headers

Idempotency-Key
string<uuid>
required

A unique key to prevent duplicate operations. Use the same key for retries to ensure idempotent behavior.

Best Practices:

  • Use UUIDs or other cryptographically unique identifiers
  • Maintain keys for at least 24 hours for retry scenarios
  • Use different keys for different operations
  • Monitor Idempotent-Replayed header for cache hits
Required string length: 1 - 255

Path Parameters

id
string
required

Unique identifier for the payment page. Must be a valid payment page ID.

Example:

"pp_SjSA234ADKA25245ADJKS"

Body

application/json

Request payload for updating an existing payment page

Response

200
application/json

Payment page updated successfully

A payment page represents a configurable payment collection interface that can be shared with customers. Payment pages support both fixed and variable amounts with customizable fields for data collection.