Skip to content

Add UPS Paperless Document API support - #2

Merged
mustafayuce33 merged 2 commits into
ups-oauthfrom
feature/attach-invoice-to-shipment
Jul 27, 2026
Merged

Add UPS Paperless Document API support#2
mustafayuce33 merged 2 commits into
ups-oauthfrom
feature/attach-invoice-to-shipment

Conversation

@mustafayuce33

Copy link
Copy Markdown
  • Connection#paperless_document_upload uploads a document (e.g. commercial invoice) to the Paperless Document API and returns the Forms History DocumentID; get_response now accepts extra headers (ShipperNumber).
  • PaperlessDocumentBuilder builds the UploadRequest (base64 file, doc type).
  • PaperlessDocumentParser extracts the returned DocumentID.
  • InternationalInvoiceBuilder supports FormType override and a UserCreatedForm.DocumentID (attach an uploaded invoice), and only emits FreightCharges/Discount when provided.

mustafayuce33 and others added 2 commits July 17, 2026 16:35
- Connection#paperless_document_upload uploads a document (e.g. commercial
  invoice) to the Paperless Document API and returns the Forms History
  DocumentID; get_response now accepts extra headers (ShipperNumber).
- PaperlessDocumentBuilder builds the UploadRequest (base64 file, doc type).
- PaperlessDocumentParser extracts the returned DocumentID.
- InternationalInvoiceBuilder supports FormType override and a
  UserCreatedForm.DocumentID (attach an uploaded invoice), and only emits
  FreightCharges/Discount when provided.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
PaperlessDocumentParser now returns document_ids (the full array from
FormsHistoryDocumentID.DocumentID) so multi-document uploads (e.g. commercial
invoice + HS-codes sheet) can attach every returned id. document_id keeps
returning the first for single-file callers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mustafayuce33
mustafayuce33 merged commit fcafa0e into ups-oauth Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant