Skip to content
13 changes: 9 additions & 4 deletions src/pages/graphql/schema/b2b/company/queries/company.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ query{
firstname
lastname
email
id
}
... on CompanyTeam {
name
Expand Down Expand Up @@ -143,7 +144,8 @@ query{
"__typename": "Customer",
"firstname": "Taina",
"lastname": "Garofalo",
"email": "[email protected]"
"email": "[email protected]",
"id": "Ng=="
}
},
{
Expand All @@ -159,7 +161,8 @@ query{
"__typename": "Customer",
"firstname": "B",
"lastname": "BB",
"email": "[email protected]"
"email": "[email protected]",
"id": "Nw=="
}
},
{
Expand All @@ -175,7 +178,8 @@ query{
"__typename": "Customer",
"firstname": "A",
"lastname": "AA",
"email": "[email protected]"
"email": "[email protected]",
"id": "NQ=="
}
},
{
Expand All @@ -191,7 +195,8 @@ query{
"__typename": "Customer",
"firstname": "C",
"lastname": "CC",
"email": "[email protected]"
"email": "[email protected]",
"id": "NQ=="
}
}
]
Expand Down
9 changes: 3 additions & 6 deletions src/pages/graphql/schema/cart/mutations/place-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Perform the following actions before using the `placeOrder` mutation:
- Set the payment method
- For guest customers, assign an email to the cart

As of Commerce 2.4.9, the `PlaceOrderOutput` object contains the errors available on the top of the response node. This assures easy error control and provides compatibility with older versions.

As of Commerce 2.4.7, the `PlaceOrderOutput` object can contain `orderV2`, which provides full details about the order. When the mutation runs, Commerce generates and returns a token in the `orderV2.token` field. You can supply the token value to the [`guestOrderByToken` query](../../orders/queries/guest-order-by-token.md) to retrieve details about an order created by a guest shopper.

<InlineAlert variant="info" slots="text" />
Expand Down Expand Up @@ -53,10 +55,6 @@ mutation {
number
token
}
errors {
message
code
}
}
}
```
Expand All @@ -70,8 +68,7 @@ mutation {
"orderV2": {
"number": "000000006",
"token": "0:3:OSScWU6PKLn3kFyMhNWyskG0opgVvFBnJmtuaFHKGwDFT83S6Kv9U39iYwixuU+vhwDz2AF4pCs3GtLhHbQ="
},
"errors": []
}
}
}
}
Expand Down