Resource: Billings

Topics:

Actions

  • - (Object) index(method = GET, url = '/rest/v1/billings')

Url:

  • [GET] /rest/v1/billings
Note:

This action requires a cookie session with admin rights. See the documentation for REST Session for more information.

Returns a list of user accounts.

Arguments:

  • (Date) on_date

    (optional) Filters billings by date of transaction date

  • (DateTime) billing_date_from

    (optional) Filters billings, all billings following the datetime

  • (DateTime) billing_date_to

    (optional) Filters billings, all billings before the datetime

Example Request:

https://service_name.synctv.com/rest/v1/billings?device=urn:synctv:devices:web:11223344

Example Response:

<scbp>
  <billings type="array">
    <billing>
      <id>100</id>
      <status>pending</status>
      <action>charge</action>
      <message/>
      <billing_date>2012-03-04T17:18:41Z</billing_date>
      <updated_at>2012-03-04T17:18:41Z</updated_at>
      <external_id/>
      <created_at>2012-03-04T17:18:41Z</created_at>
      <gateway_response type="array"/>
    </billing>
  </billings>
</scbp>