1. Orders
OrderMesh STG
  • Introduction to our API
    • Getting Started
    • Product Catalog
    • Webhooks Overview
    • Merchant Notifications Guide
  • User
    • Client
      • Generate Service Client Access Token
    • User
      • Login User by Username and Password
      • Login User with Refresh Token
    • Schemas
      • AssignUserRoleDto
      • BulkResponse
      • BulkResponseItem
      • ClientTokenResponseDTO
      • ConflictErrorResponse
      • CreateInvitationDto
      • CreateInvitationDtoBulkModel
      • CreateInvitationResponse
      • CreateRoleDTO
      • CreateServiceClientDto
      • CreateServiceClientResponseDTO
      • CreateUserDto
      • CreateVendorInvitationDto
      • CreateVendorInvitationDtoBulkModel
      • CreateVendorInvitationResponse
      • DeleteInvitationResponse
      • DeleteVendorInvitationResponse
      • Error
      • ExternalErrorResponse
      • ForbiddenErrorResponse
      • ForgotPasswordDTO
      • FutureAssociationsDTO
      • GetInvitationResponse
      • GetInvitationsByMerchantIdResponse
      • GetInvitationsByMerchantIdResponseDto
      • GetServiceClientTokenDto
      • GetVendorInvitationResponse
      • GetVendorInvitationsByVendorIdResponse
      • GetVendorInvitationsByVendorIdResponseDto
      • InvitationDeliveryMethodEnum
      • InvitationDeliveryResponse
      • InvitationStatusEnum
      • InvitationsByMerchantIdSortByEnum
      • LoginUserDto
      • LoginUserWithAuthorizationCode
      • LoginUserWithRefreshToken
      • NotFoundErrorResponse
      • OnboardUserDto
      • PasswordPolicyDTO
      • PatchUserDTO
      • PermissionDTO
      • PermissionSet
      • PermissionSetsRequestDTO
      • PermissionSetsResponseDTO
      • ResendInvitationResponse
      • ResendVendorInvitationResponse
      • ResetPasswordDTO
      • ResourceDTO
      • RoleDTO
      • RolePermissionDTO
      • RoleWithPermissionDTO
      • SearchRolesEnum
      • SearchRolesResponseDTO
      • SearchUsersEnum
      • SearchUsersResponseDTO
      • ServiceClientResponseDTO
      • StringBulkModel
      • TokenResponseDTO
      • UnassignUserRoleDTO
      • UnauthorizedErrorResponse
      • UnauthorizedResult
      • UnhandledErrorResponse
      • UpdateAssociationTypeDTO
      • UpdateAttributesDto
      • UpdateRoleDTO
      • UpdateRolePermissionsDTO
      • UserResponseDTO
      • ValidateEmailsResponse
      • ValidationErrorResponse
      • ValidationResponseDTO
  • Order
    • OrderItems
      • Search for order items based on various criteria and filters
    • Orders
      • Create a New Order.
        POST
      • Search for orders based on various criteria and filters.
        GET
      • Create multiple orders
        POST
      • Retrieve multiple orders
        GET
      • Update multiple orders
        PATCH
      • Retrieve a list of orders
        GET
      • Retrieve an order by Order ID.
        GET
      • Update order data.
        PATCH
      • Retrieve an order by Safe ID
        GET
      • Retrieve order item by Order Item ID
        GET
      • Update an item within an order.
        PATCH
      • Cancel Order or order items
        POST
      • Change the order status to Customer Care Hold
        POST
      • Retrieve audit logs for a specific order.
        GET
      • Retrieve audit logs for a specific order.
        GET
      • Retrieve audit logs for a specific order item.
        GET
      • Add a Refund Request.
        POST
    • Schemas
      • APIClientInfoModel
      • AddRefundItemModel
      • AddRefundModel
      • AddressModel
      • AttributeModel
      • BaseAddressModel
      • BillingInfoModel
      • BulkResponse
      • BulkResponseItem
      • CancelOrderItemModel
      • CancelOrderModel
      • CancelOrderResponse
      • ConflictErrorResponse
      • CoordinatesModel
      • CreateOrderCustomerPaymentMethodModel
      • CreateOrderCustomerTransactionModel
      • CreateOrderItemImageModel
      • CreateOrderItemModel
      • CreateOrderModel
      • CreateOrderModelBulkModel
      • CreateOrderResponse
      • CustomerCareHoldOrderResponse
      • Error
      • ForbiddenErrorResponse
      • GetAuditLogResponse
      • GetOrderCustomerPaymentMethodModel
      • GetOrderCustomerTransactionModel
      • GetOrderItemImageModel
      • GetOrderItemModel
      • GetOrderItemRefundDataItemModel
      • GetOrderItemRefundDataModel
      • GetOrderItemResponse
      • GetOrderModel
      • GetOrderResponse
      • GetOrdersCountByStatusResponse
      • GetOrdersPollingStoppedCountResponse
      • ListOrderModel
      • ListOrdersResponse
      • NotFoundErrorResponse
      • OptionModel
      • OrderItemStatus
      • OrderStatus
      • OrdersCountByStatus
      • PriceModel
      • RefreshProcessingModel
      • RefreshProcessingResponse
      • ReprintCostCoverageModel
      • ReprintModel
      • ReprintShipmentItemModel
      • ReprintShipmentModel
      • ResourceFormat
      • SearchOrderItemsResponse
      • SearchOrderModel
      • SearchOrdersResponse
      • ShipmentMetadata
      • StartProcessingModel
      • StartProcessingResponse
      • StringAuditEvent
      • UnauthorizedResult
      • UnhandledErrorResponse
      • UpdateOrderItemImageModel
      • UpdateOrderItemModel
      • UpdateOrderItemResponse
      • UpdateOrderModel
      • UpdateOrderModelBulkModel
      • UpdateOrderResponse
      • UpdatePriceModel
      • ValidationErrorResponse
      • VariantAttribute
      • VariantOption
  • Note
    • Notes
      • Create a New Note
      • Search All Notes
      • View Note by ID
      • Update Note
      • Delete Note
      • View Note Audit Logs
    • Schemas
      • CreateNoteModel
      • CreateNoteReponse
      • Error
      • ForbiddenErrorResponse
      • GetAuditLogResponse
      • GetNoteByIdResponse
      • GetNoteResponseItemModel
      • GetNotesResponse
      • NotFoundErrorResponse
      • ResourceFormat
      • ResourceReferenceModel
      • StringAuditEvent
      • UnauthorizedResult
      • UnhandledErrorResponse
      • UpdateNotePayload
      • UpdateNoteResponse
      • UserReferenceModel
      • ValidationErrorResponse
  • Catalog
    • Categories
      • View all product categories
      • Create a new category
      • Update category
      • Delete category
      • Get audit logs of a category
    • MerchantCatalog
      • Create a merchant catalog
      • Update a merchant catalog
      • Partially update a merchant catalog
      • Get a list of merchant catalogs
      • Delete a merchant catalog
      • Get a merchant catalog and search variants in it
      • Get a merchant catalog with variants
      • Get a list of variants the merchant can use in accordance with their enabled catalog
      • Search for variants in enabled merchant catalog with fallback to global catalog
      • Get audit logs of a merchant catalog
    • Products
      • View all products
      • Retrieve product variant details
      • Create a new product
      • Search products
      • Bulk create products
      • Bulk update products
      • Update product
      • Delete product
      • Update variant
      • Get audit logs of a product
    • Variants
      • Delete variant
      • Create a variant
      • Search product variants
      • Get audit logs of a variant
    • Schemas
      • BulkResponse
      • BulkResponseItem
      • CategoryModel
      • CreateCategoryModel
      • CreateCategoryResponse
      • CreateMerchantCatalogDto
      • CreateMerchantCatalogResponse
      • CreateProductModel
      • CreateProductModelBulkModel
      • CreateProductResponse
      • CreateVariantModel
      • CreateVariantResult
      • DecorationModel
      • Error
      • ForbiddenErrorResponse
      • GetAuditLogResponse
      • GetCategoriesResponse
      • GetEffectiveProductsResponse
      • GetEffectiveVariantListResponse
      • GetEffectiveVariantsByProductResponse
      • GetProductVariantsResponse
      • GetProductsResponse
      • ListMerchantCatalogsResponse
      • MerchantCatalogDto
      • MerchantVariantAttributeDto
      • MerchantVariantDto
      • MultiPrice
      • MultiPriceModel
      • NotFoundErrorResponse
      • PatchMerchantCatalogDto
      • PatchMerchantCatalogResponse
      • Price
      • PriceModel
      • PrintImageModel
      • PrintImageUploadStatus
      • PrintMethod
      • ProductAttributeModel
      • ProductAttributeValueModel
      • ProductExtraModel
      • ProductModel
      • ProductStatus
      • ResourceFormat
      • SearchEffectiveVariantsDto
      • SearchEffectiveVariantsResponse
      • SearchEffectiveVariantsSeparateDto
      • SearchEffectiveVariantsSeparateResponse
      • SearchMerchantCatalogVariantsResponse
      • SearchMerchantVariantDto
      • SearchProductsResponse
      • SearchVariantsModel
      • StringAuditEvent
      • UnauthorizedResult
      • UnhandledErrorResponse
      • UpdateCategoryModel
      • UpdateMerchantCatalogDto
      • UpdateMerchantCatalogResponse
      • UpdateProductModel
      • UpdateProductModelBulkModel
      • UpdateProductResponse
      • UpdateProductVariantModel
      • UpdateProductVariantResponse
      • ValidationErrorResponse
      • VariantAttributeModel
      • VariantModel
  • Shipment
    • Packing Slip
      • Generates a packing slip for a specific shipment by Shipment ID.
    • Shipments
      • Get details of a specific shipment by Shipment ID.
      • Update details of a specific shipment by Shipment ID.
      • Create packages for a specific shipment.
      • Delete shipment with packages.
      • Get all shipments for an order by Order ID.
      • Create shipment for order, vendor, and order items.
      • Get shipment with packages for order and vendor.
      • Get shipment details by Order Item ID.
      • Update a specific shipment package.
      • Delete a specific shipment package.
      • Cancel shipment.
      • Unassign items to shipment.
      • Shipment resubmission to assigned facility.
      • Retry outbound polling for a shipment by publishing an OutboundShipmentUpdate event.
      • Search shipments.
      • Reroute shipment.
      • Rejects a shipment.
      • Bulk reroute shipments.
      • Get shipment audit logs.
      • Get package audit logs.
      • Get message audit logs for shipment updates.
      • Assign Shipment.
    • Schemas
      • AssignDTO
      • AssignShipmentResponse
      • BulkResponse
      • BulkResponseItem
      • CancelShipmentDto
      • ConflictErrorResponse
      • CountryCodes
      • CreatePackageDTO
      • CreatePackagesResponse
      • CreateShipmentDTO
      • CreateShipmentResponse
      • CurrencyCodes
      • Error
      • ExternalErrorResponse
      • ForbiddenErrorResponse
      • GeneratePackingSlipResponse
      • GetAuditLogResponse
      • GetOrdersCountByFacilityResponse
      • GetShipmentPollingStoppedCountResponse
      • GetShipmentsCountByStatusResponse
      • GetVendorShipmentsCountByStatusResponse
      • LanguageCodes
      • NotFoundErrorResponse
      • OrderCount
      • OrderItem
      • OrderItemDTO
      • OrderItemImage
      • OrderItemImageDTO
      • OrderItemStatus
      • PackageDTO
      • PackageOrderItemDTO
      • PackingSlipDto
      • Price
      • Reject
      • RejectResponse
      • ReprintDTO
      • Reroute
      • RerouteBulkModel
      • RerouteOrderItem
      • RerouteResponse
      • ResourceFormat
      • SearchShipmentModel
      • SearchShipmentResponse
      • SelectedCarrierShippingServiceMethodDTO
      • SelectedShippingMappingDTO
      • SelectedShippingMappingMethodDTO
      • SelectedVendorMappingDTO
      • ShipmentDTO
      • ShipmentStatus
      • ShipmentsCountByStatus
      • ShippingAddressDTO
      • StringAuditEvent
      • UnassignOrderItemDTO
      • UnauthorizedResult
      • UnhandledErrorResponse
      • UpdatePackageDTO
      • UpdateShipmentDTO
      • ValidationErrorResponse
      • VendorOrderItemModel
      • VendorPackageModel
      • VendorReassignShipmentDTO
      • VendorReassignShipmentResponse
      • VendorRejectShipmentDTO
      • VendorSearchShipmentModel
      • VendorSearchShipmentResponse
      • VendorShipmentResponse
      • VendorUpdateShipmentStatusEnumDTO
      • VendorUpdateTrackingDTO
      • VendorUploadItemImageDTO
      • VendorUploadItemImageResponse
  • Schemas
    • Schemas
      • CreateNoteModel
      • APIClientInfoModel
      • CreateNoteReponse
      • AddRefundItemModel
      • AddRefundModel
      • Error
      • AddressModel
      • ForbiddenErrorResponse
      • AttributeModel
      • GetAuditLogResponse
      • GetNoteByIdResponse
      • BaseAddressModel
      • GetNoteResponseItemModel
      • BillingInfoModel
      • GetNotesResponse
      • BulkResponse
      • BulkResponseItem
      • NotFoundErrorResponse
      • CancelOrderItemModel
      • ResourceFormat
      • ResourceReferenceModel
      • CancelOrderModel
      • CancelOrderResponse
      • StringAuditEvent
      • ConflictErrorResponse
      • UnauthorizedResult
      • CoordinatesModel
      • UnhandledErrorResponse
      • UpdateNotePayload
      • CreateOrderCustomerPaymentMethodModel
      • UpdateNoteResponse
      • CreateOrderCustomerTransactionModel
      • UserReferenceModel
      • CreateOrderItemImageModel
      • CreateOrderItemModel
      • ValidationErrorResponse
      • CreateOrderModel
      • CreateOrderModelBulkModel
      • CreateOrderResponse
      • CustomerCareHoldOrderResponse
      • GetOrderCustomerPaymentMethodModel
      • GetOrderCustomerTransactionModel
      • GetOrderItemImageModel
      • GetOrderItemModel
      • GetOrderItemRefundDataItemModel
      • GetOrderItemRefundDataModel
      • GetOrderItemResponse
      • GetOrderModel
      • GetOrderResponse
      • GetOrdersCountByStatusResponse
      • GetOrdersPollingStoppedCountResponse
      • ListOrderModel
      • ListOrdersResponse
      • OptionModel
      • OrderItemStatus
      • OrderStatus
      • OrdersCountByStatus
      • PriceModel
      • RefreshProcessingModel
      • RefreshProcessingResponse
      • ReprintCostCoverageModel
      • ReprintModel
      • ReprintShipmentItemModel
      • ReprintShipmentModel
      • SearchOrderItemsResponse
      • SearchOrderModel
      • SearchOrdersResponse
      • ShipmentMetadata
      • StartProcessingModel
      • StartProcessingResponse
      • UpdateOrderItemImageModel
      • UpdateOrderItemModel
      • UpdateOrderItemResponse
      • UpdateOrderModel
      • UpdateOrderModelBulkModel
      • UpdateOrderResponse
      • UpdatePriceModel
      • VariantAttribute
      • VariantOption
  1. Orders

