■■@後納差出票の作成開始 (shipmentConsolidationCreate) ●リクエスト(例) mutation { shipmentConsolidationCreate( input: { carrierCode: JAPAN_POST accountNumber: "1111111111-222222-3333333333-444444" name: "Tokyo dispatch ? 2026-06-12-001" } ) { id status accountNumber carrierCode } } ■A配送ラベルの作成 (CreateDeclarationShipment) ●リクエスト(例) mutation CreateDeclarationShipment( $partyInput: [PartyCreateWorkflowInput!]! $itemInput: [ItemCreateWorkflowInput!]! $cartonInput: [CartonCreateWorkflowInput!]! $shipmentRatingInput: ShipmentRatingCreateWorkflowInput! $landedCostInput: LandedCostWorkFlowInput! $shipmentInput: ShipmentCreateWorkflowInput! ) { partyCreateWorkflow(input: $partyInput) { id type location { line1 locality postalCode countryCode } } itemCreateWorkflow(input: $itemInput) { id name sku amount currencyCode hsCode } cartonsCreateWorkflow(input: $cartonInput) { id length width height dimensionalUnit weight weightUnit } shipmentRatingCreateWorkflow(input: $shipmentRatingInput) { id amount } landedCostCalculateWorkflow(input: $landedCostInput) { id method currencyCode amountSubtotals { duties taxes fees shipping landedCostTotal } } shipmentCreateWorkflow(input: $shipmentInput) { id trackingDetails { number } shipmentCartons { label { url } } } } ●変数(例) { "partyInput": [ { "location": { "countryCode": "JP", "line1": "#203 Yubin-building", "line2": "3-2 Kasumigaseki 1-Chome", "locality": "Chiyoda-ku", "administrativeAreaCode": "Tokyo", "postalCode": "123-4567" }, "person": { "firstName": "Taro", "lastName": "Yubin", "companyName": "Japan Post Co.ltd", "email": "taro@yubin.jp", "phone": "+81-3-1234-5678" }, "type": "ORIGIN" }, { "location": { "countryCode": "US", "line1": "#123 Central Apartment", "line2": "25-15 M.G. Peterson Ave, Long Island City", "locality": "New York", "administrativeAreaCode": "NY", "postalCode": "12345" }, "person": { "firstName": "Hanako", "lastName": "Yubin", "email": "hanako@yubin.jp", "phone": "+1-123-456-789" }, "type": "DESTINATION" } ], "itemInput": [ { "amount": 9000, "currencyCode": "JPY", "name": "Cotton T-shirt", "description": "Cotton T-shirt", "productId": "item_1", "hsCode": "6109.10", "sku": "item_1", "countryOfOrigin": "JP", "measurements": [ { "type": "WEIGHT", "unitOfMeasure": "KILOGRAM", "value": 0.25 } ], "quantity": 4 } ], "cartonInput": [ { "length": 30, "width": 20, "height": 10, "dimensionalUnit": "CENTIMETER", "weight": 1.3, "weightUnit": "KILOGRAM" } ], "shipmentRatingInput": { "currencyCode": "USD", "amount": 25, "serviceLevelCode": "japan_post.air.parcel" }, "landedCostInput": { "endUse": "NOT_FOR_RESALE", "calculationMethod": "DDP", "currencyCode": "USD" }, "shipmentInput": { "generateLabel": true, "serviceLevel": "japan_post.air.ems_merchandise", "contentsType": "SALE_OF_GOODS", "shipmentConsolidationId": "xxxxx_1234567890", "nonDelivery": { "option": "RETURN_IMMEDIATELY", "transportMethod": "MOST_ECONOMICAL" }, "declaredValue": 30000, "isNonCommercial": false, "references": { "purchaseOrderNumber": "TEST-ORDER-005", "licenseNumber": "LIC 1111", "certificateNumber": "CRT 2222", "invoiceNumber": "INV 3333", "paymentConditions": "PAY 4444", "taxCode": "TAX 5555", "customerReference": "CREF 6666", "customsRemarks": "BIKO 7777" } } } ■B後納差出票の作成終了 (CloseConsolidation) ●リクエスト(例) mutation CloseConsolidation($input: ShipmentConsolidationUpdateInput!) { shipmentConsolidationUpdate(input: $input) { id externalId carrierCode customsDocuments { fileUrl } } } ●変数(例) { "input": { "id": "xxxxx_1234567890", "status": "CLOSED" } }