FedEx: Combined Commercial Invoice + USMCA Certification of Origin, with optional signature image #860
minchaminder
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Related to #859
We need to generate a Commercial Invoice together with a USMCA/CUSMA Certification of Origin via FedEx. FedEx supports stamping a signature image on these docs, but it should be optional. If no signature is provided, FedEx should still generate valid unsigned documents.
What we send to FedEx (high level)
customsClearanceDetail.regulatoryControlsincludesUSMCA.usmcaDetail.originCriterion.shippingDocumentSpecification.shippingDocumentTypesincludesUSMCA_COMMERCIAL_INVOICE_CERTIFICATION_OF_ORIGIN.usmcaCommercialInvoiceCertificationOfOriginDetailwith certifier/producer details and document format.shipmentSpecialServices.etdDetail.requestedDocumentTypesincludesUSMCA_COMMERCIAL_INVOICE_CERTIFICATION_OF_ORIGIN.Signature handling: optional
If a signature image is uploaded, reference it via
customerImageUsages. If not uploaded, omitcustomerImageUsagesentirely. FedEx will generate the docs without a signature.1) Uploading the signature image (Document API)
This is the upload we use:
Endpoint:
POST https://documentapi.prod.fedex.com/documents/v1/lhsimages/uploadAuth: OAuth2
Headers:
x-customer-transaction-id: 12345Body: multipart form-data with:
document: JSON describing the image and where it will be referenced laterattachment: the actual image fileExample
Expected success response includes:
{ "output": { "meta": { "imageType": "SIGNATURE", "imageIndex": "IMAGE_1" }, "documentReferenceId": "1234", "status": "SUCCESS" }, "customerTransactionId": "12345" }Key notes:
imageIndexvalue (e.g.,IMAGE_1) incustomerImageUsages.documentReferenceIdconfirms storage; we do not place it in the CI/CO request body for stamping. FedEx samples show usingcustomerImageUsageswith theidmatching theimageIndex.2) Using the signature on USMCA CO and/or CI (optional block)
Only include this if the upload has succeeded and you have the
imageIndex(for exampleIMAGE_1). If no signature, omit this array.With signature:
Without signature:
If we also want the signature stamped on the plain Commercial Invoice, we add the same
customerImageUsagesarray toshippingDocumentSpecification.commercialInvoiceDetail.Proposal for karrio
Add a way to request combined CI + USMCA CO in the FedEx mapper:
include_usmca_co: true.signature_image_id(string, e.g.,IMAGE_1). If provided, injectscustomerImageUsagesfor both the USMCA CO and CI docs. If omitted, no signature block is added.Validate that when
include_usmca_co: true:customsClearanceDetail.regulatoryControlscontainsUSMCA.usmcaDetail.originCriterion.requestedDocumentTypesincludesUSMCA_COMMERCIAL_INVOICE_CERTIFICATION_OF_ORIGIN.Leave monetary and date fields untouched by this logic.
Questions
signature_image_id? Shipment options vs document options?customerImageUsagesentirely when no signature is present?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions