curl --request POST \
--url https://api.komerza.com/stores/{storeId}/orders \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"productName": "<string>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variantName": "<string>",
"amount": 123,
"lineTotal": 123,
"additionalFeePercentage": 123,
"additionalFeeAmount": 123,
"quantity": 123
}
],
"currencyCode": "<string>",
"gateway": "<string>",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"countryCode": "<string>",
"emailAddress": "<string>",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"gatewayMetadata": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"transactionId": "<string>",
"clientSecret": "<string>",
"note": "<string>",
"cryptocurrencyAddress": "<string>",
"cryptocurrencyAmount": 123,
"cryptocurrencyExpiration": "2023-11-07T05:31:56Z"
},
"status": "<string>",
"amountPaid": 123,
"amount": 123,
"deliveredItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"source": "<string>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"textContent": "<string>",
"file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"friendlyName": "<string>"
}
}
],
"chargeback": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"status": "<string>",
"reason": "<string>"
},
"coupon": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"netDecrease": 123,
"code": "<string>",
"couponId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percentageDecrease": 123
},
"affiliateDiscount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"netDecrease": 123,
"percentageDecrease": 123
},
"customFieldAnswers": {}
}
}Creates a new order for a customer in the admin dashboard.
Requires the stores.orders.create permission.
curl --request POST \
--url https://api.komerza.com/stores/{storeId}/orders \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"code": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"productName": "<string>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variantName": "<string>",
"amount": 123,
"lineTotal": 123,
"additionalFeePercentage": 123,
"additionalFeeAmount": 123,
"quantity": 123
}
],
"currencyCode": "<string>",
"gateway": "<string>",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"countryCode": "<string>",
"emailAddress": "<string>",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"gatewayMetadata": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"transactionId": "<string>",
"clientSecret": "<string>",
"note": "<string>",
"cryptocurrencyAddress": "<string>",
"cryptocurrencyAmount": 123,
"cryptocurrencyExpiration": "2023-11-07T05:31:56Z"
},
"status": "<string>",
"amountPaid": 123,
"amount": 123,
"deliveredItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"source": "<string>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"textContent": "<string>",
"file": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"friendlyName": "<string>"
}
}
],
"chargeback": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"status": "<string>",
"reason": "<string>"
},
"coupon": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"netDecrease": 123,
"code": "<string>",
"couponId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percentageDecrease": 123
},
"affiliateDiscount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dateCreated": "2023-11-07T05:31:56Z",
"netDecrease": 123,
"percentageDecrease": 123
},
"customFieldAnswers": {}
}
}Your API key goes here
The ID of the store the order will be created in.
The 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
An order made by a customer to a merchant for a product they are selling
Show child attributes
The unique identifier of the entity
The date the entity was created
The product that was purchased
Show child attributes
The unique identifier of the entity
The date the entity was created
The name of the product
The ID of the product
The ID of the variant they purchased
The name of the variant they purchased
The unit cost, how much one unit of the product costs
The total cost for the line item (Amount * Quantity)
An additional fee percentage applied to the line item, if any.
The total amount of any additional fees applied to the line item.
The amount of product that was purchased
The fiat currency code used for the order, defaults to USD
The gateway used to facilitate the purchase
The customer details on the order
Show child attributes
The unique identifier of the entity
The date the entity was created
The country code of the customer
The email address of the customer
The ID of the customer profile in the database
The gateway-specific metadata for the order
Show child attributes
The unique identifier of the entity
The date the entity was created
The transaction ID associated with the gateway
The client secret used by card gateways to facilitate payments down to the browser
The note for PayPal Friends and Family or Cash App payments
The address for a cryptocurrency payment
The amount of cryptocurrency converted at the time for a cryptocurrency payment
The date the cryptocurrency payment expires
The current payment status
The amount that the customer has paid for the invoice
The cost of the order
The list of delivered items
Show child attributes
The unique identifier of the entity
The date the entity was created
The unique identifier for the order associated with the delivered item.
The unique identifier for the store associated with the delivered item.
The type that categorizes the delivered item.
128The source of the delivered item, indicates its origin or context.
128The identifier of the related product, if applicable.
The optional identifier for the variant of the delivered item, if applicable.
The text content associated with the delivered item. Used for LicenseKey, Plaintext, or Dynamic types.
10000Represents a publicly accessible file with additional metadata.
Show child attributes
The unique identifier of the entity
The date the entity was created
The friendly name representing the stored file.
1 - 128Represents a cardholder chargeback/dispute on an order
Show child attributes
The unique identifier of the entity
The date the entity was created
Represents the current state of the dispute.
Represents the reason associated with a dispute.
Represents the usage data of a coupon within an order
Show child attributes
The unique identifier of the entity
The date the entity was created
The net amount the coupon decreased the order by
The code of the coupon
The ID of the coupon
The percentage the coupon cut off the order, this is null if the coupon was a fixed amount instead which the net decrease is below
Represents the usage data of a coupon within an order
Show child attributes
The unique identifier of the entity
The date the entity was created
The net amount the coupon decreased the order by
The percentage the coupon cut off the order, this is null if the coupon was a fixed amount instead which the net decrease is below
Was this page helpful?