Skip to content
Navigation

Pages a calendar product's bookings, the next first: who booked, when, and a canceled call's refund.

GET
https://api.sherpo.io/merchant/v1/stores/{store}/products/{product}/call_bookings

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • product
    string
    required

    An id, or slug:<slug>.

    minLength: 1

Query parameters

  • filter
    optional
    object

    filter[<field>]=<value> is an equality, filter[<field>][<op>]=<value> names the operator; in repeats the parameter.

  • sort
    optional
    starts
    or
    latest
  • direction
    optional
    asc
    or
    desc
  • limit
    optional
    integer
    maximum: 100 · minimum: 1
  • cursor
    optional
    string
    maxLength: 8192
  • count
    optional
    boolean
  • search
    optional
    string
    maxLength: 200 · minLength: 1
  • facets
    optional
    array of
    string

Returns

200

Pages a calendar product's bookings, the next first: who booked, when, and a canceled call's refund.

JSON
  • items
    array of
    object
    required
    • meeting
      required

      Where the call is joined; null once it isn't booked, or with no link to join.

      One of the following:

      • object
      • object
      • null
    • customer_id
      string
      required
    • order_id
      required

      One of the following:

      • string
      • null
    • order_item_id
      required

      One of the following:

      • string
      • null
    • amount
      required

      What its order line charged, after discounts; null without revenue:read.

      One of the following:

      • number
      • null
    • refundable
      required

      What a cancel with a refund would give back now: amount less what the order already refunded of it; null once canceled or without revenue:read.

      One of the following:

      • number
      • null
    • currency
      required

      One of the following:

      • string
      • null
    • exponent
      required

      One of the following:

      • number
      • null
    • cancel_message
      required

      The seller's words to the customer when they canceled it; null otherwise.

      One of the following:

      • string
      • null
    • conflict
      boolean
      required

      Whether money that came after its hold lapsed booked it over another call, for the seller to move.

    • refund
      required

      What its cancel gives back and where it stands, the worst of refunds (retryEventRefund tries a failed one again; manual is the seller's to pay by hand); null when none was made, which with refund_owed means nothing was left to give back.

      One of the following:

      • object
      • null
    • refunds
      array of
      object
      required

      One refund per payment of its order, worst first.

      • id
        string
        required
      • product_id
        string
        required
      • customer_id
        string
        required
      • order_id
        string
        required
      • settlement_id
        string
        required
      • status
        string
        required

        pending while owed, refunded once given back, failed for the seller to retry, manual for the seller to refund (a sale paid outside the store, or one its payment has no room left for).

      • amount
        required

        One of the following:

        • number
        • null
      • currency
        string
        required
      • exponent
        required

        One of the following:

        • number
        • null
      • failure
        required

        Why the last try failed: processor_refused, account_gone, processor_failed, processor_unavailable, nothing_left, order_unreconciled or internal; null unless failed.

        One of the following:

        • string
        • null
      • refund_id
        required

        The refund recorded on the order once it landed, or once a refund naming it gave it back.

        One of the following:

        • string
        • null
      • processor_ref
        required

        One of the following:

        • string
        • null
      • refunded_at
        required

        One of the following:

        • string
        • null
      • created_at
        string
        required
      • customer
        required

        Who it gives back to, erased once their details are wiped.

        One of the following:

        • object
        • null
    • customer
      required

      One of the following:

      • object
      • null
    • id
      string
      required
    • product_id
      string
      required
    • status
      string
      required
    • starts_at
      required

      One of the following:

      • string
      • null
    • ends_at
      required

      One of the following:

      • string
      • null
    • time_zone
      required

      The host's time zone, which the call's hours are set in.

      One of the following:

      • string
      • null
    • change_until
      required

      Until when its customer may still move or cancel it.

      One of the following:

      • string
      • null
    • reschedules
      number
      required

      How many times its customer moved it; a seller's moves spend none.

    • reschedules_left
      number
      required
    • rescheduled_from
      required

      Where it started before its latest move, by the seller or the customer; null if it never moved.

      One of the following:

      • string
      • null
    • refund_until
      required

      Until when a cancel refunds it; null when none does.

      One of the following:

      • string
      • null
    • cancel_reason
      required

      One of the following:

      • string
      • null
    • canceled_at
      required

      One of the following:

      • string
      • null
    • refund_owed
      required

      Whether its cancel owed what was paid back, never for a call that charged nothing; null while it is booked.

      One of the following:

      • boolean
      • null
    • created_at
      required

      One of the following:

      • string
      • null
    • updated_at
      required

      One of the following:

      • string
      • null
  • cursor
    required

    One of the following:

    • string
    • null
  • total
    optional
    number
  • facets
    optional
    map of
    map<number>
JSON
  • type
    string
    required
    format: uri
  • title
    string
    required
  • status
    integer
    required
  • detail
    string
    required
  • code
    optional
    string
  • context
    optional
    object
  • reached_core
    optional
    boolean
  • core_answer
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close