X12
Inbound

UPS X12 865 Purchase Order Change Acknowledgment/Request

UPS Plus
The EDI 865 (Purchase Order Change Acknowledgment/Request) document is used by UPS for electronic data interchange. It enables automated processing and compliance with UPS's trading partner requirements.
21segments
5loops
5mandatory

Schema Reference

21 segments · X12 865 Purchase Order Change Acknowledgment/Request

ISA ISA Interchange Control Header
Mandatory Max: 1
ISA01 Authorization Information Qualifier
M ID 2-2
ISA02 Authorization Information
M AN 10-10
ISA03 Security Information Qualifier
M ID 2-2
ISA04 Security Information
M AN 10-10
ISA05 Interchange ID Qualifier
M ID 2-2
ISA06 Interchange Sender ID
M AN 15-15
ISA07 Interchange ID Qualifier
M ID 2-2
ISA08 Interchange Receiver ID
M AN 15-15
ISA09 Interchange Date
M DT 6-6
ISA10 Interchange Time
M TM 4-4
ISA11 Interchange Control Standards Identifier
M ID 1-1
ISA12 Interchange Control Version Number
M ID 5-5
ISA13 Interchange Control Number
M N0 9-9
ISA14 Acknowledgment Requested
M ID 1-1
ISA15 Usage Indicator
M ID 1-1
GS GS Functional Group Header
Mandatory Max: 1
GS01 Functional Identifier Code
M ID 2-2
GS02 Application Sender's Code
M AN 2-15
GS03 Application Receiver's Code
M AN 2-15
GS04 Date
M DT 8-8
GS05 Time
M TM 4-8
GS06 Group Control Number
M N0 1-9
GS07 Responsible Agency Code
M ID 1-2
GS08 Version / Release / Industry Identifier Code
M AN 1-12
ST Transaction Set Header
Mandatory Max: 1
ST01 Transaction Set Identifier Code
M ID 3-3
ST02 Transaction Set Control Number
M AN 4-9
BCA Beginning Segment for Purchase Order Change Acknowledgment
Mandatory Max: 1
BCA01 Transaction Set Purpose Code
M ID 2-2
BCA02 Acknowledgment Type
O ID 2-2
BCA03 Purchase Order Number
M AN 1-22
BCA06 Date
M DT 8-8
BCA07 Request Reference Number
O AN 1-45
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
DTM Date/Time Reference
Optional Max: 10
DTM01 Date/Time Qualifier
M ID 3-3
DTM02 Date
C DT 8-8
TD5 Carrier Details (Routing Sequence/Transit Time)
Optional Max: 12
TD502 Identification Code Qualifier
C ID 1-2
TD503 Identification Code
C AN 2-80
TD505 Routing
C AN 1-35
N1 Loop Repeat: 200
N1 Name
Optional Max: 1
N101 Entity Identifier Code
M ID 2-3
N102 Name
C AN 1-60
N103 Identification Code Qualifier
C ID 1-2
N104 Identification Code
C AN 2-80
N2 Additional Name Information
Optional Max: 2
N201 Name
M AN 1-60
N202 Name
O AN 1-60
N3 Address Information
Optional Max: 2
N301 Address Information
M AN 1-55
N302 Address Information
O AN 1-55
N4 Geographic Location
Optional Max: 1
N401 City Name
O AN 2-30
N402 State or Province Code
O ID 2-2
N403 Postal Code
O ID 3-15
N404 Country Code
O ID 2-3
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
PER Administrative Communications Contact
PER01 Contact Function Code
M ID 2-2
PER03 Communication Number Qualifier
C ID 2-2
PER04 Communication Number
C AN 1-80
PER05 Communication Number Qualifier
C ID 2-2
PER06 Communication Number
C AN 1-80
PER07 Communication Number Qualifier
C ID 2-2
PER08 Communication Number
C AN 1-80
POC Loop Repeat: 1,000
POC Line Item Change
Optional Max: 1
POC01 Assigned Identification
O AN 1-20
POC02 Change or Response Type Code
M ID 2-2
POC03 Quantity Ordered
O R 1-15
POC04 Quantity Left to Receive
C R 1-9
LIN Item Identification
LIN01 Assigned Identification
O AN 1-20
LIN02 Product/Service ID Qualifier
M ID 2-2
LIN03 Product/Service ID
M AN 1-48
PID Loop Repeat: 1,000
PID Product/Item Description
Optional Max: 1
PID01 Item Description Type
M ID 1-1
PID05 Description
C AN 1-80
PO4 Item Physical Details
PO405 Weight Qualifier
O ID 1-2
PO406 Gross Weight per Pack
C R 1-9
PO407 Unit or Basis for Measurement Code
C ID 2-2
PO410 Length
C R 1-8
PO411 Width
C R 1-8
PO412 Height
C R 1-8
PO413 Unit or Basis for Measurement Code
C ID 2-2
REF Reference Identification
REF01 Reference Identification Qualifier
M ID 2-3
REF02 Reference Identification
C AN 1-30
REF03 Description
C AN 1-80
ACK Loop Repeat: 104
ACK Line Item Acknowledgment
Optional Max: 1
ACK01 Line Item Status Code
M ID 2-2
ACK02 Quantity
C R 1-15
ACK03 Unit or Basis for Measurement Code
C ID 2-2
N9 Loop Repeat: 1,000
N9 Reference Identification
Optional Max: 1
N901 Reference Identification Qualifier
M ID 2-3
N902 Reference Identification
C AN 1-30
SE Transaction Set Trailer
Mandatory Max: 1
SE01 Number of Included Segments
M N0 1-10
SE02 Transaction Set Control Number
M AN 4-9
How It Works

