pub struct Customer {
pub id: CustomerID,
pub name: Option<String>,
pub email: String,
pub marketing_consent: bool,
pub status: Status,
pub custom_data: Option<Value>,
pub locale: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub import_meta: Option<ImportMeta>,
}Expand description
Represents a customer entity.
Fields§
§id: CustomerIDUnique Paddle ID for this customer entity, prefixed with ctm_.
name: Option<String>Full name of this customer. Required when creating transactions where collection_mode is manual (invoices).
email: StringEmail address for this entity.
marketing_consent: boolWhether this customer opted into marketing from you. false unless customers check the marketing consent box
when using Paddle Checkout. Set automatically by Paddle.
status: StatusWhether this entity can be used in Paddle.
custom_data: Option<Value>Your own structured key-value data.
locale: StringValid IETF BCP 47 short form locale tag. If omitted, defaults to en.
created_at: DateTime<Utc>RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
import_meta: Option<ImportMeta>Import information for this entity. null if this entity is not imported.