Machine to Machine

POST billing status update (M2M)

Changed on

Applies rental status changes (SetRentalStatus), sale item fulfillment status changes and service visit billing status changes in one unit of work. Requires header X-M2M-USER-ID. Include rentals, sale_item_fulfillments and/or service_occurrences; any key may be omitted when empty. At least one of the lists must be non-empty. A service visit's billing_status moves to billing_pending when it is not billed and is Completed, Partially Completed, a billable Customer Cancelled, or Scheduled on a series billed as scheduled; back to billing_pending from billing_approved (an approval rolled back); to billing_approved from billing_pending; and to null (off its invoice) from billing_pending. The visit status never changes. Sending the value a visit already has does nothing.

post/machine-to-machine/billing-status-update

Request

  • Base URL
    https://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

BillingStatusUpdateRequest required
rentals, BillingStatusUpdateRentalRequest[]
sale_item_fulfillments, BillingStatusUpdateSaleItemFulfillmentRequest[]
service_occurrences, BillingStatusUpdateServiceOccurrenceRequest[]

Response

Updates committed successfully; empty body.

Changes

    • breaking

      added the new required request property service_occurrences/items/billing_status

    • warning

      removed the request property service_occurrences/items/service_occurrence_status_id

    • info

      added the new optional request property service_occurrences