Automating UPS EDI 865

Stacksync validates, transforms, and delivers your 865 transactions automatically — so your team can focus on operations, not EDI compliance.

Validate
Transform
Route
Monitor
Stacksync processes UPS EDI 865 (Purchase Order Change Acknowledgment/Request) documents automatically — syncing data to your system in real time with no manual intervention required.

UPS EDI 865 FAQ

Common questions about 865 Purchase Order Change Acknowledgment/Request transactions with UPS.

What is a UPS EDI 865 Purchase Order Change Acknowledgment/Request?

The UPS EDI 865 Purchase Order Change Acknowledgment/Request is an X12 transaction set used to exchange Purchase Order Change Acknowledgment/Request data electronically between trading partners. As a inbound document, it standardizes the communication of Purchase Order Change Acknowledgment/Request information between UPS and their suppliers, carriers, or partners. Stacksync processes UPS 865 transactions automatically, parsing the X12 segments and mapping them to the corresponding records in your ERP, WMS, or database. This eliminates manual data entry, reduces errors, and ensures your systems stay in sync with UPS's requirements in real time.

How does Stacksync automate UPS EDI 865 Purchase Order Change Acknowledgment/Request transactions?

Stacksync handles UPS EDI 865 Purchase Order Change Acknowledgment/Request transactions through an automated pipeline: receive the X12 document, validate the envelope and segment structure, map fields to your system's schema, and sync the data in real time. For inbound 865 transactions, Stacksync either generates the document from your system's data or processes incoming documents and routes them to the correct records. The platform includes built-in compliance validation so every UPS 865 document meets their specific formatting requirements before transmission or after receipt.

What are common UPS EDI 865 errors and how do I fix them?

Common errors in UPS EDI 865 Purchase Order Change Acknowledgment/Request transactions include missing mandatory segments, invalid qualifier codes, incorrect date or time formats, and data values exceeding maximum field lengths. Reference number mismatches between related documents (e.g., PO numbers that don't match) also cause rejections. Stacksync validates UPS 865 documents against known requirements before transmission and after receipt, catching errors proactively. When issues occur, the platform provides human-readable error descriptions with the specific segment and element that failed, rather than raw X12 error codes.

How long does it take to set up UPS EDI 865 with Stacksync?

Most UPS EDI 865 Purchase Order Change Acknowledgment/Request integrations with Stacksync go live within 3 to 5 business days. The setup involves authenticating your EDI connection (AS2, SFTP, or VAN), configuring field mappings between UPS's 865 format and your system, running test transactions, and completing UPS's certification process if required. Stacksync includes pre-built mappings for UPS's most common 865 configurations, which accelerates the setup. Your team can monitor the integration from a single dashboard without managing EDI infrastructure directly.

Can I customize UPS EDI 865 field mappings in Stacksync?

Yes. Stacksync provides a visual field mapping tool that lets you define exactly how UPS EDI 865 segments and elements map to your system's fields. You can set data transformations (date format conversion, code translation tables), conditional routing rules, and default values for optional fields. The mappings are version-controlled, so changes can be reviewed and rolled back if needed. If UPS updates their 865 specification, Stacksync highlights the affected mappings and suggests adjustments, ensuring your integration stays compliant without a full reconfiguration.

Ready to automate UPS EDI?

a blue checkmark icon
POC from integration engineers
a blue checkmark icon
No-code EDI setup
a blue checkmark icon
Real-time compliance monitoring
a blue checkmark icon
White-glove onboarding