Class FedExRegistrationService

java.lang.Object
com.easypost.service.FedExRegistrationService

public class FedExRegistrationService extends Object
  • Method Details

    • registerAddress

      public FedExAccountValidationResponse registerAddress(String fedexAccountNumber, Map<String,Object> params) throws EasyPostException
      Register the billing address for a FedEx account. Advanced method for custom parameter structures.
      Parameters:
      fedexAccountNumber - The FedEx account number.
      params - Map of parameters.
      Returns:
      FedExAccountValidationResponse object with next steps (PIN or invoice validation).
      Throws:
      EasyPostException - when the request fails.
    • requestPin

      public FedExRequestPinResponse requestPin(String fedexAccountNumber, String pinMethodOption) throws EasyPostException
      Request a PIN for FedEx account verification.
      Parameters:
      fedexAccountNumber - The FedEx account number.
      pinMethodOption - The PIN delivery method: "SMS", "CALL", or "EMAIL".
      Returns:
      FedExRequestPinResponse object confirming PIN was sent.
      Throws:
      EasyPostException - when the request fails.
    • validatePin

      public FedExAccountValidationResponse validatePin(String fedexAccountNumber, Map<String,Object> params) throws EasyPostException
      Validate the PIN entered by the user for FedEx account verification.
      Parameters:
      fedexAccountNumber - The FedEx account number.
      params - Map of parameters.
      Returns:
      FedExAccountValidationResponse object.
      Throws:
      EasyPostException - when the request fails.
    • submitInvoice

      public FedExAccountValidationResponse submitInvoice(String fedexAccountNumber, Map<String,Object> params) throws EasyPostException
      Submit invoice information to complete FedEx account registration.
      Parameters:
      fedexAccountNumber - The FedEx account number.
      params - Map of parameters.
      Returns:
      FedExAccountValidationResponse object.
      Throws:
      EasyPostException - when the request fails.