Skip to content
MothershipDevelopers

API referenceRebills

List rebills for a shipment

Lists a shipment's rebills, newest first. A shipment that doesn't exist or isn't yours is a 404, and one of your shipments without rebills is an empty list.

GET/rebills/by_shipment_id/{shipmentId}
Environment
https://sandbox.api.mothership.com/beta
curl --request GET \
  --url 'https://sandbox.api.mothership.com/beta/rebills/by_shipment_id/MS5016101' \
  --header "Authorization: Bearer $MOTHERSHIP_API_TOKEN" \
  --header 'Accept: application/json'
Reads your token from $MOTHERSHIP_API_TOKEN
Response
{
: {
: [
{
: "7c9e6679-7425-40de-944b-e07fc1f90ae7",
: "MSSR5016101",
: "processed",
: "MS5016101",
: "1234567890",
: 4500,
: 1500,
: 6000,
: "usd",
: "2026-03-29T17:00:00.000Z",
: "9b2e6d41-0c7a-4f3e-8d15-6a4c2e9f1b70",
: ,1 item
: "2026-03-19T17:00:00.000Z",
: "2026-03-21T09:31:12.000Z",
: "2026-03-21T09:31:12.000Z"
}
],
: 1,
: 25,
: 1,
: false
}
}

Hover a key to see what it means. Click it to jump to the field.

Pass the shipment's reference number, such as MS5016101. A shipment that doesn't exist or belongs to another organization is a 404 NOT_FOUND, and one of your shipments without rebills returns an empty results.

Most shipments have one rebill or none. The response pages like List rebills, with page, perPage, total and hasMore.

Authorization: Bearer <token>

Your sandbox API token. See Authentication.

  • shipmentIdstringRequired

    The reference number of the shipment, such as MS5016101

  • pageinteger

    The page of results to return, starting at 1. Defaults to 1.

    min 1
  • perPageinteger

    The most rebills to return on a page, from 1 to 100. Defaults to 25.

    min 1max 100
    • dataobjectRequired
      • resultsarray of objectsRequired

        The rebills on this page, newest first

      • pageintegerRequired

        The page of results returned, starting at 1

      • perPageintegerRequired

        The most rebills a page holds

      • totalintegerRequired

        How many rebills match, across every page

      • hasMorebooleanRequired

        True if a later page has more rebills

What's next