[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [astro](../README) / PlaceOrderResult

# Type Alias: PlaceOrderResult

> **PlaceOrderResult** = \{ `data`: [`CreatedOrder`](../../index/interfaces/CreatedOrder); `success`: `true`; \} \| \{ `error`: `string`; `errorKind`: `"shape"`; `success`: `false`; \} \| \{ `couponRefusal`: [`CouponRefusal`](../../index/interfaces/CouponRefusal) \| `null`; `domainError`: [`DomainError`](../../index/interfaces/DomainError); `error`: `string`; `errorKind`: `"upstream"`; `success`: `false`; \}

## Union Members

### Type Literal

\{ `data`: [`CreatedOrder`](../../index/interfaces/CreatedOrder); `success`: `true`; \}

***

### Type Literal

\{ `error`: `string`; `errorKind`: `"shape"`; `success`: `false`; \}

***

### Type Literal

\{ `couponRefusal`: [`CouponRefusal`](../../index/interfaces/CouponRefusal) \| `null`; `domainError`: [`DomainError`](../../index/interfaces/DomainError); `error`: `string`; `errorKind`: `"upstream"`; `success`: `false`; \}

#### couponRefusal

> **couponRefusal**: [`CouponRefusal`](../../index/interfaces/CouponRefusal) \| `null`

Set when the order was refused for its code: the form shows it on the code's field.

#### domainError

> **domainError**: [`DomainError`](../../index/interfaces/DomainError)

#### error

> **error**: `string`

#### errorKind

> **errorKind**: `"upstream"`

#### success

> **success**: `false`
