com.gigs.payment.disputeLost

  • Name
    object
    Type
    string
    required
    Description

    Type of object is always event.

  • Name
    id
    Type
    string
    required
    Description

    Unique identifier for the event.

    Example: evt_0SNlurA049MEWV5gNTcQ5A07h3Ol
  • Name
    data
    Type
    object
    required
    Description
    State of the latest payment attempt for a `subscription` or `order`.
    • Name
      object
      Type
      string
      required
      Description

      Type of object is always payment.

    • Name
      id
      Type
      string
      required
      Description

      Unique identifier for the payment.

      Example: pay_0SNlurA049MEWV2HRA0slWFuS8DV
    • Name
      amount
      Type
      object
      required
      Description
      The total amount paid.
    • Name
      discount
      Type
      object
      required
      Description
      The total discount applied to this payment.
    • Name
      disputeOutcome
      Type
      nullable string
      required
      Description

      The outcome of a payment dispute. Otherwise null.

      Allowed values: , lost, won
    • Name
      failedAttempts
      Type
      integer
      required
      Description

      The number of failed payment attempts so far.

      Example: 3
      >= 0
    • Name
      failureCode
      Type
      nullable string
      required
      Description

      An error code indicating the reason for the payment failure.

      Example: paymentCardDeclined
    • Name
      failureMessage
      Type
      nullable string
      required
      Description

      A human-readable message indicating the reason for the payment failure.

      Example: The card has been declined.
    • Name
      invoiceNumber
      Type
      string
      required
      Description

      The number of the invoice from the payment provider

      Example: B74BDB55-0555
    • Name
      method
      Type
      nullable object
      required
      Description
      The payment method describes how a payment can be made.
    • Name
      reason
      Type
      string
      required
      Description

      The reason for this payment.

      Allowed values: subscriptionCreation, subscriptionRenewal, other
    • Name
      receipt
      Type
      nullable string
      required
      Description

      The URL of a PDF receipt. The URL and the content it links to might change whenever the payment transitions to another state. The URL is signed, but care should be taken when sharing it, as it is publicly accessible.

      Example: https://files.gigs.com/receipts/pay_0SNlurA049MEWV2HRA0slWFuS8DV.pdf
    • Name
      references
      Type
      array
      required
      Description

      List of payment references. Supported reference types are order and subscription.

    • Name
      refunded
      Type
      object
      required
      Description
      The sum of all refunds related to this payment. Cannot be greater than the paid sum.
    • Name
      status
      Type
      string
      required
      Description

      The status of the payment. Can be succeeded, requiresConfirmation, failed, refunded or disputed.

      Allowed values: succeeded, requiresConfirmation, failed, refunded, disputed, requiresPaymentMethod
    • Name
      subtotal
      Type
      object
      required
      Description
      The total amount to be paid before any applied discounts.
    • Name
      taxes
      Type
      array
      PREVIEW
      required
      Description

      List of taxes.

      Example: [object Object]
    • Name
      total
      Type
      object
      PREVIEW
      required
      Description
      The total amount paid.
    • Name
      user
      Type
      object
      required
      Description
    • Name
      voucher
      Type
      nullable object
      required
      Description
      Voucher applied to the payment.
    • Name
      voucherCode
      Type
      nullable object
      required
      Description
      Voucher code applied to the payment.
    • Name
      attemptedAt
      Type
      string
      required
      Description

      Time when the payment was last attempted.

      Example: 2021-02-14T19:38:34Z
    • Name
      createdAt
      Type
      string
      required
      Description

      Time when the payment was created.

      Example: 2021-02-14T19:38:34Z
    • Name
      disputeClosedAt
      Type
      nullable string
      required
      Description

      Time when the payment dispute was closed. Otherwise null.

      Example: 2021-02-14T19:38:34Z
    • Name
      refundedAt
      Type
      nullable string
      required
      Description

      Time when the payment was fully refunded. Otherwise null.

      Example: 2021-02-14T19:38:34Z
  • Name
    datacontenttype
    Type
    string
    required
    Description

    The RFC 2046 content-type.

    Example: application/json
    Default: application/json
  • Name
    project
    Type
    string
    required
    Description

    Unique identifier for the project where the event occurred.

    Example: gigs
  • Name
    source
    Type
    string
    required
    Description

    URI identifying the event source.

    Example: https://api.gigs.com
    Default: https://api.gigs.com
  • Name
    specversion
    Type
    string
    required
    Description

    The CloudEvents spec version.

    Example: 1.0
    Default: 1.0
  • Name
    time
    Type
    string
    required
    Description

    Time when the event occurred.

    Example: 2022-03-16T14:12:42Z
  • Name
    type
    Type
    string
    required
    Description

    Type is always com.gigs.payment.disputeLost.

  • Name
    version
    Type
    string
    required
    Description

    API version used to serialize the data and the event itself.

    Default: 2024-08-29

