{
  "info": {
    "_postman_id": "supply-order-additional-costs",
    "name": "Supply Order Additional Costs API",
    "description": "API Collection for managing additional costs on supply orders",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "List Additional Costs",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{{{access_token}}}}"
          }
        ],
        "url": {
          "raw": "{{BASE_URL}}/supply-orders/{{orderId}}/additional-costs",
          "host": [
            "{{BASE_URL}}"
          ],
          "path": [
            "supply-orders",
            "{{orderId}}",
            "additional-costs"
          ]
        },
        "description": "Get all additional costs for a specific supply order"
      },
      "response": []
    },
    {
      "name": "Add Additional Cost",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{{{access_token}}}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"cost_type\": \"shipping\",\n  \"cost_name\": \"Shipping Cost\",\n  \"cost_amount\": 500.00,\n  \"is_visible_to_client\": true,\n  \"notes\": \"Express shipping\"\n}"
        },
        "url": {
          "raw": "{{BASE_URL}}/supply-orders/{{orderId}}/additional-costs",
          "host": [
            "{{BASE_URL}}"
          ],
          "path": [
            "supply-orders",
            "{{orderId}}",
            "additional-costs"
          ]
        },
        "description": "Add a new additional cost to a supply order"
      },
      "response": []
    },
    {
      "name": "Update Additional Cost",
      "request": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{{{access_token}}}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"cost_type\": \"tax\",\n  \"cost_name\": \"Sales Tax\",\n  \"cost_amount\": 250.00,\n  \"is_visible_to_client\": true,\n  \"notes\": \"VAT included\"\n}"
        },
        "url": {
          "raw": "{{BASE_URL}}/supply-orders/{{orderId}}/additional-costs/{{costId}}",
          "host": [
            "{{BASE_URL}}"
          ],
          "path": [
            "supply-orders",
            "{{orderId}}",
            "additional-costs",
            "{{costId}}"
          ]
        },
        "description": "Update an existing additional cost"
      },
      "response": []
    },
    {
      "name": "Delete Additional Cost",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "Bearer {{{{access_token}}}}"
          }
        ],
        "url": {
          "raw": "{{BASE_URL}}/supply-orders/{{orderId}}/additional-costs/{{costId}}",
          "host": [
            "{{BASE_URL}}"
          ],
          "path": [
            "supply-orders",
            "{{orderId}}",
            "additional-costs",
            "{{costId}}"
          ]
        },
        "description": "Delete an additional cost from a supply order"
      },
      "response": []
    }
  ],
  "variable": [
    {
      "key": "BASE_URL",
      "value": "http://localhost:8000/api/v1",
      "type": "string"
    },
    {
      "key": "{{access_token}}",
      "value": "your_bearer_{{access_token}}_here",
      "type": "string"
    },
    {
      "key": "orderId",
      "value": "1",
      "type": "string"
    },
    {
      "key": "costId",
      "value": "1",
      "type": "string"
    }
  ]
}
