# Set a ship from address

Use only when the address is not to be saved/reused. To use a saved address (i.e. from the Addresses resource), PATCH the shipment's FromAddressID property instead.

Endpoint: PUT /shipments/{shipmentID}/shipfrom
Version: 1.0.457.36910
Security: OAuth2

## Security:

  - `OAuth2` (unknown)
    oauth2 scopes: FullAccess, ShipmentAdmin

## Path parameters:

  - `shipmentID` (string, required)
    ID of the shipment.

## Request fields (application/json):

  - `ID` (string)

  - `CompanyName` (string)

  - `FirstName` (string)

  - `LastName` (string)

  - `Street1` (string)

  - `Street2` (string)

  - `City` (string)

  - `State` (string)

  - `Zip` (string)

  - `Country` (string)

  - `Phone` (string)

  - `AddressName` (string)

  - `xp` (object)

## Response 200:

  - `200` (unknown)
    Use only when the address is not to be saved/reused. To use a saved address (i.e. from the Addresses resource), PATCH the shipment's FromAddressID property instead.

## Response 200 fields (application/json):

  - `ID` (string)

  - `BuyerID` (string)

  - `Shipper` (string)
    For reference only, does not influence any OrderCloud behavior.

  - `DateShipped` (string)
    In order to properly trigger OrderShipped emails, this date must be NULL on initial create. Update with the date only when all of the Shipment items have been created. Once all of an order's items exist on a shipment that has a DateShipped populated the OrderShipped message sender will trigger and Order.Status will be updated to Complete.

  - `DateDelivered` (string)

  - `TrackingNumber` (string)

  - `Cost` (number)
    For reference only, does not influence any OrderCloud behavior.

  - `OwnerID` (string)
    ID of the organization that owns the shipment. Only the marketplace owner can override the OwnerID on create.

  - `xp` (object)

  - `Account` (string)

  - `FromAddressID` (string)
    Marketplace owner or supplier AddressID where the product will be shipped from.

  - `ToAddressID` (string)

  - `FromAddress` (object)
    Example: {"ID":"","DateCreated":"2018-01-01T00:00:00-06:00","CompanyName":"","FirstName":"","LastName":"","Street1":"","Street2":"","City":"","State":"","Zip":"","Country":"","Phone":"","AddressName":"","xp":{…

  - `FromAddress.ID` (string)

  - `FromAddress.DateCreated` (string)

  - `FromAddress.CompanyName` (string)

  - `FromAddress.FirstName` (string)

  - `FromAddress.LastName` (string)

  - `FromAddress.Street1` (string)

  - `FromAddress.Street2` (string)

  - `FromAddress.City` (string)

  - `FromAddress.State` (string)

  - `FromAddress.Zip` (string)

  - `FromAddress.Country` (string)

  - `FromAddress.Phone` (string)

  - `FromAddress.AddressName` (string)

  - `FromAddress.xp` (object)

  - `ToAddress` (object)
    Example: {"ID":"","DateCreated":"2018-01-01T00:00:00-06:00","CompanyName":"","FirstName":"","LastName":"","Street1":"","Street2":"","City":"","State":"","Zip":"","Country":"","Phone":"","AddressName":"","xp":{…

## Response 4XX:

  - `4XX` (unknown)
    Expected errors range from 400-409. Anything in the 5XX range indicates a server issue and should be reported to support.

## Response 4XX fields (application/json):

  - `StatusCode` (integer)
    Example: 404

  - `ErrorCode` (string)
    Example: NotFoundError

  - `Message` (string)
    Example: Object not found

  - `Data` (object)
    Example: {"ObjectType":"","ObjectID":""}

