# Booking the shipment

> Pick a rate from the quote and purchase it with Create a shipment.

We now have enough information to book our shipment! Let's take a look at the rates that were returned in the response to our last request to create a quote.

```json Rates
[
  {
    "id": "VDWLA0",
    "creditsApplied": 0,
    "estimatedPickupDate": "2019-03-26T23:45:40.000Z",
    "estimatedDeliveryDate": "2019-03-28T05:00:40.000Z",
    "price": 79,
    "provider": "mothership",
    "providerScac": "mhpg",
    "services": [],
    "transitDays": {
      "minimum": 1,
      "maximum": 1
    },
    "warnings": [],
    "coveragePrice": 0,
    "coveredValue": 0
  },
  {
    "id": "G6EMET",
    "creditsApplied": 0,
    "estimatedPickupDate": "2019-03-26T23:45:40.000Z",
    "estimatedDeliveryDate": "2019-03-27T05:00:40.000Z",
    "price": 108,
    "provider": "mothership",
    "providerScac": "mhpg",
    "services": ["guaranteed"],
    "transitDays": {
      "minimum": 0,
      "maximum": 0
    },
    "warnings": [],
    "coveragePrice": 0,
    "coveredValue": 0
  },
  {
    "id": "W7MG4A",
    "creditsApplied": 0,
    "estimatedPickupDate": "2019-03-26T23:45:40.000Z",
    "estimatedDeliveryDate": "2019-03-28T05:00:40.000Z",
    "price": 279,
    "provider": "mothership",
    "providerScac": "mhpg",
    "services": ["dedicated"],
    "transitDays": {
      "minimum": 1,
      "maximum": 1
    },
    "warnings": [],
    "coveragePrice": 0,
    "coveredValue": 0
  },
  {
    "id": "6FFQO0",
    "creditsApplied": 0,
    "estimatedPickupDate": "2019-03-26T23:45:40.000Z",
    "estimatedDeliveryDate": "2019-03-27T05:00:40.000Z",
    "price": 358,
    "provider": "mothership",
    "providerScac": "mhpg",
    "services": ["dedicated", "guaranteed"],
    "transitDays": {
      "minimum": 0,
      "maximum": 0
    },
    "warnings": [],
    "coveragePrice": 0,
    "coveredValue": 0
  }
]
```

We want to utilize Mothership's same-day service in this example, so we'll use the second rate (the one with the ID `G6EMET`). It has guaranteed service with zero transit days, in other words same-day delivery. [Rate services](https://developers.mothership.com/reference/rate-services) lists every value `services` can hold.

> [!WARNING] Purchase eligibility
> In the quote response, there is a `metadata` field that indicates if this quote is purchasable, or missing any fields required to be purchasable.
>
> We allow anyone to quote and get rates with minimal details, such as zip code to zip code, or without a phone number. However, in order to book a shipment, we must have a specific location, a description of the freight, and a valid phone number for each location. `metadata.invalidFieldsRequiredForPurchase` lists what is missing.

Let's use the ID of the quote we requested in the last step (`-LawNN52lCcvj6T5qiEp`) and the ID of the rate we want to use (`G6EMET`) to make the request to [purchase a shipment](https://developers.mothership.com/reference/createshipment).

```curl
curl --request POST \
  --url https://sandbox.api.mothership.com/beta/shipments \
  --header "Authorization: Bearer $MOTHERSHIP_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "quoteId": "-LawNN52lCcvj6T5qiEp",
  "rateId": "G6EMET"
}'
```

And with that request, our shipment has been booked! The response holds the shipment, including its `id`, such as `MS5016101`. Use that ID to [track the shipment](https://developers.mothership.com/docs/tracking-request), [fetch its documents](https://developers.mothership.com/reference/listshipmentdocuments) and [find its invoices](https://developers.mothership.com/reference/listinvoicesbyshipmentid).

> [!WARNING] Payment sources
> Payments for purchases made via API are charged to the organization's default payment source. The payment source can be changed by logging into the customer dashboard and updating your organization's settings.

> [!WARNING] Bill of Lading documents
> You must use Mothership provided Bill of Lading documents for pick-up. Bring two printed, signed copies, one for the carrier and one for your records. Failure to use this exact BOL will result in direct carrier billing at non-discounted rates. [List shipment documents](https://developers.mothership.com/reference/listshipmentdocuments) returns a download URL for the Bill of Lading.