Ostorya dev docs

Admin API/Shipping and fulfillment/Mutations

fulfillmentCreate

mutation

Ships a confirmed order with one parcel: committed stock leaves the warehouse, the order becomes Shipped.

Returns FulfillmentCreatePayload!

mutation FulfillmentCreate($orderId: ID!) {
  fulfillmentCreate(orderId: $orderId) {
    fulfillment {
      id
      status
      deliveredAt
      displayStatus
      returnedAt
      shippedAt
    }
    userErrors {
      code
      message
      field
    }
  }
}

# Variables
{
  "orderId": "gid://ostorya/Order/0f8c5b1e-…"
}

Arguments

carrierAccountIdID
deliveryFeeDecimal
orderIdID!required
trackingNumberString

Payload

fulfillmentFulfillment
userErrors[UserError!]!required