Kintsugi Autofix Dispatcher POST /webhooks/jira
← Events

SUPPORT-14148

No rule

[UPSv2] International Return USA→ITA - Error 121057 "This measurement system is not valid" despite correct IN/LBS UOMs

Event

Source
jira
Type
jira:issue_updated
Received
2026-09-30 09:16:37 UTC
Project / repo
SUPPORT
Actor
Simone Chiesi
Delivery id
6389807473177567392
Internal id
01a0f19a-014f-70e6-99c2-314e86b54ca3

Runs

No rule matched this event. See Rules.

Payload

{
    "timestamp": 1790758776968,
    "webhookEvent": "jira:issue_updated",
    "issue_event_type_name": "issue_updated",
    "user": {
        "self": "https://shippypro.atlassian.net/rest/api/2/user?accountId=60c72194d5dde80071c80ff6",
        "accountId": "60c72194d5dde80071c80ff6",
        "avatarUrls": {
            "48x48": "https://secure.gravatar.com/avatar/8cc17d856924d60a7484de3877a46ef4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FSC-5.png",
            "24x24": "https://secure.gravatar.com/avatar/8cc17d856924d60a7484de3877a46ef4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FSC-5.png",
            "16x16": "https://secure.gravatar.com/avatar/8cc17d856924d60a7484de3877a46ef4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FSC-5.png",
            "32x32": "https://secure.gravatar.com/avatar/8cc17d856924d60a7484de3877a46ef4?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FSC-5.png"
        },
        "displayName": "Simone Chiesi",
        "active": true,
        "timeZone": "Europe/Rome",
        "accountType": "atlassian"
    },
    "issue": {
        "id": "117070",
        "self": "https://shippypro.atlassian.net/rest/api/2/issue/117070",
        "key": "SUPPORT-14148",
        "fields": {
            "statuscategorychangedate": "2026-09-29T15:08:06.891+0200",
            "customfield_10070": null,
            "fixVersions": [],
            "customfield_10077": null,
            "statusCategory": {
                "self": "https://shippypro.atlassian.net/rest/api/2/statuscategory/4",
                "id": 4,
                "key": "indeterminate",
                "colorName": "yellow",
                "name": "In Progress"
            },
            "customfield_10078": null,
            "resolution": null,
            "customfield_10079": null,
            "customfield_10104": null,
            "customfield_10105": null,
            "customfield_10106": null,
            "customfield_10107": null,
            "customfield_10108": null,
            "customfield_10507": null,
            "lastViewed": "2026-09-30T10:59:34.597+0200",
            "customfield_10064": 1,
            "customfield_10065": {
                "self": "https://shippypro.atlassian.net/rest/api/2/customFieldOption/10393",
                "value": "N/A",
                "id": "10393"
            },
            "customfield_10066": {
                "self": "https://shippypro.atlassian.net/rest/api/2/customFieldOption/10392",
                "value": "N/A",
                "id": "10392"
            },
            "priority": {
                "self": "https://shippypro.atlassian.net/rest/api/2/priority/3",
                "iconUrl": "https://shippypro.atlassian.net/images/icons/priorities/medium_new.svg",
                "name": "Medium",
                "id": "3"
            },
            "customfield_10067": null,
            "labels": [
                "Kintsugi-Autofix"
            ],
            "customfield_10103": null,
            "timeestimate": null,
            "versions": [],
            "issuelinks": [],
            "assignee": {
                "self": "https://shippypro.atlassian.net/rest/api/2/user?accountId=62c3effb159944bf76884542",
                "accountId": "62c3effb159944bf76884542",
                "avatarUrls": {
                    "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/62c3effb159944bf76884542/6fe3cb51-0299-44d7-baf3-113a0e642445/48",
                    "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/62c3effb159944bf76884542/6fe3cb51-0299-44d7-baf3-113a0e642445/24",
                    "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/62c3effb159944bf76884542/6fe3cb51-0299-44d7-baf3-113a0e642445/16",
                    "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/62c3effb159944bf76884542/6fe3cb51-0299-44d7-baf3-113a0e642445/32"
                },
                "displayName": "Riccardo Lo Faro",
                "active": true,
                "timeZone": "Europe/Rome",
                "accountType": "atlassian"
            },
            "status": {
                "self": "https://shippypro.atlassian.net/rest/api/2/status/3",
                "description": "This issue is being actively worked on at the moment by the assignee.",
                "iconUrl": "https://shippypro.atlassian.net/images/icons/statuses/inprogress.png",
                "name": "In Progress",
                "id": "3",
                "statusCategory": {
                    "self": "https://shippypro.atlassian.net/rest/api/2/statuscategory/4",
                    "id": 4,
                    "key": "indeterminate",
                    "colorName": "yellow",
                    "name": "In Progress"
                }
            },
            "components": [
                {
                    "self": "https://shippypro.atlassian.net/rest/api/2/component/10033",
                    "id": "10033",
                    "name": "Carrier",
                    "description": "Whenever an issue lies on an integration made with a carrier"
                }
            ],
            "customfield_10171": null,
            "customfield_10573": null,
            "customfield_10204": null,
            "creator": {
                "self": "https://shippypro.atlassian.net/rest/api/2/user?accountId=6246c9d44fe01d006ba77e7a",
                "accountId": "6246c9d44fe01d006ba77e7a",
                "avatarUrls": {
                    "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/48",
                    "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/24",
                    "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/16",
                    "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/32"
                },
                "displayName": "Beatrice stara",
                "active": true,
                "timeZone": "Europe/Rome",
                "accountType": "atlassian"
            },
            "customfield_10160": null,
            "customfield_10040": null,
            "customfield_10041": null,
            "customfield_10042": null,
            "customfield_10043": null,
            "reporter": {
                "self": "https://shippypro.atlassian.net/rest/api/2/user?accountId=6246c9d44fe01d006ba77e7a",
                "accountId": "6246c9d44fe01d006ba77e7a",
                "avatarUrls": {
                    "48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/48",
                    "24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/24",
                    "16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/16",
                    "32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/6246c9d44fe01d006ba77e7a/6aef6990-dacd-4838-9c34-180656790749/32"
                },
                "displayName": "Beatrice stara",
                "active": true,
                "timeZone": "Europe/Rome",
                "accountType": "atlassian"
            },
            "customfield_10044": null,
            "customfield_10165": null,
            "customfield_10166": null,
            "customfield_10045": null,
            "customfield_10038": null,
            "customfield_10039": [],
            "customfield_10436": null,
            "customfield_10437": null,
            "customfield_10438": null,
            "customfield_10439": null,
            "progress": {
                "progress": 0,
                "total": 0
            },
            "votes": {
                "self": "https://shippypro.atlassian.net/rest/api/2/issue/SUPPORT-14148/votes",
                "votes": 0,
                "hasVoted": false
            },
            "issuetype": {
                "self": "https://shippypro.atlassian.net/rest/api/2/issuetype/10004",
                "id": "10004",
                "description": "A problem or error.",
                "iconUrl": "https://shippypro.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium",
                "name": "Bug",
                "subtask": false,
                "avatarId": 10303,
                "hierarchyLevel": 0
            },
            "timespent": null,
            "customfield_10030": null,
            "customfield_10151": null,
            "project": {
                "self": "https://shippypro.atlassian.net/rest/api/2/project/10013",
                "id": "10013",
                "key": "SUPPORT",
                "name": "Support",
                "projectTypeKey": "software",
                "simplified": false,
                "avatarUrls": {
                    "48x48": "https://shippypro.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10424",
                    "24x24": "https://shippypro.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10424?size=small",
                    "16x16": "https://shippypro.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10424?size=xsmall",
                    "32x32": "https://shippypro.atlassian.net/rest/api/2/universal_avatar/view/type/project/avatar/10424?size=medium"
                }
            },
            "customfield_10152": null,
            "customfield_10032": null,
            "customfield_10033": null,
            "customfield_10034": null,
            "customfield_10155": null,
            "customfield_10035": null,
            "customfield_10036": null,
            "customfield_10037": null,
            "customfield_10029": null,
            "resolutiondate": null,
            "workratio": -1,
            "watches": {
                "self": "https://shippypro.atlassian.net/rest/api/2/issue/SUPPORT-14148/watchers",
                "watchCount": 2,
                "isWatching": false
            },
            "created": "2026-09-29T15:07:45.396+0200",
            "customfield_10020": null,
            "customfield_10021": null,
            "customfield_10022": null,
            "customfield_10540": null,
            "customfield_10023": null,
            "customfield_10024": "2026-09-29T15:08:04.425+0200",
            "customfield_10025": null,
            "customfield_10016": null,
            "customfield_10017": null,
            "customfield_10019": "0|i08z1j:",
            "updated": "2026-09-30T10:59:36.968+0200",
            "customfield_10093": null,
            "customfield_10094": 0,
            "timeoriginalestimate": null,
            "customfield_10095": null,
            "description": "{panel:bgColor=#deebff}\nh4. HubSpot linked tickets:\n\n* [problema ritiri UPS da USA (Ticket ID: 434029220073)|https://app-eu1.hubspot.com/contacts/25285487/ticket/434029220073]\n\n~_(please, do not edit or duplicate in description)_~\n{panel}\n\nCustomer Giulio Peri (Maxicarbon UID 7561 - [[email protected]|mailto:[email protected]]) is unable to create a UPSv2 return label for a shipment from *USA → Italy* (order 2409262).\n\n*Steps already taken:*\n\n* ✅ LaunchDarkly flag upsv2-use-shipfrom-for-uoms was incorrectly serving *\"Use UOMs from Shipper\"* for this account → a specific rule was added for [[email protected]|mailto:[email protected]] to serve *\"Enable UOMs from ShipFrom\"*\n* ✅ After the fix, the customer can now select the UPS service and see rates\n* ✅ Confirmed that the flag is active and the request is correctly sending *IN/LBS* to UPS\n\n*Current behavior:* UPS returns error *121057* on /shipments/v2205/ship:\n\n{quote}_\"This measurement system is not valid for the selected country or territory.\"_{quote}\n\n*Expected behavior:* Return label should be created successfully for the USA → Italy route.\n\n----\n\n*Log Reference:*\n\n* *Process mark:* 2869396006\n* *Timestamp:* 2026-09-25T15:02:13\n* *Endpoint:* [https://onlinetools.ups.com/api/shipments/v2205/ship|https://onlinetools.ups.com/api/shipments/v2205/ship]\n* *user_id:* 7561\n* *connector_id:* 6477\n* *http_code:* 400\n\n*Request (relevant excerpt):*\n\n{noformat}\"Service\": { \"Code\": \"65\" },\n\"ReturnService\": { \"Code\": \"9\" },\n\"Dimensions\": { \"UnitOfMeasurement\": { \"Code\": \"IN\" }, \"Length\": \"24\", \"Width\": \"24\", \"Height\": \"18\" },\n\"PackageWeight\": { \"UnitOfMeasurement\": { \"Code\": \"LBS\" }, \"Weight\": \"1\" },\n\"InternationalForms\": {\n  \"Unit\": { \"UnitOfMeasurement\": { \"Code\": \"LBS\" } }\n}\n{noformat}\n\n*Response:*\n\n{code:json}{\n  \"errors\": [{\n    \"code\": \"121057\",\n    \"message\": \"This measurement system is not valid for the selected country or territory.\"\n  }]\n}\n{code}\n\n----\n\n*Hypotheses to investigate:*\n\n# *Service Code 65 + ReturnService Code 9* may not be supported for international return route USA → Italy — UPS may reject this combination for this specific lane\n# UPS may require *CM/KGS* specifically within the InternationalForms section, regardless of ShipFrom country\n\n*Acceptance Criteria:*\n\n* Root cause of error 121057 identified\n* Return label can be created successfully for USA → Italy route via UPSv2\n* Fix verified on account [[email protected]|mailto:[email protected]], order 2409262\n* Assess if fix needs to be generalized for all international UPSv2 returns with ShipFrom USA/CA\n\n[https://app-eu1.hubspot.com/help-desk/25285487/view/248647149/ticket/434029220073/thread/21867659466#email|https://app-eu1.hubspot.com/help-desk/25285487/view/248647149/ticket/434029220073/thread/21867659466#email]",
            "customfield_10010": null,
            "customfield_10132": null,
            "customfield_10099": null,
            "customfield_10133": null,
            "customfield_10134": null,
            "customfield_10014": null,
            "customfield_10135": null,
            "timetracking": [],
            "customfield_10136": null,
            "customfield_10015": null,
            "customfield_10007": null,
            "security": null,
            "customfield_10008": null,
            "attachment": [],
            "customfield_10009": null,
            "summary": "[UPSv2] International Return USA→ITA - Error 121057 \"This measurement system is not valid\" despite correct IN/LBS UOMs",
            "customfield_10000": "{}",
            "customfield_10001": null,
            "customfield_10002": [],
            "customfield_10003": null,
            "customfield_10004": null,
            "environment": null,
            "duedate": null
        }
    },
    "changelog": {
        "id": "527883",
        "items": [
            {
                "field": "labels",
                "fieldtype": "jira",
                "fieldId": "labels",
                "from": null,
                "fromString": null,
                "to": null,
                "toString": "Kintsugi-Autofix"
            }
        ]
    }
}