FedEx - Label Return label International

Carrier
FedEx
Action
Label Return label International
{
  "params": {
    "return_reason": "REJECTED",
    "packages": [
      {
        "weight": 4,
        "length": 40,
        "width": 4,
        "height": 4,
        "reference_code": "P_O_NUMBER",
        "reference_value": "12345",
        "reference_code2": "INVOICE_NUMBER",
        "reference_value2": "56789",
        "insured_value": 29.99,
        "insured_currency": "USD"
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 29.99,
        "country_of_manufacture": "CA",
        "customs_weight": 4,
        "customs_description": "Acme Product",
        "customs_hs_tariff": "9506.31.00.10"
      }
    ],
    "test": true,
    "weight_unit": "LBS",
    "length_unit": "IN",
    "packaging_type": "02",
    "negotiated_rates": true,
    "saturday_delivery": false,
    "shipper": "Acme Inc",
    "ship_name": "Acme Inc",
    "ship_addr1": "9500 Meilleur",
    "ship_city": "Montreal",
    "ship_state": "QC",
    "ship_code": "H2N2B7",
    "ship_country": "CA",
    "ship_phone": "1-888-123-1234",
    "to_attention_name": "FedEx Services",
    "to_name": "FedEx Services",
    "to_addr1": "10 FedEx Parkway",
    "to_addr2": "2nd Floor Horizontal",
    "to_city": "Collierville",
    "to_state": "TN",
    "to_code": "38017",
    "to_country": "US",
    "to_phone": "1-888-123-1234",
    "service": "INTERNATIONAL_ECONOMY",
    "currency": "USD",
    "invoice": "372348",
    "invoice_date": "20200519",
    "invoice_line_total": 29.99,
    "image_type": "ZPL",
    "return_code": "PRINT_RETURN_LABEL",
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "paperless_customs": false,
    "customs_value": 29.99,
    "billing": [
      {
        "type": "transportation",
        "payment_type": "SENDER"
      },
      {
        "type": "duties",
        "payment_type": "SENDER"
      }
    ],
    "customs_account_number": "1234567",
    "sold_name": "FedEx Services",
    "sold_company": "FedEx Services",
    "sold_addr1": "10 FedEx Parkway",
    "sold_addr2": "2nd Floor Horizontal",
    "sold_city": "Collierville",
    "sold_state": "TN",
    "sold_code": "38017",
    "sold_country": "US",
    "sold_phone": "18889085994"
  },
  "carrier": "FedEx",
  "action": "submitshipment"
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'params' => 
  array (
    'return_reason' => 'REJECTED',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 4,
        'length' => 40,
        'width' => 4,
        'height' => 4,
        'reference_code' => 'P_O_NUMBER',
        'reference_value' => '12345',
        'reference_code2' => 'INVOICE_NUMBER',
        'reference_value2' => '56789',
        'insured_value' => 29.99,
        'insured_currency' => 'USD',
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'customs_quantity_units' => 'EA',
        'customs_quantity' => 1,
        'customs_line_amount' => 29.99,
        'country_of_manufacture' => 'CA',
        'customs_weight' => 4,
        'customs_description' => 'Acme Product',
        'customs_hs_tariff' => '9506.31.00.10',
      ),
    ),
    'test' => true,
    'weight_unit' => 'LBS',
    'length_unit' => 'IN',
    'packaging_type' => '02',
    'negotiated_rates' => true,
    'saturday_delivery' => false,
    'shipper' => 'Acme Inc',
    'ship_name' => 'Acme Inc',
    'ship_addr1' => '9500 Meilleur',
    'ship_city' => 'Montreal',
    'ship_state' => 'QC',
    'ship_code' => 'H2N2B7',
    'ship_country' => 'CA',
    'ship_phone' => '1-888-123-1234',
    'to_attention_name' => 'FedEx Services',
    'to_name' => 'FedEx Services',
    'to_addr1' => '10 FedEx Parkway',
    'to_addr2' => '2nd Floor Horizontal',
    'to_city' => 'Collierville',
    'to_state' => 'TN',
    'to_code' => '38017',
    'to_country' => 'US',
    'to_phone' => '1-888-123-1234',
    'service' => 'INTERNATIONAL_ECONOMY',
    'currency' => 'USD',
    'invoice' => '372348',
    'invoice_date' => '20200519',
    'invoice_line_total' => 29.99,
    'image_type' => 'ZPL',
    'return_code' => 'PRINT_RETURN_LABEL',
    'generate_docs' => 
    array (
      0 => 'COMMERCIAL_INVOICE',
    ),
    'paperless_customs' => false,
    'customs_value' => 29.99,
    'billing' => 
    array (
      0 => 
      array (
        'type' => 'transportation',
        'payment_type' => 'SENDER',
      ),
      1 => 
      array (
        'type' => 'duties',
        'payment_type' => 'SENDER',
      ),
    ),
    'customs_account_number' => '1234567',
    'sold_name' => 'FedEx Services',
    'sold_company' => 'FedEx Services',
    'sold_addr1' => '10 FedEx Parkway',
    'sold_addr2' => '2nd Floor Horizontal',
    'sold_city' => 'Collierville',
    'sold_state' => 'TN',
    'sold_code' => '38017',
    'sold_country' => 'US',
    'sold_phone' => '18889085994',
  ),
  'carrier' => 'FedEx',
  'action' => 'submitshipment',
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'FedEx',
 'params': {'billing': [{'payment_type': 'SENDER', 'type': 'transportation'},
                        {'payment_type': 'SENDER', 'type': 'duties'}],
            'currency': 'USD',
            'customs': [{'country_of_manufacture': 'CA',
                         'customs_description': 'Acme Product',
                         'customs_hs_tariff': '9506.31.00.10',
                         'customs_line_amount': 29.99,
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 4}],
            'customs_account_number': '1234567',
            'customs_value': 29.99,
            'generate_docs': ['COMMERCIAL_INVOICE'],
            'image_type': 'ZPL',
            'invoice': '372348',
            'invoice_date': '20200519',
            'invoice_line_total': 29.99,
            'length_unit': 'IN',
            'negotiated_rates': True,
            'packages': [{'height': 4,
                          'insured_currency': 'USD',
                          'insured_value': 29.99,
                          'length': 40,
                          'reference_code': 'P_O_NUMBER',
                          'reference_code2': 'INVOICE_NUMBER',
                          'reference_value': '12345',
                          'reference_value2': '56789',
                          'weight': 4,
                          'width': 4}],
            'packaging_type': '02',
            'paperless_customs': False,
            'return_code': 'PRINT_RETURN_LABEL',
            'return_reason': 'REJECTED',
            'saturday_delivery': False,
            'service': 'INTERNATIONAL_ECONOMY',
            'ship_addr1': '9500 Meilleur',
            'ship_city': 'Montreal',
            'ship_code': 'H2N2B7',
            'ship_country': 'CA',
            'ship_name': 'Acme Inc',
            'ship_phone': '1-888-123-1234',
            'ship_state': 'QC',
            'shipper': 'Acme Inc',
            'sold_addr1': '10 FedEx Parkway',
            'sold_addr2': '2nd Floor Horizontal',
            'sold_city': 'Collierville',
            'sold_code': '38017',
            'sold_company': 'FedEx Services',
            'sold_country': 'US',
            'sold_name': 'FedEx Services',
            'sold_phone': '18889085994',
            'sold_state': 'TN',
            'test': True,
            'to_addr1': '10 FedEx Parkway',
            'to_addr2': '2nd Floor Horizontal',
            'to_attention_name': 'FedEx Services',
            'to_city': 'Collierville',
            'to_code': '38017',
            'to_country': 'US',
            'to_name': 'FedEx Services',
            'to_phone': '1-888-123-1234',
            'to_state': 'TN',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"params"=>
  {"return_reason"=>"REJECTED",
   "packages"=>
    [{"weight"=>4,
      "length"=>40,
      "width"=>4,
      "height"=>4,
      "reference_code"=>"P_O_NUMBER",
      "reference_value"=>"12345",
      "reference_code2"=>"INVOICE_NUMBER",
      "reference_value2"=>"56789",
      "insured_value"=>29.99,
      "insured_currency"=>"USD"}],
   "customs"=>
    [{"customs_quantity_units"=>"EA",
      "customs_quantity"=>1,
      "customs_line_amount"=>29.99,
      "country_of_manufacture"=>"CA",
      "customs_weight"=>4,
      "customs_description"=>"Acme Product",
      "customs_hs_tariff"=>"9506.31.00.10"}],
   "test"=>true,
   "weight_unit"=>"LBS",
   "length_unit"=>"IN",
   "packaging_type"=>"02",
   "negotiated_rates"=>true,
   "saturday_delivery"=>false,
   "shipper"=>"Acme Inc",
   "ship_name"=>"Acme Inc",
   "ship_addr1"=>"9500 Meilleur",
   "ship_city"=>"Montreal",
   "ship_state"=>"QC",
   "ship_code"=>"H2N2B7",
   "ship_country"=>"CA",
   "ship_phone"=>"1-888-123-1234",
   "to_attention_name"=>"FedEx Services",
   "to_name"=>"FedEx Services",
   "to_addr1"=>"10 FedEx Parkway",
   "to_addr2"=>"2nd Floor Horizontal",
   "to_city"=>"Collierville",
   "to_state"=>"TN",
   "to_code"=>"38017",
   "to_country"=>"US",
   "to_phone"=>"1-888-123-1234",
   "service"=>"INTERNATIONAL_ECONOMY",
   "currency"=>"USD",
   "invoice"=>"372348",
   "invoice_date"=>"20200519",
   "invoice_line_total"=>29.99,
   "image_type"=>"ZPL",
   "return_code"=>"PRINT_RETURN_LABEL",
   "generate_docs"=>["COMMERCIAL_INVOICE"],
   "paperless_customs"=>false,
   "customs_value"=>29.99,
   "billing"=>
    [{"type"=>"transportation", "payment_type"=>"SENDER"},
     {"type"=>"duties", "payment_type"=>"SENDER"}],
   "customs_account_number"=>"1234567",
   "sold_name"=>"FedEx Services",
   "sold_company"=>"FedEx Services",
   "sold_addr1"=>"10 FedEx Parkway",
   "sold_addr2"=>"2nd Floor Horizontal",
   "sold_city"=>"Collierville",
   "sold_state"=>"TN",
   "sold_code"=>"38017",
   "sold_country"=>"US",
   "sold_phone"=>"18889085994"},
 "carrier"=>"FedEx",
 "action"=>"submitshipment"}

)

