Skip to content
MothershipDevelopers

Webhook eventsRebills

Rebill accepted

Sent when every line item on a rebill is accepted.

EVENTshipment.rebill.accepted
POST to your endpointSigned with HMAC-SHA256Retried for up to 4 daysPermission to read rebills
RequestPOSThttps://your-server.example.com/webhooks/mothership
Content-Type:application/json
X-Mothership-Signature:e7d9fa963c7bf244ceff94f949410fed65272aa8b8cadad5f601733a6b5b055d
X-Mothership-Delivery-Id:3f6c1a9e-8b2d-4c7a-9e15-2d8b7f4a6c01
{
: "shipment.rebill.accepted",
: {
: "MS123456",
: "2026-10-09T18:22:10.000Z",
: {
: "0c9a3f6e-2b7d-4e18-9a5c-7f1d2e4b8a63",
: "MSSR123456",
: "accepted",
: "7012345678",
: 8500,
: 1500,
: 10000,
: "usd",
: "2026-10-22T15:04:05.000Z",
: null,
: [
4 keys
]
}
},
: "2026-10-08T15:04:05.000Z",
: 1,
: 16
}

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

Sent when every line item on the rebill is accepted. The rebill is charged when its review window ends, and shipment.rebill.finalized follows then.

Add shipment.rebill.accepted to a configuration's subscribedEvents with Create a webhook configuration or in the dashboard. The token needs permission to read rebills. Without it, the request answers 403 MISSING_PERMISSION, and opening or resending these deliveries in the dashboard is refused too. Such a token can still remove the event from a configuration.

Event data

data · 3 keys
  • shipmentIdstring

    The shipment's reference number, such as MS123456. Pass it to Get shipment details.

  • acceptedAtstring

    When the last line item was accepted, as an ISO 8601 string in UTC.

  • rebillobject

    The rebill as it is when Mothership sends the event, named as Retrieve a rebill names it. Call that with rebill.id for what each charge means.

  • eventTypestring

    The event. Always shipment.rebill.accepted here. Route on it, and answer 2xx to types you don't handle.

  • sentAtstring

    When Mothership queued the event to send, as an ISO 8601 string in UTC. Every retry and resend carries the same value, so it does not say when this attempt went out.

  • deliveryAttemptinteger

    Which send of this event this is, starting at 1. Resends from the dashboard count too.

  • pendingRetriesinteger

    How many automatic attempts are left if this one fails. 0 on the last one.

Related