# My Orders The My Orders API creates and provides access to [Orders](/api/projects/orders.md) scoped to a specific [Customer](/api/projects/customers.md). The endpoints require an access token from the [password flow](/api/authorization.md#password-flow) or [anonymous session flow](/api/authorization.md#tokens-for-anonymous-sessions). The My Orders API intentionally provides no write access on an [Order](/urn?urn=ctp%3Aapi%3Atype%3AOrder). This provides extra security in scenarios when a mobile or browser application communicates directly with API on behalf of a customer. For example, the mobile application cannot set the order number. If you need to modify a protected field available on the full [Order](/urn?urn=ctp%3Aapi%3Atype%3AOrder) resource, do it from a trusted, server-side application. Use an [API Extension](/api/projects/api-extensions.md) to make the modification during the API call. Orders cannot be changed via this API once created, and `paymentState` and `orderNumber` cannot be set. ## Representations Find below the representations for the request payloads that are specific for My Orders, the response representations are equal to the ones for the general Orders documented [there](/api/projects/orders.md#representations). #### MyOrderFromCartDraft [type definition](/api/projects/me-orders.md?urn=ctp:api:type:MyOrderFromCartDraft). #### MyOrderFromQuoteDraft [type definition](/api/projects/me-orders.md?urn=ctp:api:type:MyOrderFromQuoteDraft). ## Get My Order [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/me/orders/\{id}:GET). ## Get My Order in Store [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/in-store/key=\{storeKey}/me/orders/\{id}:GET). ## Query My Orders [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/me/orders:GET). ## Query My Orders in Store [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/in-store/key=\{storeKey}/me/orders:GET). ## Check if My Order exists ### Check if My Order exists by ID [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/me/orders/\{id}:HEAD). ### Check if My Order exists by Query Predicate [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/me/orders:HEAD). ## Check if My Order exists in Store ### Check if My Order exists in Store by ID [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/in-store/key=\{storeKey}/me/orders/\{id}:HEAD). ### Check if My Order exists in Store by Query Predicate [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/in-store/key=\{storeKey}/me/orders:HEAD). ## Create My Order ### Create My Order from My Cart [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/me/orders:POST). ### Create My Order from My Quote [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/me/orders/quotes:POST). ## Create My Order in Store from My Cart [endpoint definition](/api/projects/me-orders.md?urn=ctp:api:endpoint:/\{projectKey}/in-store/key=\{storeKey}/me/orders:POST). ## Related pages - [Area overview page with navigation](/api.md) - [Previous page: My Carts](/api/projects/me-carts.md) - [Next page: My Payments](/api/projects/me-payments.md)