API referenceRebills
List rebills
Lists the rebills your organization is charged for, newest first. Every filter is optional, and filters combine.
/ rebillshttps:/ / sandbox.api.mothership.com/ beta$MOTHERSHIP_API_TOKENHover a key to see what it means. Click it to jump to the field.
Lists the rebills your organization is charged for, newest first, in results. Each one has the same fields as Retrieve a rebill.
Every filter is optional. Filters on different parameters must all match, and the values listed for one parameter are alternatives. So status=scheduled,disputed lists rebills in either status, and adding shipmentId=MS5016101 narrows those to one shipment. A parameter can also be repeated instead of separated with commas.
An unknown status is a 400 INVALID_REQUEST that names the statuses the API accepts. Rebills explains each one.
total counts the matches across every page. Keep increasing page while hasMore is true.