Create a New Order.

POST
/v1/orders
This endpoint allows you to create new orders in the system.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Body Params
application/json

Examples

Responses

🟢201
application/json
Created
Body

🟠400
🟠401
🟠403
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.stg.ordermesh.io/order/v1/orders' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "safeId": "UniqueSafeID12345",
    "merchantId": "b234ee56-7890-4f12-a123-4567890abcde",
    "shippingAddress": {
        "firstName": "John",
        "lastName": "Doe",
        "line1": "123 Main St",
        "line2": "Apt 4B",
        "line3": null,
        "city": "Anytown",
        "state": "CA",
        "zip": "90210",
        "countryCode": "US",
        "phone": "555-1234",
        "email": "john.doe@example.com"
    },
    "billingAddress": {
        "firstName": "Jane",
        "lastName": "Smith",
        "line1": "456 Oak St",
        "line2": "",
        "line3": null,
        "city": "Othertown",
        "state": "NY",
        "zip": "10001",
        "countryCode": "US",
        "phone": "555-5678",
        "email": "jane.smith@example.com"
    },
    "returnAddress": {
        "firstName": "James",
        "lastName": "Brown",
        "line1": "789 Elm St",
        "line2": "Suite 101",
        "line3": null,
        "city": "New City",
        "state": "TX",
        "zip": "73301",
        "countryCode": "US",
        "phone": "555-9876",
        "email": "james.brown@example.com"
    },
    "externalId": "ORDER123456",
    "languageCode": "EN",
    "isTest": true,
    "isSample": true,
    "client": {
        "source": "Webstore",
        "details": "Chrome browser on Windows",
        "version": "1.0",
        "ip": "192.168.1.1"
    },
    "meta": {
        "customerNote": "Please deliver between 9 AM and 5 PM.",
        "giftWrap": "true",
        "promoCode": "SUMMER2024"
    },
    "currencyCode": "USD",
    "customerShippingMethod": "Expedited",
    "customerTotal": 200.5,
    "customerItemTotal": null,
    "customerTotalShipping": 15,
    "customerTotalTaxes": 10,
    "customerTotalDiscountAndPromotions": 5.5,
    "customerPaymentMethods": [
        {
            "method": "CreditCard",
            "subMethod": "Visa",
            "cardFirst4": "4111",
            "cardLast4": "1111",
            "billingInfo": {
                "fullName": "John Doe",
                "address": {
                    "location": {
                        "longitude": -118.243683,
                        "latitude": 34.052235
                    },
                    "firstName": "John",
                    "lastName": "Doe",
                    "line1": "123 Main St",
                    "line2": "Apt 4B",
                    "line3": null,
                    "city": "Anytown",
                    "state": "CA",
                    "zip": "90210",
                    "countryCode": "US",
                    "phone": "555-1234",
                    "email": "john.doe@example.com"
                }
            },
            "customerTransactions": [
                {
                    "total": 200.5,
                    "currencyCode": "USD",
                    "transactionDate": "2024-07-16",
                    "transactionId": "TX12345678",
                    "authorizationCode": "AUTH7890"
                }
            ]
        }
    ],
    "items": [
        {
            "sku": "Accent_Mug-11oz-Blue",
            "quantity": 2,
            "images": [
                {
                    "url": "https://example.com/mug-front.jpg",
                    "thumbnailUrl": "https://example.com/mug-thumbnail.jpg",
                    "area": "Default",
                    "printMethod": null,
                    "ourPrintFileId": null,
                    "ourPrintFileUrl": null
                }
            ],
            "options": [
                {
                    "name": "Size",
                    "value": "11 oz"
                }
            ],
            "customerSubtotal": 20,
            "customerPrice": 10,
            "customerShippingPrice": 5,
            "customerTaxes": 3,
            "customerDiscountsOrPromotions": 1.5,
            "clientAttributes": {
                "occasion": "Birthday gift",
                "urgency": "high"
            },
            "meta": {
                "designId": "D123456"
            },
            "isSample": true,
            "externalId": "PROD7890123",
            "skipImgManip": false,
            "skipSkuValidation": false,
            "skipImageValidation": false,
            "fulfillmentReady": false
        },
        {
            "sku": "bella-3001cvc-solid_red_blend-s",
            "quantity": 2,
            "images": [
                {
                    "url": "https://example.com/t-shirt-front.jpg",
                    "thumbnailUrl": "https://example.com/t-shirt-front-thumbnail.jpg",
                    "area": "Front",
                    "printMethod": "DirectToGarment",
                    "ourPrintFileId": null,
                    "ourPrintFileUrl": null
                },
                {
                    "url": "https://example.com/t-shirt-back.jpg",
                    "thumbnailUrl": "https://example.com/t-shirt-back-thumbnail.jpg",
                    "area": "Back",
                    "printMethod": "DirectToGarment",
                    "ourPrintFileId": null,
                    "ourPrintFileUrl": null
                },
                {
                    "url": "https://example.com/t-shirt-label.jpg",
                    "thumbnailUrl": "https://example.com/t-shirt-label-thumbnail.jpg",
                    "area": "Neck Label",
                    "printMethod": "HeatPressNecktags",
                    "ourPrintFileId": null,
                    "ourPrintFileUrl": null
                }
            ],
            "options": [
                {
                    "name": "Size",
                    "value": "Small"
                },
                {
                    "name": "Color",
                    "value": "Red"
                }
            ],
            "customerSubtotal": 40,
            "customerPrice": 20,
            "customerShippingPrice": 5,
            "customerTaxes": 3,
            "customerDiscountsOrPromotions": 1.5,
            "clientAttributes": {
                "occasion": "Birthday gift",
                "urgency": "high"
            },
            "meta": {
                "designId": "D78910"
            },
            "isSample": true,
            "externalId": "PROD0090127",
            "skipImgManip": false,
            "skipSkuValidation": false,
            "skipImageValidation": false,
            "fulfillmentReady": false
        },
        {
            "sku": "Envelope_A6_Pointed_Blank",
            "quantity": 10,
            "images": [],
            "options": [
                {
                    "name": "type",
                    "value": "Pointed"
                }
            ],
            "customerSubtotal": 15.21,
            "customerPrice": 15.21,
            "customerShippingPrice": 10.49,
            "customerTaxes": 0,
            "customerDiscountsOrPromotions": 0,
            "clientAttributes": {
                "occasion": "OrderMesh Test"
            },
            "meta": {
                "designId": "D123456",
                "artist": "ArtistName"
            },
            "isSample": false,
            "externalId": "worfl90123",
            "skipImgManip": null,
            "skipSkuValidation": null,
            "skipImageValidation": null,
            "fulfillmentReady": true
        }
    ],
    "allowExternalOrderIdDuplication": false,
    "reprint": null,
    "automaticProcessing": true
}'
Response Response Example
201 - Success
{
    "orderId": "65af821050280f170333e831"
}
Modified at 2026-05-27 12:49:14
Previous
Search for order items based on various criteria and filters
Next
Search for orders based on various criteria and filters.
Built with