> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/developers-api/purchase-order-management/create-dropship-purchase-order.md).

# Create Dropship Purchase Order

This API will create dropship POs for a Sales Order. It is used when items need to be shipped directly from a vendor to the customer, bypassing internal warehouse processing. You need to provide the Sales Order number, the specific line ID, vendor ID, and quantity.

| Field              | Data Type | Default Value | Description                                                    |
| ------------------ | --------- | ------------- | -------------------------------------------------------------- |
| `SalesOrderNumber` | string    | NA            | Sales Order number for which the dropship PO is being created. |
| `OrderLines`       | array     | \[]           | Array containing the line-level dropship details.              |
| `SoLineId`         | integer   | NA            | Sales Order line ID selected for dropshipping.                 |
| `VendorId`         | integer   | NA            | ID of the vendor who will fulfill the dropship order.          |
| `Qty`              | decimal   | 0             | Quantity to be dropshipped.                                    |

```json
{"openapi":"3.0.3","info":{"title":"Xorosoft ERP Public API","version":"2026.07"},"tags":[{"name":"Purchase Order Management","description":"Use Purchase Order Management APIs to create, import, release, close, link, and retrieve purchase orders. These endpoints support vendor purchasing, dropship workflows, incoming delivery visibility, transfer purchase orders, and sales-order-to-purchase-order linking. They are useful for procurement, supplier portals, 3PL coordination, and integrations that need to keep inbound supply synchronized with Xorosoft ERP."}],"servers":[{"url":"https://res.xorosoft.io","description":"Xorosoft ERP API server"}],"security":[{"basic":[]}],"components":{"securitySchemes":{"basic":{"scheme":"basic","type":"http"}}},"paths":{"/api/xerp/purchaseorder/createdropshippobyso":{"post":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"Data":{"items":{"properties":{"poHeader":{"properties":{"Account3PLCode":{"type":"string","nullable":true},"Account3PLId":{"type":"number"},"AddressVerificationIdentifierCode":{"type":"string","nullable":true},"ApplyPricingRule":{"type":"boolean"},"ApproverName":{"type":"string","nullable":true},"AsnNotes":{"type":"string","nullable":true},"AsnNumbers":{"type":"string","nullable":true},"AutoGenerateAsn":{"type":"boolean"},"AutoReleasePurchaseOrder":{"type":"boolean"},"BillFromAddrHashCode":{"type":"number"},"BillFromAddress":{"type":"string"},"BillFromAddress2":{"type":"string"},"BillFromCity":{"type":"string"},"BillFromCompanyName":{"type":"string"},"BillFromCountry":{"type":"string"},"BillFromEmail":{"type":"string"},"BillFromFirstName":{"type":"string"},"BillFromLastName":{"type":"string"},"BillFromName":{"type":"string"},"BillFromPhoneNumber":{"type":"string"},"BillFromPostalZipCode":{"type":"string"},"BillFromState":{"type":"string"},"BrandId":{"type":"number"},"BrandName":{"type":"string","nullable":true},"BuyerId":{"type":"number"},"BuyerName":{"type":"string"},"CancelReasonCode":{"type":"string","nullable":true},"CancelReasonName":{"type":"string","nullable":true},"CarrierCode":{"type":"string","nullable":true},"CarrierId":{"type":"number"},"CarrierName":{"type":"string"},"CheckThirdPartySource":{"type":"boolean"},"CombineLines":{"type":"boolean"},"CreateDateTime":{"type":"string"},"CreateSource":{"type":"string"},"CurrencyCode":{"type":"string"},"CurrencyId":{"type":"number"},"CurrencyRate":{"type":"number"},"CurrencySymbol":{"type":"string"},"CustomFieldH1":{"type":"string"},"CustomFieldH10":{"type":"string"},"CustomFieldH11":{"type":"string"},"CustomFieldH12":{"type":"string"},"CustomFieldH13":{"type":"string"},"CustomFieldH14":{"type":"string"},"CustomFieldH15":{"type":"string"},"CustomFieldH16":{"type":"string"},"CustomFieldH17":{"type":"string"},"CustomFieldH18":{"type":"string"},"CustomFieldH19":{"type":"string"},"CustomFieldH2":{"type":"string"},"CustomFieldH20":{"type":"string"},"CustomFieldH21":{"type":"string"},"CustomFieldH22":{"type":"string"},"CustomFieldH23":{"type":"string"},"CustomFieldH24":{"type":"string"},"CustomFieldH25":{"type":"string"},"CustomFieldH26":{"type":"string"},"CustomFieldH27":{"type":"string"},"CustomFieldH28":{"type":"string"},"CustomFieldH29":{"type":"string"},"CustomFieldH3":{"type":"string"},"CustomFieldH30":{"type":"string"},"CustomFieldH31":{"type":"string"},"CustomFieldH32":{"type":"string"},"CustomFieldH33":{"type":"string"},"CustomFieldH34":{"type":"string"},"CustomFieldH35":{"type":"string"},"CustomFieldH36":{"type":"string"},"CustomFieldH37":{"type":"string"},"CustomFieldH38":{"type":"string"},"CustomFieldH39":{"type":"string"},"CustomFieldH4":{"type":"string"},"CustomFieldH40":{"type":"string"},"CustomFieldH41":{"type":"string"},"CustomFieldH42":{"type":"string"},"CustomFieldH43":{"type":"string"},"CustomFieldH44":{"type":"string"},"CustomFieldH45":{"type":"string"},"CustomFieldH46":{"type":"string"},"CustomFieldH47":{"type":"string"},"CustomFieldH48":{"type":"string"},"CustomFieldH49":{"type":"string"},"CustomFieldH5":{"type":"string"},"CustomFieldH50":{"type":"string"},"CustomFieldH6":{"type":"string"},"CustomFieldH7":{"type":"string"},"CustomFieldH8":{"type":"string"},"CustomFieldH9":{"type":"string"},"Customer3PLMainEmail":{"type":"string","nullable":true},"DateExpectedDelivery":{"type":"string"},"DateFulFilled":{"type":"string","nullable":true},"DateOrder":{"type":"string"},"DateReleased":{"type":"string"},"DefaultLocationId":{"type":"number","nullable":true},"DefaultLocationName":{"type":"string"},"DeletedOrderLinkingArr":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"DiscountAmount":{"type":"number"},"DropShipCustomerId":{"type":"number","nullable":true},"DropShipCustomerName":{"type":"string"},"DropshipFreightAmount":{"type":"number"},"EntityUseCode":{"type":"string","nullable":true},"ExpectedShipDate":{"type":"string"},"FobId":{"type":"number","nullable":true},"FobName":{"type":"string","nullable":true},"FromStoreDefaultLocationName":{"type":"string","nullable":true},"HashCodeJson":{"type":"boolean","nullable":true},"Id":{"type":"number"},"InvalidAddressFlag":{"type":"boolean"},"IsAccount3plApiRequest":{"type":"boolean"},"IsApprovalRequiredFlag":{"type":"boolean"},"IsApproved":{"type":"boolean"},"IsClosed":{"type":"boolean"},"IsDropShip":{"type":"boolean"},"IsExistingPOLine":{"type":"boolean"},"IsProcessed":{"type":"boolean"},"ItemQualityCode":{"type":"string","nullable":true},"KeepOriginalOrderNumber":{"type":"boolean"},"LastApprovedAmount":{"type":"number"},"LastApprovedDateTime":{"type":"string","nullable":true},"LastApprovedSource":{"type":"string","nullable":true},"LineCount":{"type":"number"},"LinkSOToPO":{"type":"boolean"},"LinkedSO":{"type":"string","nullable":true},"MainEmail":{"type":"string","nullable":true},"MainPhone":{"type":"string","nullable":true},"Memo":{"type":"string"},"MoNumbers":{"type":"string","nullable":true},"ModifyDateTime":{"type":"string","nullable":true},"ModifySource":{"type":"string"},"OpenPageFromSO":{"type":"boolean"},"OrderClassCode":{"type":"string","nullable":true},"OrderClassName":{"type":"string","nullable":true},"OrderNumber":{"type":"string"},"POApprovalStatus":{"type":"string","nullable":true},"PaymentTermsId":{"type":"number","nullable":true},"PaymentTermsName":{"type":"string","nullable":true},"PoSubTypeId":{"type":"number","nullable":true},"PoSubTypeName":{"type":"string"},"PreserveOrderLinking":{"type":"boolean"},"ProcessedDttm":{"type":"string","nullable":true},"ProcessedSource":{"type":"string","nullable":true},"ProjectClassId":{"type":"number","nullable":true},"ProjectClassName":{"type":"string"},"QualityId":{"type":"number","nullable":true},"ReceivingStatusId":{"type":"number"},"ReceivingStatusName":{"type":"string"},"RefId":{"type":"number","nullable":true},"RefNumber":{"type":"string"},"ReportDataObj":{"properties":{"EntityAccntId":{"type":"string"},"EntityName":{"type":"string"},"EntityObj":{"type":"object","additionalProperties":true,"nullable":true},"ReportEntityId":{"type":"number"},"TxnRefId":{"type":"number"},"TxnRefNumber":{"type":"string"},"TxnTypeId":{"type":"number"},"linkedTxnRefId":{"type":"number","nullable":true}},"type":"object"},"ShipFromAddress":{"type":"string","nullable":true},"ShipFromAddress2":{"type":"string","nullable":true},"ShipFromCity":{"type":"string","nullable":true},"ShipFromCountry":{"type":"string","nullable":true},"ShipFromPostalZipCode":{"type":"string","nullable":true},"ShipFromState":{"type":"string","nullable":true},"ShipMethodId":{"type":"number"},"ShipMethodName":{"type":"string"},"ShipServiceCode":{"type":"string","nullable":true},"ShipServiceId":{"type":"number"},"ShipServiceName":{"type":"string"},"ShipToAddrHashCode":{"type":"number"},"ShipToAddrName":{"type":"string","nullable":true},"ShipToAddress":{"type":"string"},"ShipToAddress2":{"type":"string"},"ShipToCity":{"type":"string"},"ShipToCompanyName":{"type":"string"},"ShipToCountry":{"type":"string"},"ShipToEmail":{"type":"string"},"ShipToFirstName":{"type":"string"},"ShipToLastName":{"type":"string"},"ShipToName":{"type":"string"},"ShipToPhoneNumber":{"type":"string"},"ShipToPostalZipCode":{"type":"string"},"ShipToState":{"type":"string"},"ShippingAccountNumber":{"type":"string"},"ShippingTermsId":{"type":"number","nullable":true},"ShippingTermsName":{"type":"string","nullable":true},"StatusId":{"type":"number"},"StatusName":{"type":"string"},"StoreId":{"type":"number"},"StoreName":{"type":"string"},"SubTotal":{"type":"number"},"SubTotalExclDiscount":{"type":"number"},"Tags":{"type":"string"},"TaxServiceHashCode":{"type":"number"},"TaxServiceHashCodeOld":{"type":"number"},"TaxSummaryDataText":{"type":"string","nullable":true},"ThirdPartyDisplayName":{"type":"string"},"ThirdPartyIconUrl":{"type":"string"},"ThirdPartyOrderAlreadyExists":{"type":"boolean"},"ThirdPartyRefNo":{"type":"string"},"ThirdPartySource":{"type":"string"},"ToStoreDefaultLocationId":{"type":"number","nullable":true},"ToStoreDefaultLocationName":{"type":"string"},"TotalAmount":{"type":"number"},"TotalCBM":{"type":"number"},"TotalEstimatedDutyAmount":{"type":"number","nullable":true},"TotalPrepayment":{"type":"number"},"TotalQty":{"type":"number"},"TransferFromStoreId":{"type":"number","nullable":true},"TransferFromStoreName":{"type":"string"},"TransferProcessedFlag":{"type":"boolean"},"TransferSoId":{"type":"number","nullable":true},"TransferSoNumber":{"type":"string"},"TransferToStoreId":{"type":"number","nullable":true},"TriggerIncomingPoDeliveryWebhookFlag":{"type":"boolean"},"TxnId":{"type":"string"},"TxnNumber":{"type":"number"},"TxnTypeId":{"type":"number","nullable":true},"TypeId":{"type":"number"},"TypeName":{"type":"string"},"UpdateEnable":{"type":"boolean"},"UpdateFromSo":{"type":"boolean"},"UpdatedOrderLinkingArr":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"Vendor3PLTypeId":{"type":"number"},"Vendor3PLTypeName":{"type":"string","nullable":true},"VendorContact":{"type":"string"},"VendorEmailCC":{"type":"string","nullable":true},"VendorEmailMain":{"type":"string"},"VendorId":{"type":"number"},"VendorMsg":{"type":"string"},"VendorName":{"type":"string"},"VendorPartNumber":{"type":"string"},"VendorReqDate":{"type":"string"},"VoidAndCreate":{"type":"boolean"},"VoidTSO":{"type":"boolean"}},"type":"object"},"poLines":{"items":{"properties":{"Account3plId":{"type":"number","nullable":true},"AllowedPurchaseUOMList":{"type":"boolean","nullable":true},"AlternativeItemNumber1":{"type":"string"},"AlternativeItemNumber2":{"type":"string"},"AlternativeItemNumber3":{"type":"string"},"Amount":{"type":"number"},"BasePartNumber":{"type":"string"},"BaseQtyOrdered":{"type":"string","nullable":true},"BaseQtyRemainingToShip":{"type":"string","nullable":true},"BaseQtyShipped":{"type":"string","nullable":true},"BaseUomId":{"type":"number"},"BaseUomName":{"type":"string","nullable":true},"BrandName":{"type":"string","nullable":true},"CancelledFlag":{"type":"boolean"},"CloseFlag":{"type":"boolean"},"CreateDateTime":{"type":"string","nullable":true},"CreateSource":{"type":"string","nullable":true},"CustomFieldD1":{"type":"string"},"CustomFieldD10":{"type":"string"},"CustomFieldD11":{"type":"string"},"CustomFieldD12":{"type":"string"},"CustomFieldD13":{"type":"string"},"CustomFieldD14":{"type":"string"},"CustomFieldD15":{"type":"string"},"CustomFieldD16":{"type":"string"},"CustomFieldD17":{"type":"string"},"CustomFieldD18":{"type":"string"},"CustomFieldD19":{"type":"string"},"CustomFieldD2":{"type":"string"},"CustomFieldD20":{"type":"string"},"CustomFieldD21":{"type":"string"},"CustomFieldD22":{"type":"string"},"CustomFieldD23":{"type":"string"},"CustomFieldD24":{"type":"string"},"CustomFieldD25":{"type":"string"},"CustomFieldD26":{"type":"string"},"CustomFieldD27":{"type":"string"},"CustomFieldD28":{"type":"string"},"CustomFieldD29":{"type":"string"},"CustomFieldD3":{"type":"string"},"CustomFieldD30":{"type":"string"},"CustomFieldD31":{"type":"string"},"CustomFieldD32":{"type":"string"},"CustomFieldD33":{"type":"string"},"CustomFieldD34":{"type":"string"},"CustomFieldD35":{"type":"string"},"CustomFieldD36":{"type":"string"},"CustomFieldD37":{"type":"string"},"CustomFieldD38":{"type":"string"},"CustomFieldD39":{"type":"string"},"CustomFieldD4":{"type":"string"},"CustomFieldD40":{"type":"string"},"CustomFieldD41":{"type":"string"},"CustomFieldD42":{"type":"string"},"CustomFieldD43":{"type":"string"},"CustomFieldD44":{"type":"string"},"CustomFieldD45":{"type":"string"},"CustomFieldD46":{"type":"string"},"CustomFieldD47":{"type":"string"},"CustomFieldD48":{"type":"string"},"CustomFieldD49":{"type":"string"},"CustomFieldD5":{"type":"string"},"CustomFieldD50":{"type":"string"},"CustomFieldD6":{"type":"string"},"CustomFieldD7":{"type":"string"},"CustomFieldD8":{"type":"string"},"CustomFieldD9":{"type":"string"},"DateExpectedDelivery":{"type":"string"},"DateLastFulFilled":{"type":"string","nullable":true},"DefaultPurchaseUomId":{"type":"number"},"DeleteFlag":{"type":"boolean"},"Description":{"type":"string"},"Discount":{"type":"number"},"DiscountDisp":{"type":"string"},"DiscountTypeId":{"type":"number"},"DiscountTypeName":{"type":"string","nullable":true},"DropshipSoId":{"type":"number","nullable":true},"DropshipSoLineId":{"type":"number","nullable":true},"DropshipSoNumber":{"type":"string"},"EditState":{"type":"boolean"},"EffectiveUnitPrice":{"type":"number"},"EstimatedDutyAmount":{"type":"number","nullable":true},"EstimatedDutyPercentage":{"type":"string","nullable":true},"ExpectedShipDate":{"type":"string"},"HSCode":{"type":"string","nullable":true},"Id":{"type":"number"},"ImagePath":{"type":"string","nullable":true},"IsBomItemFlag":{"type":"boolean"},"IsCopiedFromSO":{"type":"boolean"},"IsKitHeader":{"type":"boolean"},"IsKitItem":{"type":"boolean"},"IsMergedChildLine":{"type":"boolean"},"IsMergedParentLine":{"type":"boolean"},"IsPriceChanged":{"type":"boolean"},"IsProducibleFlag":{"type":"boolean"},"IsTaxableFlag":{"type":"boolean"},"ItemBarcode":{"type":"string"},"ItemCategoryName":{"type":"string","nullable":true},"ItemGroupName":{"type":"string","nullable":true},"ItemIdentifierCode":{"type":"string","nullable":true},"ItemQualityCode":{"type":"string","nullable":true},"ItemSubCategoryName":{"type":"string","nullable":true},"ItemUpc":{"type":"string"},"ItemWeight":{"type":"string","nullable":true},"ItemWeightUomId":{"type":"number"},"ItemWeightUomName":{"type":"string"},"KitItemFactor":{"type":"number"},"LineStatusId":{"type":"number"},"LineStatusName":{"type":"string"},"LinkedQty":{"type":"number"},"LinkedSoNumbers":{"type":"string","nullable":true},"MasterKitId":{"type":"number","nullable":true},"MasterKitKey":{"type":"string"},"MaterialName":{"type":"string"},"ModifyDateTime":{"type":"string","nullable":true},"ModifySource":{"type":"string","nullable":true},"Notes":{"type":"string"},"OpenFlag":{"type":"boolean"},"Option1Name":{"type":"string"},"Option1Seq":{"type":"number","nullable":true},"Option1Value":{"type":"string"},"Option1ValueCode":{"type":"string"},"Option2Name":{"type":"string"},"Option2Seq":{"type":"number"},"Option2Value":{"type":"string"},"Option2ValueCode":{"type":"string"},"Option3Name":{"type":"string","nullable":true},"Option3Seq":{"type":"number","nullable":true},"Option3Value":{"type":"string","nullable":true},"Option3ValueCode":{"type":"string","nullable":true},"OrderLineClassCode":{"type":"string","nullable":true},"OrderLineClassName":{"type":"string","nullable":true},"OrderNumber":{"type":"number","nullable":true},"PoId":{"type":"number"},"PoItemId":{"type":"number"},"PoItemNumber":{"type":"string"},"PoItemTypeId":{"type":"number"},"PoItemTypeName":{"type":"string"},"PoLineNumber":{"type":"number"},"ProductCategoryName":{"type":"string","nullable":true},"ProductHeaderId":{"type":"number"},"ProjectClassId":{"type":"number","nullable":true},"ProjectClassName":{"type":"string"},"PtoId":{"type":"number","nullable":true},"PurchaseNotes":{"type":"string"},"QtyAvailableToReceive":{"type":"string","nullable":true},"QtyDecimalFlag":{"type":"boolean"},"QtyInReceiving":{"type":"number"},"QtyOpenAsn":{"type":"string","nullable":true},"QtyOrder":{"type":"number"},"QtyReceived":{"type":"number"},"QtyReceivedPercentage":{"type":"number"},"QtyRemaining":{"type":"number"},"QtyToReceive":{"type":"string","nullable":true},"QualityId":{"type":"number","nullable":true},"ReceivedQuality":{"type":"string","nullable":true},"RefId":{"type":"number","nullable":true},"SoId":{"type":"number","nullable":true},"SoLineId":{"type":"number","nullable":true},"SoLineQty":{"type":"number","nullable":true},"TaxAmount":{"type":"number"},"TaxCategoryCode":{"type":"string","nullable":true},"TaxCodeId":{"type":"number","nullable":true},"TaxCodeName":{"type":"string"},"TaxData":{"type":"string","nullable":true},"TaxItems":{"type":"string","nullable":true},"ThirdPartyRefNo":{"type":"string","nullable":true},"Title":{"type":"string"},"TotalInReceiving":{"type":"string","nullable":true},"TransferSoLineId":{"type":"number","nullable":true},"TxnTypeId":{"type":"number","nullable":true},"UnitCBM":{"type":"string","nullable":true},"UnitPrice":{"type":"number"},"UomFactor":{"type":"number"},"UomId":{"type":"number"},"UomName":{"type":"string"},"VendorId":{"type":"number","nullable":true},"VendorPartNumber":{"type":"string"}},"type":"object"},"type":"array"},"uccCartonArr":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true}},"type":"object"},"type":"array"},"IsForwardRequest":{"type":"boolean"},"Message":{"type":"string"},"MessageTitle":{"type":"string","nullable":true},"Result":{"type":"boolean"}},"type":"object"}}},"description":"OK","headers":{}}},"tags":["Purchase Order Management"],"description":"This API will create dropship POs for a Sales Order. It is used when items need to be shipped directly from a vendor to the customer, bypassing internal warehouse processing. You need to provide the Sales Order number, the specific line ID, vendor ID, and quantity.\n\nField               |Data Type          |Default Value          |Description\n-------------------|-------------------|-------------------|--------------\n``SalesOrderNumber ``|string|NA|Sales Order number for which the dropship PO is being created.\n``OrderLines``|array|[]|Array containing the line-level dropship details.\n``SoLineId``|integer|NA|Sales Order line ID selected for dropshipping.\n``VendorId``|integer|NA|ID of the vendor who will fulfill the dropship order.\n``Qty``|decimal|0|Quantity to be dropshipped.","operationId":"post_purchaseorder_createdropshippobyso","requestBody":{"content":{"application/json":{"schema":{"properties":{"OrderLines":{"items":{"properties":{"Qty":{"type":"number"},"SoLineId":{"type":"string"},"VendorId":{"type":"string"}},"type":"object"},"type":"array"},"SalesOrderNumber":{"type":"string"}},"type":"object"}}}},"summary":"Create Dropship Purchase Order"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.xorosoft.com/developers-api/purchase-order-management/create-dropship-purchase-order.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