rocketshipit.request(
  {
  "params": {
    "return_reason": "REJECTED",
    "packages": [
      {
        "weight": 4,
        "length": 40,
        "width": 4,
        "height": 4,
        "reference_code": "P_O_NUMBER",
        "reference_value": "12345",
        "reference_code2": "INVOICE_NUMBER",
        "reference_value2": "56789",
        "insured_value": 29.99,
        "insured_currency": "USD"
      }
    ],
    "customs": [
      {
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_line_amount": 29.99,
        "country_of_manufacture": "CA",
        "customs_weight": 4,
        "customs_description": "Acme Product",
        "customs_hs_tariff": "9506.31.00.10"
      }
    ],
    "test": true,
    "weight_unit": "LBS",
    "length_unit": "IN",
    "packaging_type": "02",
    "negotiated_rates": true,
    "saturday_delivery": false,
    "shipper": "Acme Inc",
    "ship_name": "Acme Inc",
    "ship_addr1": "9500 Meilleur",
    "ship_city": "Montreal",
    "ship_state": "QC",
    "ship_code": "H2N2B7",
    "ship_country": "CA",
    "ship_phone": "1-888-123-1234",
    "to_attention_name": "FedEx Services",
    "to_name": "FedEx Services",
    "to_addr1": "10 FedEx Parkway",
    "to_addr2": "2nd Floor Horizontal",
    "to_city": "Collierville",
    "to_state": "TN",
    "to_code": "38017",
    "to_country": "US",
    "to_phone": "1-888-123-1234",
    "service": "INTERNATIONAL_ECONOMY",
    "currency": "USD",
    "invoice": "372348",
    "invoice_date": "20200519",
    "invoice_line_total": 29.99,
    "image_type": "ZPL",
    "return_code": "PRINT_RETURN_LABEL",
    "generate_docs": [
      "COMMERCIAL_INVOICE"
    ],
    "paperless_customs": false,
    "customs_value": 29.99,
    "billing": [
      {
        "type": "transportation",
        "payment_type": "SENDER"
      },
      {
        "type": "duties",
        "payment_type": "SENDER"
      }
    ],
    "customs_account_number": "1234567",
    "sold_name": "FedEx Services",
    "sold_company": "FedEx Services",
    "sold_addr1": "10 FedEx Parkway",
    "sold_addr2": "2nd Floor Horizontal",
    "sold_city": "Collierville",
    "sold_state": "TN",
    "sold_code": "38017",
    "sold_country": "US",
    "sold_phone": "18889085994"
  },
  "carrier": "FedEx",
  "action": "submitshipment"
}
)

← All FedEx examples