Skip to content

https://api.kustom.co/ipp/v1/sessions

Creates a session to be collected by an In-Person Payment device. Dispatches it to the target device. Lifecycle callbacks are delivered to the URL configured in the merchant portal. Optionally set payment_channel to send the device straight to a specific payment channel (CARD_PAYMENT for card payment on the terminal, SCAN_TO_PAY for a QR code the shopper pays with on their own device). The device then skips the channel selection step. If payment_channel is omitted, the device lets the operator choose the channel.

Request body20 fields
  • device_idstring · uuidrequired

    Target device ID.

  • order_amountinteger · int64required

    Total order amount in minor units (e.g., cents).

  • purchase_currencystringrequired

    Currency code (ISO 4217).

  • purchase_started_atstring · date-timerequired

    Timestamp when the purchase started.

  • purchase_completed_atstring · date-timeoptional

    Timestamp when the purchase was completed.

  • order_items[]array<object>required

    List of line items in the order.

    9 fields in order_items
    • typestringrequired

      Type of the line item.

      • physical
      • discount
      • shipping_fee
      • sales_tax
      • store_credit
      • gift_card
      • digital
      • surcharge
      • return_fee
      • package
    • referencestringoptional

      External reference ID for the item (e.g., SKU).

    • namestringrequired

      Name or description of the item.

    • quantityinteger · int64required

      Quantity of the item.

    • unit_priceinteger · int64required

      Unit price in minor units (e.g., cents).

    • total_amountinteger · int64required

      Total amount for this line in minor units.

    • tax_rateinteger · int32required

      Tax rate in basis points (0-10000), e.g., 2500 for 25%. Must be a whole percentage, i.e. a multiple of 100.

    • total_discount_amountinteger · int64optional

      Total discount amount in minor units.

    • total_tax_amountinteger · int64required

      Total tax amount for this line in minor units.

  • merchant_reference1stringoptional

    First merchant reference for tracking purposes.

  • merchant_reference2stringoptional

    Second merchant reference for tracking purposes.

  • order_tax_amountinteger · int32required

    Total tax amount for the order in minor units.

  • merchant_datastringoptional

    Arbitrary merchant data (JSON string).

  • payment_channelstringoptional

    Payment channel to preselect on the device. Omit to let the device choose.

    • CARD_PAYMENT
    • SCAN_TO_PAY
200
Response26 fields

Session created and dispatched to device.

  • session_idstring · uuidoptional

    Unique session identifier.

  • statusstringoptional

    Current session status.

    • CREATED
    • ACTIVE
    • FINALIZED
    • CANCELLED
    • EXPIRED
    • FAILED
  • device_idstring · uuidoptional

    Device ID handling the session.

  • order_idstringoptional

    Order ID once created.

  • order_amountinteger · int64optional

    Total order amount in minor units.

  • purchase_currencystringoptional

    Currency code (ISO 4217).

  • purchase_started_atstring · date-timeoptional

    Timestamp when the purchase started.

  • purchase_completed_atstring · date-timeoptional

    Timestamp when the purchase was completed.

  • order_items[]array<object>optional

    List of line items in the order.

    9 fields in order_items
    • typestringrequired

      Type of the line item.

      • physical
      • discount
      • shipping_fee
      • sales_tax
      • store_credit
      • gift_card
      • digital
      • surcharge
      • return_fee
      • package
    • referencestringoptional

      External reference ID for the item (e.g., SKU).

    • namestringrequired

      Name or description of the item.

    • quantityinteger · int64required

      Quantity of the item.

    • unit_priceinteger · int64required

      Unit price in minor units (e.g., cents).

    • total_amountinteger · int64required

      Total amount for this line in minor units.

    • tax_rateinteger · int32required

      Tax rate in basis points (0-10000), e.g., 2500 for 25%. Must be a whole percentage, i.e. a multiple of 100.

    • total_discount_amountinteger · int64optional

      Total discount amount in minor units.

    • total_tax_amountinteger · int64required

      Total tax amount for this line in minor units.

  • merchant_reference1stringoptional

    First merchant reference.

  • merchant_reference2stringoptional

    Second merchant reference.

  • order_tax_amountinteger · int32optional

    Total tax amount in minor units.

  • merchant_datastringoptional

    Arbitrary merchant data.

  • created_atstring · date-timeoptional

    Timestamp when the session was created.

  • expires_atstring · date-timeoptional

    Timestamp when the session expires.

  • updated_atstring · date-timeoptional

    Timestamp when the session was last updated.

  • payment_channelstringoptional

    Payment channel preselected when the session was created, if any.

    • CARD_PAYMENT
    • SCAN_TO_PAY
400
Response0 fields

Invalid request body or parameters.

No response body — this status returns headers only.

401
Response0 fields

Missing or invalid credentials.

No response body — this status returns headers only.

403
Response0 fields

Not permitted to perform this operation, e.g. the merchant is not active or does not have mPOS or POS Connect enabled.

No response body — this status returns headers only.

404
Response0 fields

Target device not found or inactive.

No response body — this status returns headers only.

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.