Example

{
  "object": "event",
  "id": "evt_0SNlurA049MEWV5gNTcQ5A07h3Ol",
  "data": {
    "object": "payment",
    "id": "pay_0SNlurA049MEWV2HRA0slWFuS8DV",
    "amount": {
      "amount": 999,
      "currency": "USD"
    },
    "discount": {
      "amount": 999,
      "currency": "USD"
    },
    "failedAttempts": 3,
    "failureCode": "paymentCardDeclined",
    "failureMessage": "The card has been declined.",
    "invoiceNumber": "B74BDB55-0555",
    "method": {
      "object": "paymentMethod",
      "id": "pm_1IHCiiI2m82Dc6YnhqGWH6JX",
      "brand": "visa",
      "last4": "4242",
      "provider": "stripe",
      "status": "available",
      "type": "card",
      "user": "usr_0SNlurA049MEWV4OpCwsNyC9Kn2d",
      "createdAt": "2021-02-14T19:38:34Z"
    },
    "reason": "subscriptionCreation",
    "receipt": "https://files.gigs.com/receipts/pay_0SNlurA049MEWV2HRA0slWFuS8DV.pdf",
    "refunded": {
      "amount": 999,
      "currency": "USD"
    },
    "status": "succeeded",
    "subtotal": {
      "amount": 999,
      "currency": "USD"
    },
    "taxes": [
      {
        "object": "tax",
        "inclusive": false,
        "name": "State Sales Tax",
        "value": {
          "amount": 90,
          "currency": "USD"
        }
      }
    ],
    "total": {
      "amount": 999,
      "currency": "USD"
    },
    "user": {
      "object": "user",
      "id": "usr_0SNlurA049MEWV4OpCwsNyC9Kn2d",
      "birthday": "2017-07-21",
      "email": "jerry@example.com",
      "emailVerified": true,
      "fullName": "Jerry Seinfeld",
      "preferredLocale": "en-US",
      "createdAt": "2021-01-21T19:38:34Z"
    },
    "voucher": {
      "object": "voucher",
      "id": "vou_0SNlurA049MEWV0h2jfjkdiOdplN",
      "name": "Monthly Basic 15%",
      "priceDiscount": {
        "amount": 999,
        "currency": "USD"
      },
      "priceDiscountPercentage": 30.12,
      "recurrence": {
        "type": "once"
      },
      "redemptions": 2,
      "restrictions": {
        "expiresAt": "2021-04-14T19:38:34Z"
      },
      "status": "available",
      "createdAt": "2021-02-14T19:38:34Z"
    },
    "voucherCode": {
      "object": "voucherCode",
      "id": "voc_0SNlurA049MEWV0Q5vaTJnKoXc1v",
      "code": "BlackFriday22",
      "redemptions": 2,
      "restrictions": {
        "firstTimeTransaction": true,
        "minimumPrice": {
          "amount": 999,
          "currency": "USD"
        },
        "expiresAt": "2021-04-14T19:38:34Z"
      },
      "status": "active",
      "voucher": "vou_0SNlurA049MEWV0h2jfjkdiOdplN",
      "createdAt": "2021-02-14T19:38:34Z"
    },
    "attemptedAt": "2021-02-14T19:38:34Z",
    "createdAt": "2021-02-14T19:38:34Z",
    "disputeClosedAt": "2021-02-14T19:38:34Z",
    "refundedAt": "2021-02-14T19:38:34Z"
  },
  "datacontenttype": "application/json",
  "project": "gigs",
  "source": "https://api.gigs.com",
  "specversion": "1.0",
  "time": "2022-03-16T14:12:42Z",
  "type": "com.gigs.payment.disputeLost",
  "version": "2024-08-29"
}