Skip to main content
WEBHOOK
customer.updated
{
  "data": {
    "id": "cus_GqfKXLmg61LURZhB",
    "object": "customer",
    "environment": "sandbox",
    "name": "John Doe",
    "phoneNumber": "254712345678",
    "description": "VIP customer with recurring payments",
    "metadata": {},
    "countryCode": "KE",
    "isActive": true,
    "isVerified": true,
    "firstTransactionAt": "2024-12-15T09:15:00.000Z",
    "source": "api",
    "createdAt": "2024-12-10T08:30:00.000Z",
    "updatedAt": "2024-12-19T14:22:00.000Z",
    "lastActiveAt": "2024-12-19T16:45:00.000Z"
  },
  "timestamp": "2021-01-01T00:00:00Z",
  "type": "customer.updated",
  "object": "event"
}

Documentation Index

Fetch the complete documentation index at: https://docs.moflay.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The API key to use for authentication

Body

application/json

Webhook payload for customer.updated events

data
object
required
Example:
{
  "id": "cus_GqfKXLmg61LURZhB",
  "object": "customer",
  "environment": "sandbox",
  "name": "John Doe",
  "phoneNumber": "254712345678",
  "description": "VIP customer with recurring payments",
  "metadata": {},
  "countryCode": "KE",
  "isActive": true,
  "isVerified": true,
  "firstTransactionAt": "2024-12-15T09:15:00.000Z",
  "source": "api",
  "createdAt": "2024-12-10T08:30:00.000Z",
  "updatedAt": "2024-12-19T14:22:00.000Z",
  "lastActiveAt": "2024-12-19T16:45:00.000Z"
}
timestamp
string
required

ISO 8601 timestamp when the event occurred

Example:

"2021-01-01T00:00:00Z"

type
string
default:customer.updated

Event type for customer.updated

Example:

"customer.updated"

object
string
default:event

Object type, always "event"

Example:

"event"

Response

200

Webhook received successfully