---
schema_version: "1"
id: 47bc390f5fe2eca62816c4eae51f96a78fec932972186468c49868841782d300
title: Place an Order on Behalf of a User in a B2B Store
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/salesforce-commerce/guides/d2c-commerce/b2b-comm-orders-for-guests-admin.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-comm-orders-for-guests-admin.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2bd58030c88c75f69951090f5152c8ec772b8699bbfcd43ded0f5ba6a3c41ec4
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Place an Order on Behalf of a User in a B2B Store

Store admins can place an order for a B2B Commerce store checkout on behalf of a user. This enhancement is specifically to complete checkouts that the user has already initiated. This enhancement allows store admins to complete checkouts where the payment is successful but the initial place order call failed.

For example, when a user's payment is successful but the initial order creation fails, the store admin can re-trigger the order placement using the same payment reference, ensuring all successful payments result in a corresponding order.

**Resource**

`/commerce/webstores/{webstoreId}/checkouts/{checkoutId}/orders`

Make a POST request to the [Commerce Webstore Checkout Orders](https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_commerce_webstore_checkouts_place_order.htm) resource for the order placement.

**Request Parameters**

| Parameter Name     | Type   | Description                                                                               | Required or Optional |
| ------------------ | ------ | ----------------------------------------------------------------------------------------- | -------------------- |
| webstoreId         | String | Specify the webstore ID.                                                                  | Required             |
| checkoutId         | String | Specify the checkout ID. The value `active` isn’t supported for this field.               | Required             |
| effectiveAccountId | String | Specify the ID of the buyer account or guest buyer profile for which the request is made. | Required             |

**Considerations for Admin Order Placements**

- Only store admins can perform this operation.
- Existing validations, business logic, and permissions remain enforced.
- Orders created through this operation retain the user's ownership details.
- Best practice:
  - Perform thorough validation and testing in a sandbox environment, ensuring all related customizations and automations work as expected.
  - Use this operation only under controlled administrative conditions to specifically recover orders where a payment succeeded but the original order creation failed..
