# Packages

## GET /i2/packages/

> PKG101: Get Packages

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}},"page":{"name":"page","in":"query","required":false,"description":"Specifies the page number of the current dataset.","schema":{"type":"integer","minimum":1,"default":1}},"limit":{"name":"limit","in":"query","required":false,"description":"Specifies the row count of the current page.","schema":{"type":"integer","minimum":1,"default":10}},"updated_at":{"name":"updated_at","description":"Filters data where the \"updated_at\" field is exactly equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__gt":{"name":"updated_at__gt","description":"Filters data where the \"updated_at\" field is greater than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__gte":{"name":"updated_at__gte","description":"Filters data where the \"updated_at\" field is greater than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__lt":{"name":"updated_at__lt","description":"Filters data where the \"updated_at\" field is less than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__lte":{"name":"updated_at__lte","description":"Filters data where the \"updated_at\" field is less than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at":{"name":"created_at","description":"Filters data where the \"created_at\" field is exactly equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__gt":{"name":"created_at__gt","description":"Filters data where the \"created_at\" field is greater than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__gte":{"name":"created_at__gte","description":"Filters data where the \"created_at\" field is greater than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__lt":{"name":"created_at__lt","description":"Filters data where the \"created_at\" field is less than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__lte":{"name":"created_at__lte","description":"Filters data where the \"created_at\" field is less than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}},"schemas":{"_Pagination":{"type":"object","properties":{"count":{"type":"integer","description":"Indicates the number of objects that match the criteria specified in the request."},"next":{"type":"string","format":"uri","description":"Indicates the next page URL that points to the location of the next set of results."},"previous":{"type":"string","format":"uri","description":"Indicates the previous page URL that points to the location of the next set of results."}}},"_Package":{"properties":{"number":{"type":"string","description":"Unique identifier for the package."},"order_number":{"type":"string","description":"Unique identifier for the associated order."},"status":{"type":"integer","enum":[1,2,3,4,5,6],"description":"Status of the package:\n- `1 - Cancelled`: The package has been cancelled.\n- `2 - Preparing`: The package is being prepared for shipment.\n- `3 - Ready to Ship`: The package is ready to be shipped.\n- `4 - Shipped`: The package has been shipped.\n- `5 - Delivered`: The package has been successfully delivered.\n- `6 - Delivery Failed`: The delivery of the package has failed.\n"},"shipping_address":{"type":"object","$ref":"#/components/schemas/Address","description":"Shipping address associated with the package."},"billing_address":{"type":"object","$ref":"#/components/schemas/Address","description":"Billing address associated with the package."},"currency":{"type":"string","enum":["TRY","USD","EUR","EGP","GBP","MAD","PLN","SAR","RON","UAH","CZK","HUF","RUB","BGN","IQD","KWD","BHD","OMR","QAR","AED","NGN"],"description":"Currency code for the associated order."},"amount":{"type":"number","format":"decimal","description":"Total amount of the package."},"discount_amount":{"type":"number","format":"decimal","description":"Total discount amount applied to the package."},"net_amount":{"type":"number","format":"decimal","description":"Net amount after applying discounts."},"has_gift_box":{"type":"boolean","description":"Indicates whether the package includes a gift box."},"gift_box_note":{"type":"string","description":"Note or message associated with the gift box."},"notes":{"type":"string","description":"Additional notes or comments related to the associated order."},"date_placed":{"type":"string","format":"date-time","description":"Date and time when the associated order was placed."},"shipping_method":{"type":"string","description":"Combined name and type of the shipping method associated with the package."},"shipping_company":{"type":"object","properties":{"name":{"type":"string","description":"Name of the shipping company."},"slug":{"type":"string","description":"Unique identifier or slug for the shipping company."}}},"is_requires_manual_entry":{"type":"boolean","description":"Indicates whether the package requires manual entry for tracking."},"waybill_number":{"type":"string","description":"Unique identifier for the waybill associated with the package."},"tracking_number":{"type":"string","description":"Tracking number for monitoring the package's shipment progress."},"tracking_url":{"type":"string","description":"URL for tracking the package online."},"shipment_date":{"type":"string","format":"date-time","description":"Date and time when the package was shipped."},"delivery_date":{"type":"string","format":"date-time","description":"Date and time when the package was delivered."},"invoice_date":{"type":"string","format":"date-time","description":"Date when the invoice for the package was generated."},"invoice_number":{"type":"string","description":"Unique identifier or number associated with the package's invoice."},"invoice_url":{"type":"string","format":"url","description":"URL for the package's invoice."},"package_index":{"type":"integer","nullable":true,"readOnly":true,"description":"Sequential index of the package within its order (1, 2, 3...). Monotonically increasing, never reused after cancellation."},"updated_at":{"type":"string","format":"date-time","description":"Timestamp indicating when the package was last updated."},"created_at":{"type":"string","format":"date-time","description":"Timestamp indicating when the package was created."}}},"Address":{"properties":{"email":{"type":"string","format":"email","description":"Email address associated with the address."},"phone_number":{"type":"string","format":"phone","description":"Phone number associated with the address."},"first_name":{"type":"string","description":"First name of the individual associated with the address."},"last_name":{"type":"string","description":"Last name of the individual associated with the address."},"country":{"type":"string","description":"Country of the address."},"country_code":{"type":"string","description":"ISO 3166-1 Alpha-2 country code of the address."},"city":{"type":"string","description":"City of the address."},"township":{"type":"string","description":"Township or region of the address."},"district":{"type":"string","description":"District of the address."},"line":{"type":"string","description":"Street address or line associated with the address."},"postcode":{"type":"string","description":"Postal code of the address."},"company_name":{"type":"string","description":"Name of the company associated with the address."},"tax_office":{"type":"string","description":"Tax office associated with the address."},"tax_no":{"type":"string","description":"Tax identification number associated with the address."},"e_bill_taxpayer":{"type":"boolean","description":"Indicates whether the address is an e-bill taxpayer."},"identity_number":{"type":"string","description":"Identity number associated with the address."},"notes":{"type":"string","description":"Additional notes or comments related to the address."}}}},"responses":{"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/":{"get":{"tags":["Packages"],"operationId":"PKG101","summary":"PKG101: Get Packages","parameters":[{"$ref":"#/components/parameters/language"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/limit"},{"in":"query","name":"number","schema":{"type":"string"},"description":"Filter by exact value of the number field."},{"in":"query","name":"order__number","schema":{"type":"string"},"description":"Filter by exact value of the number field of related order."},{"in":"query","name":"waybill_number","schema":{"type":"string"},"description":"Filter by exact value of the waybill number field."},{"in":"query","name":"status","schema":{"type":"integer","enum":[1,2,3,4,5,6]},"description":"Filter by status field. Must be one of the provided integer values."},{"$ref":"#/components/parameters/updated_at"},{"$ref":"#/components/parameters/updated_at__gt"},{"$ref":"#/components/parameters/updated_at__gte"},{"$ref":"#/components/parameters/updated_at__lt"},{"$ref":"#/components/parameters/updated_at__lte"},{"$ref":"#/components/parameters/created_at"},{"$ref":"#/components/parameters/created_at__gt"},{"$ref":"#/components/parameters/created_at__gte"},{"$ref":"#/components/parameters/created_at__lt"},{"$ref":"#/components/parameters/created_at__lte"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/_Pagination"},{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","$ref":"#/components/schemas/_Package"}}}}]}}}},"401":{"$ref":"#/components/responses/401"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## GET /i2/packages/{number}/items/

> PKG102: Get Package Items

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}},"page":{"name":"page","in":"query","required":false,"description":"Specifies the page number of the current dataset.","schema":{"type":"integer","minimum":1,"default":1}},"limit":{"name":"limit","in":"query","required":false,"description":"Specifies the row count of the current page.","schema":{"type":"integer","minimum":1,"default":10}},"updated_at":{"name":"updated_at","description":"Filters data where the \"updated_at\" field is exactly equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__gt":{"name":"updated_at__gt","description":"Filters data where the \"updated_at\" field is greater than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__gte":{"name":"updated_at__gte","description":"Filters data where the \"updated_at\" field is greater than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__lt":{"name":"updated_at__lt","description":"Filters data where the \"updated_at\" field is less than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"updated_at__lte":{"name":"updated_at__lte","description":"Filters data where the \"updated_at\" field is less than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at":{"name":"created_at","description":"Filters data where the \"created_at\" field is exactly equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__gt":{"name":"created_at__gt","description":"Filters data where the \"created_at\" field is greater than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__gte":{"name":"created_at__gte","description":"Filters data where the \"created_at\" field is greater than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__lt":{"name":"created_at__lt","description":"Filters data where the \"created_at\" field is less than a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},"created_at__lte":{"name":"created_at__lte","description":"Filters data where the \"created_at\" field is less than or equal to a specified value.","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}},"schemas":{"_Pagination":{"type":"object","properties":{"count":{"type":"integer","description":"Indicates the number of objects that match the criteria specified in the request."},"next":{"type":"string","format":"uri","description":"Indicates the next page URL that points to the location of the next set of results."},"previous":{"type":"string","format":"uri","description":"Indicates the previous page URL that points to the location of the next set of results."}}},"_PackageItem":{"properties":{"number":{"type":"string","description":"Unique identifier for the package item."},"status":{"type":"number","description":"Status of the package item:\n- `0 - Cancelled/Split`: The package item has been cancelled or split.\n- `1 - Active`: The package item is active.\n"},"product":{"type":"string","description":"Stock Keeping Unit (SKU) code for the product sold within the package item."},"amount":{"type":"number","format":"decimal","description":"Amount of the package item."},"discount_amount":{"type":"number","format":"decimal","description":"Discount amount applied to the package item."},"net_amount":{"type":"number","format":"decimal","description":"Net amount after applying discounts to the package item."},"tax_rate":{"type":"number","format":"decimal","description":"Tax rate applied to the package item."},"has_reservation":{"type":"boolean","description":"Indicates whether the package item has a stock reservation. If true, the stock reservation must be released with the PKG108."},"updated_at":{"type":"string","format":"date-time","description":"Timestamp indicating when the package item was last updated."},"created_at":{"type":"string","format":"date-time","description":"Timestamp indicating when the package item was created."}}}},"responses":{"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/items/":{"get":{"tags":["Packages"],"operationId":"PKG102","summary":"PKG102: Get Package Items","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/updated_at"},{"$ref":"#/components/parameters/updated_at__gt"},{"$ref":"#/components/parameters/updated_at__gte"},{"$ref":"#/components/parameters/updated_at__lt"},{"$ref":"#/components/parameters/updated_at__lte"},{"$ref":"#/components/parameters/created_at"},{"$ref":"#/components/parameters/created_at__gt"},{"$ref":"#/components/parameters/created_at__gte"},{"$ref":"#/components/parameters/created_at__lt"},{"$ref":"#/components/parameters/created_at__lte"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/_Pagination"},{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","$ref":"#/components/schemas/_PackageItem"}}}}]}}}},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## PUT /i2/packages/{number}/

> PKG103: Update Package

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"schemas":{"_U_Package":{"properties":{"status":{"description":"Status of the package:\n- `2 - Preparing`: The package is being prepared for shipment.\n- `3 - Ready to Ship`: The package is ready to be shipped.\n- `4 - Shipped`: The package has been shipped.\n- `5 - Delivered`: The package has been successfully delivered.\n- `6 - Delivery Failed`: The delivery of the package has failed.\n","type":"integer","enum":[2,3,4,5,6]},"waybill_number":{"type":"string","description":"Unique identifier for the waybill associated with the package."},"tracking_number":{"type":"string","description":"Tracking number for monitoring the package's shipment progress."},"tracking_url":{"type":"string","format":"uri","description":"URL for tracking the package online."},"shipping_company":{"type":"string","format":"string","description":"Name of the shipping company handling the package."},"shipment_date":{"type":"string","format":"date-time","description":"Date and time when the package was shipped."},"delivery_date":{"type":"string","format":"date-time","description":"Date and time when the package was delivered."},"invoice_date":{"type":"string","format":"date-time","description":"Date and time when the invoice for the package was generated."},"invoice_number":{"type":"string","description":"Unique identifier or number associated with the package's invoice."},"invoice_url":{"type":"string","format":"url","description":"URL for the package's invoice."}}},"_Package":{"properties":{"number":{"type":"string","description":"Unique identifier for the package."},"order_number":{"type":"string","description":"Unique identifier for the associated order."},"status":{"type":"integer","enum":[1,2,3,4,5,6],"description":"Status of the package:\n- `1 - Cancelled`: The package has been cancelled.\n- `2 - Preparing`: The package is being prepared for shipment.\n- `3 - Ready to Ship`: The package is ready to be shipped.\n- `4 - Shipped`: The package has been shipped.\n- `5 - Delivered`: The package has been successfully delivered.\n- `6 - Delivery Failed`: The delivery of the package has failed.\n"},"shipping_address":{"type":"object","$ref":"#/components/schemas/Address","description":"Shipping address associated with the package."},"billing_address":{"type":"object","$ref":"#/components/schemas/Address","description":"Billing address associated with the package."},"currency":{"type":"string","enum":["TRY","USD","EUR","EGP","GBP","MAD","PLN","SAR","RON","UAH","CZK","HUF","RUB","BGN","IQD","KWD","BHD","OMR","QAR","AED","NGN"],"description":"Currency code for the associated order."},"amount":{"type":"number","format":"decimal","description":"Total amount of the package."},"discount_amount":{"type":"number","format":"decimal","description":"Total discount amount applied to the package."},"net_amount":{"type":"number","format":"decimal","description":"Net amount after applying discounts."},"has_gift_box":{"type":"boolean","description":"Indicates whether the package includes a gift box."},"gift_box_note":{"type":"string","description":"Note or message associated with the gift box."},"notes":{"type":"string","description":"Additional notes or comments related to the associated order."},"date_placed":{"type":"string","format":"date-time","description":"Date and time when the associated order was placed."},"shipping_method":{"type":"string","description":"Combined name and type of the shipping method associated with the package."},"shipping_company":{"type":"object","properties":{"name":{"type":"string","description":"Name of the shipping company."},"slug":{"type":"string","description":"Unique identifier or slug for the shipping company."}}},"is_requires_manual_entry":{"type":"boolean","description":"Indicates whether the package requires manual entry for tracking."},"waybill_number":{"type":"string","description":"Unique identifier for the waybill associated with the package."},"tracking_number":{"type":"string","description":"Tracking number for monitoring the package's shipment progress."},"tracking_url":{"type":"string","description":"URL for tracking the package online."},"shipment_date":{"type":"string","format":"date-time","description":"Date and time when the package was shipped."},"delivery_date":{"type":"string","format":"date-time","description":"Date and time when the package was delivered."},"invoice_date":{"type":"string","format":"date-time","description":"Date when the invoice for the package was generated."},"invoice_number":{"type":"string","description":"Unique identifier or number associated with the package's invoice."},"invoice_url":{"type":"string","format":"url","description":"URL for the package's invoice."},"package_index":{"type":"integer","nullable":true,"readOnly":true,"description":"Sequential index of the package within its order (1, 2, 3...). Monotonically increasing, never reused after cancellation."},"updated_at":{"type":"string","format":"date-time","description":"Timestamp indicating when the package was last updated."},"created_at":{"type":"string","format":"date-time","description":"Timestamp indicating when the package was created."}}},"Address":{"properties":{"email":{"type":"string","format":"email","description":"Email address associated with the address."},"phone_number":{"type":"string","format":"phone","description":"Phone number associated with the address."},"first_name":{"type":"string","description":"First name of the individual associated with the address."},"last_name":{"type":"string","description":"Last name of the individual associated with the address."},"country":{"type":"string","description":"Country of the address."},"country_code":{"type":"string","description":"ISO 3166-1 Alpha-2 country code of the address."},"city":{"type":"string","description":"City of the address."},"township":{"type":"string","description":"Township or region of the address."},"district":{"type":"string","description":"District of the address."},"line":{"type":"string","description":"Street address or line associated with the address."},"postcode":{"type":"string","description":"Postal code of the address."},"company_name":{"type":"string","description":"Name of the company associated with the address."},"tax_office":{"type":"string","description":"Tax office associated with the address."},"tax_no":{"type":"string","description":"Tax identification number associated with the address."},"e_bill_taxpayer":{"type":"boolean","description":"Indicates whether the address is an e-bill taxpayer."},"identity_number":{"type":"string","description":"Identity number associated with the address."},"notes":{"type":"string","description":"Additional notes or comments related to the address."}}}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/":{"put":{"tags":["Packages"],"operationId":"PKG103","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"summary":"PKG103: Update Package","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/_U_Package"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/_Package"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## GET /i2/packages/{number}/label/

> PKG104: Get Cargo Label

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/label/":{"get":{"tags":["Packages"],"operationId":"PKG104","summary":"PKG104: Get Cargo Label","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","format":"base64"}}}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## POST /i2/packages/{number}/change-shipping-method/

> PKG105: Change Shipping Method

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"schemas":{"_ChangePackageShippingMethodRequest":{"properties":{"shipping_method":{"type":"string","format":"uuid","description":"Unique identifier for the shipping method associated with the new package."}},"required":["shipping_method"]}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/change-shipping-method/":{"post":{"tags":["Packages"],"operationId":"PKG105","summary":"PKG105: Change Shipping Method","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/_ChangePackageShippingMethodRequest"}}}},"responses":{"204":{"description":"No Content"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## POST /i2/packages/{number}/split/

> PKG106: Split Package

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"schemas":{"_SplitPackageRequest":{"properties":{"items":{"type":"array","items":{"type":"string","description":"Number of the package item to be split into a new package."}},"shipping_method":{"type":"string","format":"uuid","description":"Unique identifier for the shipping method associated with the new package. If not provided, the default shipping method is used."}},"required":["items"]}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/split/":{"post":{"tags":["Packages"],"operationId":"PKG106","summary":"PKG106: Split Package","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","$ref":"#/components/schemas/_SplitPackageRequest"}}}}},"responses":{"204":{"description":"No Content"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## POST /i2/packages/{number}/reject/

> PKG107: Reject Package

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"schemas":{"_RejectPackageRequest":{"properties":{"items":{"type":"array","items":{"type":"string","description":"Number of the package item to be rejected."}},"reason":{"type":"string","description":"Reason for rejecting the package item."}},"required":["items","reason"]}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/reject/":{"post":{"tags":["Packages"],"operationId":"PKG107","summary":"PKG107: Reject Package","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/_RejectPackageRequest"}}}},"responses":{"204":{"description":"No Content"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## DELETE /i2/packages/{number}/reservations/{item-number}

> PKG108: Release Stock Reservation by Package Item

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/reservations/{item-number}":{"delete":{"tags":["Packages"],"operationId":"PKG108","summary":"PKG108: Release Stock Reservation by Package Item","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"in":"path","name":"item-number","required":true,"schema":{"type":"string","description":"Unique identifier for the package item."}},{"$ref":"#/components/parameters/language"}],"responses":{"204":{"description":"No Content"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## POST /i2/packages/{number}/refund/

> PKG109: Refund Package

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"schemas":{"_RefundPackageRequest":{"properties":{"reason":{"type":"string","description":"Reason for refunding the package."},"refund_invoice_number":{"type":"string","description":"Refund invoice number for rejecting the package."}},"required":["reason","refund_invoice_number"]}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/refund/":{"post":{"tags":["Packages"],"operationId":"PKG109","summary":"PKG109: Refund Package","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","$ref":"#/components/schemas/_RefundPackageRequest"}}}},"responses":{"204":{"description":"No Content"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## DELETE /i2/packages/{number}/reservations/

> PKG110: Release Stock Reservations by Package Number

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/{number}/reservations/":{"delete":{"tags":["Packages"],"operationId":"PKG110","summary":"PKG110: Release Stock Reservations by Package Number","parameters":[{"in":"path","name":"number","required":true,"schema":{"type":"string","description":"Unique identifier for the package."}},{"$ref":"#/components/parameters/language"}],"responses":{"204":{"description":"No Content"},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## GET /i2/packages/order-address-emails/

> PKG111: Get Order Address Emails

```json
{"openapi":"3.1.0","info":{"title":"Seller Center Integration API","version":"1.0.1"},"servers":[{"url":"https://{domain}/api","variables":{"domain":{"default":"sandbox.akinon.com"}}}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"language":{"name":"Accept-Language","in":"header","required":false,"description":"Specifies the communication language of the API.","schema":{"type":"string"}}},"responses":{"400":{"description":"Missing required field(s), invalid data or invalid action.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"field":{"oneOf":[{"type":"array","description":"Indicates the absence of the {field} in the request data.","items":{"type":"string"}},{"type":"array","description":"Indicates the non-existent object usage for the {field} in the request data.","items":{"type":"string"}}]},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"non_field_errors":{"description":"Indicates the invalid data/action usage in the request data.","type":"array","items":{"type":"string"}},"code":{"type":"string","description":"Represents server-side error code."}}},{"type":"object","properties":{"detail":{"description":"Indicates the detailed message of the given error.","type":"string"},"code":{"type":"string","description":"Represents server-side error code."}}}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Includes detailed explanation of the error."},"code":{"type":"string","description":"Represents server-side error code."}}}}}},"404":{"description":"Given resource or object is not found or available.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Includes detailed explanation of the error.","type":"string"}}}}}},"500":{"description":"Unexpected error."}}},"paths":{"/i2/packages/order-address-emails/":{"get":{"tags":["Packages"],"operationId":"PKG111","summary":"PKG111: Get Order Address Emails","parameters":[{"in":"query","name":"order_number","required":true,"schema":{"type":"string","description":"Unique identifier for the order."}},{"in":"query","name":"datasource","required":false,"schema":{"type":"boolean","description":"Datasource ID. Required for superusers."}},{"$ref":"#/components/parameters/language"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"shipping_address_email":{"type":"string","format":"email","description":"Email address of the shipping address."},"billing_address_email":{"type":"string","format":"email","description":"Email address of the billing address."}}}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.akinon.com/seller-center/packages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
