curl --request POST \
--url https://api.komerza.com/stores/{storeId}/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"emailAddress": "[email protected]"
}
'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"emailAddress": "<string>",
"ipAddress": "<string>",
"storeData": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"balance": 123,
"externalIntegrations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"accountId": "<string>",
"platformId": "<string>",
"expirationDate": "2023-11-07T05:31:56Z"
}
],
"tickets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"subject": "<string>",
"status": 0,
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"name": "<string>",
"message": "<string>",
"ticketId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
],
"subscriptions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"startDate": "2023-11-07T05:31:56Z",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer": "<unknown>",
"ipAddress": "<string>",
"affiliate": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isEnabled": true,
"link": "<string>",
"balance": 123,
"returnPercentage": 123,
"percentageOff": 123
},
"stripeCustomerId": "<string>"
}
]
}
}Registers a customer for the store using their email.
If the customer already exists and is linked to the store, a 409 conflict is returned.
Requires the stores.customers.create permission.
curl --request POST \
--url https://api.komerza.com/stores/{storeId}/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"emailAddress": "[email protected]"
}
'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"emailAddress": "<string>",
"ipAddress": "<string>",
"storeData": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"balance": 123,
"externalIntegrations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"accountId": "<string>",
"platformId": "<string>",
"expirationDate": "2023-11-07T05:31:56Z"
}
],
"tickets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"subject": "<string>",
"status": 0,
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entries": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"name": "<string>",
"message": "<string>",
"ticketId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
],
"subscriptions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"startDate": "2023-11-07T05:31:56Z",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer": "<unknown>",
"ipAddress": "<string>",
"affiliate": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isEnabled": true,
"link": "<string>",
"balance": 123,
"returnPercentage": 123,
"percentageOff": 123
},
"stripeCustomerId": "<string>"
}
]
}
}Your API key goes here
ID of the store.
Customer email payload.
Represents a form for creating customer data, inheriting email validation functionality.
Represents the email address associated with the form.
1 - 256The object was successfully created.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents a customer registered at Komerza globally
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
Represents the email address of the customer
3 - 256Represents the IP address associated with the customer.
45The list of store-scoped data for the customer
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
The customer balance, this can be used to buy items on the store with
The list of external integrations linked to this customer
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
The users account identifier, used to identify the account on the platform
256The ID of the platform which the integration is for
64The date the access token expires
The list of tickets created by the customer
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
Gets or sets the subject or title of the ticket, summarizing the issue or request.
1 - 128The different states of the ticket
0, 1, 2, 3, 4 The customer who opened the ticket
The user who owns the store the ticket was made in
1 - 36The store which the ticket is for
Gets or sets the list of entries or messages associated with the ticket. These entries represent the conversation or updates related to the ticket.
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
The name of the user that posted the entry
1 - 50The message the user has posted to the ticket
1 - 2048The ID of the ticket
The list of subscriptions the customer has
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
The date the subscription ends
The date the subscription starts
The ID of the customer the subscription belongs to
The ID of the store the subscription belongs to
The ID of the product the subscription is for
The ID the customer data is associated with
The ID of the customer the data belongs to
Represents the IP address the customer created the store data with.
45Represents an affiliate associated with a store.
Show child attributes
The unique identifier of the entity
The date the entity was created in the database
Unique identifier for the store associated with the affiliate
Unique identifier for the customer associated with the affiliate
Indicates whether the store is affiliated with a user
A link provided to affiliates for tracking and promotional purposes.
1 - 256Represents the balance of the affiliate, typically indicating the amount earned through affiliations.
The percentage of the return that an affiliate receives
The percentage discount offered by the store affiliate
The ID of the Stripe customer for the customer
64Was this page helpful?