---
title: Fulfill Order
description: Paket oluşturma, kargoya hazır ve fulfill etme
---

İstek yöntemi: POST

Uç nokta: `{{API URL}}`

GraphQL Mutasyonu:

```graphql
mutation FulfillOrder($input: PublicFulFillOrderInput!) {
  fulfillOrder(input: $input) {
    id
    orderNumber
    orderPackageStatus
    updatedAt
  }
}
```

### cURL

```bash
curl -X POST 'https://api.myikas.dev/api/v2/admin/graphql' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  --data-raw '{
    "query": "mutation FulfillOrder($input: PublicFulFillOrderInput!) { fulfillOrder(input: $input) { id orderNumber orderPackageStatus updatedAt } }",
    "variables": { "input": { "orderId": "ORDER_ID", "markAsReadyForShipment": true, "lines": null, "sendNotificationToCustomer": true, "sourcePackageId": null, "trackingInfoDetail": { "barcode": "7165237", "cargoCompany": "MNG Kargo", "cargoCompanyId": "MNG_KARGO", "isSendNotification": true, "trackingLink": null, "trackingNumber": null } } }
  }'
```

Örnek Değişkenler:

```json
{
  "input": {
    "orderId": "52660e20-caa6-46dd-8466-426b304de369",
    "markAsReadyForShipment": true,
    "lines": null,
    "sendNotificationToCustomer": true,
    "sourcePackageId": null,
    "trackingInfoDetail": {
      "barcode": "7165237",
      "cargoCompany": "MNG Kargo",
      "cargoCompanyId": "MNG_KARGO",
      "isSendNotification": true,
      "trackingLink": null,
      "trackingNumber": null
    }
  }
}
```


