> 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/import-transfer-purchase-order.md).

# Import Transfer Purchase Order

Create or update transferpurchaseorder data in Xorosoft ERP. Send the JSON payload using the field names documented in this operation and in the module export/import format used by Xorosoft ERP.

```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"}},"schemas":{"XoroApiResponse":{"type":"object","description":"Standard Xorosoft ERP API response envelope used by most endpoints.","properties":{"Result":{"type":"boolean","description":"True when the operation completed successfully."},"Message":{"type":"string","description":"Human-readable success or error message."},"Data":{"description":"Endpoint-specific payload.","type":"object","additionalProperties":true,"nullable":true},"Page":{"type":"integer","description":"Current page number when paging is enabled.","nullable":true},"TotalPages":{"type":"integer","description":"Total page count when paging is enabled.","nullable":true}}},"PostTransferpurchaseorderImportRequest":{"type":"object","description":"Request body for Import.","properties":{"poHeader":{"type":"object","description":"Transfer purchase order header values. This uses the same header contract as Create Purchase Order and additionally requires StoreName and TransferFromStoreName for the destination and source stores.","properties":{"Account3PLCode":{"type":"string"},"Account3PLId":{"type":"integer"},"AddressVerificationIdentifierCode":{"type":"integer","nullable":true},"ApplyPricingRule":{"type":"boolean"},"ApproverName":{"type":"string"},"AsnNotes":{"type":"string"},"AsnNumbers":{"type":"string"},"AutoGenerateAsn":{"type":"boolean","description":"When true, automatically creates an ASN for the purchase order."},"BillFromAddrHashCode":{"type":"integer"},"BrandId":{"type":"integer","nullable":true},"BrandName":{"type":"string"},"BuyerId":{"type":"integer","nullable":true},"CancelReasonCode":{"type":"string"},"CancelReasonName":{"type":"string"},"CarrierCode":{"type":"string"},"CarrierId":{"type":"integer","nullable":true},"CombineLines":{"type":"boolean","description":"When true, combines compatible purchase order lines during processing."},"CreateDateTime":{"type":"string","format":"date-time","nullable":true},"CreateDttm":{"type":"string","format":"date-time","nullable":true},"CreateSource":{"type":"string"},"CurrencyId":{"type":"integer"},"CurrencySymbol":{"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"},"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"},"CustomFieldH50":{"type":"string"},"CustomFieldsToUpdate":{"type":"object","additionalProperties":true},"Customer3PLMainEmail":{"type":"string"},"DateFulFilled":{"type":"string","format":"date-time","nullable":true},"DateReleased":{"type":"string","format":"date-time","nullable":true},"DefaultLocationId":{"type":"integer","nullable":true},"DeletedOrderLinkingArr":{"type":"array","items":{"type":"object","additionalProperties":true}},"DropShipCustomerId":{"type":"integer","nullable":true},"DropShipCustomerName":{"type":"string"},"DropshipFreightAmount":{"type":"number","nullable":true},"EntityUseCode":{"type":"string"},"ExpectedShipDate":{"type":"string","format":"date-time","nullable":true},"FobId":{"type":"integer","nullable":true},"FromStoreDefaultLocationName":{"type":"string"},"HashCodeJson":{"type":"string"},"Id":{"type":"integer","format":"int64"},"InCompleteTaskCount":{"type":"integer","nullable":true},"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"},"KeepOriginalOrderNumber":{"type":"boolean"},"LastApprovedAmount":{"type":"number"},"LastApprovedDateTime":{"type":"string","format":"date-time","nullable":true},"LastApprovedSource":{"type":"string"},"LineCount":{"type":"integer"},"LinkSOToPO":{"type":"boolean","description":"When true, creates or preserves the sales-order-to-purchase-order linkage."},"LinkedSO":{"type":"string"},"MainEmail":{"type":"string"},"MainPhone":{"type":"string"},"MetaData":{"type":"string"},"MoNumbers":{"type":"string"},"ModifyDateTime":{"type":"string","format":"date-time","nullable":true},"ModifyDttm":{"type":"string","format":"date-time","nullable":true},"ModifySource":{"type":"string"},"OpenPageFromSO":{"type":"boolean"},"OrderClassCode":{"type":"string"},"OrderClassName":{"type":"string"},"OrderNumber":{"type":"string"},"OrderTypeCode":{"type":"string"},"OrderTypeName":{"type":"string"},"POApprovalStatus":{"type":"string"},"PaymentTermsId":{"type":"integer","nullable":true},"PoSubTypeId":{"type":"integer","nullable":true},"PreserveOrderLinking":{"type":"boolean","description":"Preserves existing sales-order-to-purchase-order links when the order is updated."},"ProcessedDttm":{"type":"string","format":"date-time","nullable":true},"ProcessedSource":{"type":"string"},"ProjectClassId":{"type":"integer","nullable":true},"QualityId":{"type":"integer","nullable":true},"ReceivingStatusId":{"type":"integer"},"ReceivingStatusName":{"type":"string"},"RefId":{"type":"string"},"RefNumber":{"type":"string"},"ReportDataObj":{"type":"object","additionalProperties":true},"ShipFromAddress":{"type":"string"},"ShipFromAddress2":{"type":"string"},"ShipFromCity":{"type":"string"},"ShipFromCountry":{"type":"string"},"ShipFromPostalZipCode":{"type":"string"},"ShipFromState":{"type":"string"},"ShipMethodId":{"type":"integer","nullable":true},"ShipServiceCode":{"type":"string"},"ShipServiceId":{"type":"integer","nullable":true},"ShipToAddrHashCode":{"type":"integer"},"ShippingAccountNumber":{"type":"string"},"ShippingTermsId":{"type":"integer","nullable":true},"ShippingTermsName":{"type":"string"},"StatusId":{"type":"integer"},"StatusName":{"type":"string"},"StoreId":{"type":"integer"},"SubTotal":{"type":"number"},"SubTotalExclDiscount":{"type":"number"},"TaxServiceHashCode":{"type":"integer"},"TaxServiceHashCodeOld":{"type":"integer"},"TaxSummaryDataText":{"type":"string"},"ThirdPartyOrderAlreadyExists":{"type":"boolean"},"ToStoreDefaultLocationId":{"type":"integer","nullable":true},"ToStoreDefaultLocationName":{"type":"string"},"TotalCBM":{"type":"number","nullable":true},"TotalEstimatedDutyAmount":{"type":"number","nullable":true},"TotalPrepayment":{"type":"number"},"TotalQty":{"type":"number"},"TotalTaskCount":{"type":"integer","nullable":true},"TransferFromStoreId":{"type":"integer","nullable":true},"TransferFromStoreName":{"type":"string","description":"Source store name or store code."},"TransferProcessedFlag":{"type":"boolean"},"TransferSoId":{"type":"integer","nullable":true},"TransferSoNumber":{"type":"string"},"TransferToStoreId":{"type":"integer","nullable":true},"TriggerIncomingPoDeliveryWebhookFlag":{"type":"boolean"},"TxnId":{"type":"string"},"TxnNumber":{"type":"integer","format":"int64"},"TxnTypeId":{"type":"string"},"TypeId":{"type":"integer"},"TypeName":{"type":"string"},"UpdateEnable":{"type":"boolean","description":"Enables matching and updating an existing order by third-party reference number or order number."},"UpdateFromSo":{"type":"boolean"},"UpdatedOrderLinkingArr":{"type":"array","items":{"type":"object","additionalProperties":true}},"Vendor3PLTypeId":{"type":"integer"},"Vendor3PLTypeName":{"type":"string"},"VendorAccountNumber":{"type":"string"},"VendorContact":{"type":"string"},"VendorEmailCC":{"type":"string"},"VendorEmailMain":{"type":"string"},"VendorId":{"type":"integer","nullable":true},"VendorMsg":{"type":"string"},"VendorPartNumber":{"type":"string"},"VoidAndCreate":{"type":"boolean","description":"When updating an existing purchase order, voids the prior order and creates a replacement."},"ThirdPartyRefNo":{"type":"string"},"VendorName":{"type":"string"},"StoreName":{"type":"string","description":"Destination store name or store code."}},"additionalProperties":true},"poLines":{"type":"array","description":"Transfer purchase order lines. This is the same poLines array used by Create Purchase Order.","items":{"type":"object","properties":{"Account3plId":{"type":"integer","nullable":true},"AllowedPurchaseUOMList":{"type":"array","items":{"type":"object","additionalProperties":true}},"AlternativeItemNumber1":{"type":"string"},"AlternativeItemNumber2":{"type":"string"},"AlternativeItemNumber3":{"type":"string"},"Amount":{"type":"number","nullable":true},"AutoCreateItemFlag":{"type":"boolean"},"BasePartNumber":{"type":"string"},"BaseQtyOrdered":{"type":"number","nullable":true},"BaseQtyRemainingToShip":{"type":"number","nullable":true},"BaseQtyShipped":{"type":"number","nullable":true},"BaseUomId":{"type":"integer","nullable":true},"BaseUomName":{"type":"string"},"BrandName":{"type":"string"},"CancelledFlag":{"type":"boolean"},"CloseFlag":{"type":"boolean"},"CopiedFromShortQtyFlag":{"type":"boolean"},"CreateDateTime":{"type":"string"},"CreateSource":{"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"},"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"},"CustomFieldD50":{"type":"string"},"DateExpectedDelivery":{"type":"string","format":"date-time","nullable":true},"DateLastFulFilled":{"type":"string","format":"date-time","nullable":true},"DefaultPurchaseUomId":{"type":"integer","format":"int64"},"DeleteFlag":{"type":"boolean","description":"Marks an existing purchase order line for deletion during an update."},"DiscountDisp":{"type":"string"},"DiscountTypeId":{"type":"integer","nullable":true},"DropshipSoId":{"type":"integer","format":"int64","nullable":true},"DropshipSoLineId":{"type":"integer","format":"int64","nullable":true},"DropshipSoNumber":{"type":"string"},"EditState":{"type":"boolean"},"EffectiveUnitPrice":{"type":"number","nullable":true},"EstimatedDutyAmount":{"type":"number","nullable":true},"EstimatedDutyPercentage":{"type":"number","nullable":true},"ExpectedShipDate":{"type":"string","format":"date-time","nullable":true},"HSCode":{"type":"string"},"Id":{"type":"integer","format":"int64"},"ImagePath":{"type":"string"},"IsBomItemFlag":{"type":"boolean","nullable":true},"IsCopiedFromSO":{"type":"boolean"},"IsKitHeader":{"type":"boolean"},"IsKitItem":{"type":"boolean"},"IsMergedChildLine":{"type":"boolean"},"IsMergedParentLine":{"type":"boolean"},"IsPriceChanged":{"type":"boolean"},"IsProducibleFlag":{"type":"boolean","nullable":true},"IsTaxableFlag":{"type":"boolean"},"ItemBarcode":{"type":"string"},"ItemCategoryName":{"type":"string"},"ItemGroupName":{"type":"string"},"ItemIdentifierCode":{"type":"integer","nullable":true},"ItemQualityCode":{"type":"string"},"ItemSubCategoryName":{"type":"string"},"ItemUpc":{"type":"string"},"ItemWeight":{"type":"number","nullable":true},"ItemWeightUomId":{"type":"integer","nullable":true},"ItemWeightUomName":{"type":"string"},"KitItemFactor":{"type":"number","nullable":true},"LineStatusId":{"type":"integer","nullable":true},"LineStatusName":{"type":"string"},"LinkedQty":{"type":"number","nullable":true},"LinkedSoNumbers":{"type":"string"},"Manufacturer":{"type":"string"},"MasterKitId":{"type":"integer","nullable":true},"MasterKitKey":{"type":"string"},"MaterialName":{"type":"string"},"ModifyDateTime":{"type":"string"},"ModifySource":{"type":"string"},"OpenFlag":{"type":"boolean"},"Option1Name":{"type":"string"},"Option1Seq":{"type":"integer","nullable":true},"Option1Value":{"type":"string"},"Option1ValueCode":{"type":"string"},"Option2Name":{"type":"string"},"Option2Seq":{"type":"integer","nullable":true},"Option2Value":{"type":"string"},"Option2ValueCode":{"type":"string"},"Option3Name":{"type":"string"},"Option3Seq":{"type":"integer","nullable":true},"Option3Value":{"type":"string"},"Option3ValueCode":{"type":"string"},"OrderLineClassCode":{"type":"string"},"OrderLineClassName":{"type":"string"},"OrderNumber":{"type":"string"},"PoId":{"type":"integer","format":"int64"},"PoItemId":{"type":"integer","format":"int64","nullable":true},"PoItemTypeId":{"type":"integer","nullable":true},"PoLineNumber":{"type":"integer"},"ProductCategoryName":{"type":"string"},"ProductHeaderId":{"type":"integer","format":"int64","nullable":true},"ProjectClassId":{"type":"integer","nullable":true},"ProjectClassName":{"type":"string"},"PtoId":{"type":"integer","format":"int64","nullable":true},"PurchaseNotes":{"type":"string"},"PurchaseRatePerWeightUnit":{"type":"number","nullable":true},"QtyAvailableToReceive":{"type":"number","nullable":true},"QtyDecimalFlag":{"type":"boolean"},"QtyInReceiving":{"type":"number","nullable":true},"QtyOpenAsn":{"type":"number","nullable":true},"QtyReceived":{"type":"number","nullable":true},"QtyReceivedPercentage":{"type":"number","nullable":true},"QtyRemaining":{"type":"number","nullable":true},"QtyToReceive":{"type":"number","nullable":true},"QualityId":{"type":"integer","nullable":true},"ReceivedQuality":{"type":"string"},"RefId":{"type":"string"},"Season":{"type":"string"},"SoId":{"type":"integer","format":"int64","nullable":true},"SoLineId":{"type":"integer","format":"int64","nullable":true},"SoLineQty":{"type":"number","nullable":true},"StandardUnitPrice":{"type":"number","nullable":true},"TaxCategoryCode":{"type":"string"},"TaxCodeId":{"type":"integer","nullable":true},"TaxData":{"type":"object","additionalProperties":true},"TaxItems":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"integer"},"Name":{"type":"string"},"TotalAmount":{"type":"number"},"Rate":{"type":"number"},"RateType":{"type":"string"},"IsShippingTax":{"type":"boolean"}}}},"ThirdPartyRefNo":{"type":"string"},"Title":{"type":"string"},"TotalInReceiving":{"type":"number","nullable":true},"TransferSoLineId":{"type":"integer","format":"int64","nullable":true},"TxnTypeId":{"type":"string"},"UnitCBM":{"type":"number","nullable":true},"UomFactor":{"type":"number","nullable":true},"UomId":{"type":"integer","nullable":true},"UomName":{"type":"string"},"VendorId":{"type":"integer","nullable":true},"VendorInternalNotes":{"type":"string"},"VendorPartDescription":{"type":"string"},"VendorPartNumber":{"type":"string"},"PoItemNumber":{"type":"string"},"QtyOrder":{"type":"number"}},"additionalProperties":true}},"uccCartonArr":{"type":"array","description":"Optional carton and UCC data associated with purchase order lines.","items":{"type":"object","properties":{"Id":{"type":"integer","format":"int64"},"AsnId":{"type":"integer","format":"int64"},"AsnLineId":{"type":"integer","format":"int64"},"LineIdentifier":{"type":"integer"},"UCC":{"type":"string"},"PalletUCC":{"type":"string"},"Qty":{"type":"number"},"AsnNumber":{"type":"string"},"TotalQtyToReceive":{"type":"number"},"TotalQtyReceived":{"type":"number"},"ItemId":{"type":"integer","format":"int64"},"ItemNumber":{"type":"string"},"ItemUpc":{"type":"string"},"ItemDescription":{"type":"string"},"AlternativeItemNumber1":{"type":"string"},"AlternativeItemNumber2":{"type":"string"},"AlternativeItemNumber3":{"type":"string"},"AsnLineStatusId":{"type":"integer"},"ExpectedQualityId":{"type":"integer","format":"int64"},"StoreId":{"type":"integer"},"LpnNumber":{"type":"string"},"QtyOnAsn":{"type":"number"},"BatchNumber":{"type":"string"},"LotNumber":{"type":"string"},"QualityId":{"type":"integer","format":"int64"},"MfgDate":{"type":"string","format":"date-time","nullable":true},"ExpDate":{"type":"string","format":"date-time","nullable":true},"Pallet":{"type":"string"},"LocId":{"type":"integer","format":"int64"},"DispLoc":{"type":"string"},"Account3plId":{"type":"integer","nullable":true},"PoId":{"type":"integer","format":"int64","nullable":true},"ItemObj":{"type":"object","additionalProperties":true},"PoNumber":{"type":"string"},"RmaNumber":{"type":"string"}}}}},"required":["poHeader","poLines"]}}},"paths":{"/api/xerp/transferpurchaseorder/import":{"post":{"tags":["Purchase Order Management"],"summary":"Import Transfer Purchase Order","description":"Create or update transferpurchaseorder data in Xorosoft ERP. Send the JSON payload using the field names documented in this operation and in the module export/import format used by Xorosoft ERP.","operationId":"post_transferpurchaseorder_import","responses":{"200":{"description":"Request processed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XoroApiResponse"}}}},"400":{"description":"Invalid request, failed validation, or business rule error.","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid private app credentials."},"403":{"description":"Private app does not have permission for this request."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTransferpurchaseorderImportRequest"}}}}}}}}
```


---

# 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/import-transfer-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.
