CustomersRequests

Contains request body models for customer API operations.

Types

Link copied to clipboard
data class CreateCustomerRequest(val billingAddress: FrameObjects.BillingAddress?, val shippingAddress: FrameObjects.BillingAddress?, val name: String?, val phone: String?, val email: String?, val description: String?, val metadata: Map<String, String>?)

Request body for creating a new customer.

Link copied to clipboard
data class SearchCustomersRequest(val q: String? = null, val email: String? = null, val createdAfter: Int? = null, val page: Int? = null, val perPage: Int? = null)

Parameters for searching customers.

Link copied to clipboard
data class UpdateCustomerRequest(val billingAddress: FrameObjects.BillingAddress?, val shippingAddress: FrameObjects.BillingAddress?, val name: String?, val phone: String?, val email: String?, val description: String?, val metadata: Map<String, String>?)

Request body for updating an existing customer.