List offers by product id

GET/offers/list-by-product/{productId}

Returns a list of offers of the product.

  • Offers of products of the types face-to-face event and voucher are not returned. For these products, the list is empty.
  • pix, billet and creditCard turn on their filter with any non-empty value, false included. To skip a filter, do not send the parameter or send it empty.

Headers

  • x-api-keystringrequired

    Api key provided on integrations tab in Easyflow platform.

  • x-api-secretstringrequired

    Api Secret provided on integrations tab in Easyflow platform.

Path parameters

  • productIdstringrequired

Query parameters

  • pageintegerrequired

    Page number to access

    Example:1

  • limitintegerrequired

    Number of items to be loaded per page

    Example:10

  • namestring

    Part of the name of the offer. The search is case sensitive. field ignores case, but it also matches the name of the product and the ID of the offer.

  • offerTypestring

    Returns only the offers with items of this type.

    Possible values:unique-purchaserecurrentinvoicetax

  • pixboolean

    Send true to return only the offers with PIX configured. Any non-empty value turns on this filter, false included.

  • billetboolean

    Send true to return only the offers with bank billet configured. Any non-empty value turns on this filter, false included.

  • creditCardboolean

    Send true to return only the offers with credit card configured. Any non-empty value turns on this filter, false included.

  • fieldstring

    Text searched in the name of the offer, in the name of the product or in the ID of the offer. The search ignores uppercase and lowercase and matches part of the text.

  • orderBy[orderByField]string

    Field to order by. Send it together with orderBy[orderDirection].

    Possible values:createdAtupdatedAtnamevalueInCentstype

  • orderBy[orderDirection]string

    Ascending (ASC) or descending (DESC) order. Send it together with orderBy[orderByField].

    Possible values:ASCDESC

Responses

200Returns a list of products.

Returns a list of products.

Content typeapplication/jsonobject

  • statusCodeinteger

    Example:200

  • dataobject
    Show child attributesHide child attributes
    • docsarray of objects
      Show child attributesHide child attributes
      • idstring
      • businessIdstring
      • namestring
      • checkoutTemplateIdstring
      • checkoutTemplateNamestring
      • descriptionstring
      • endDatestring
      • initialDatestring
      • warrantyInDaysinteger
      • statusstring

        Possible values:draftactiveinactiveblocked

      • createdAtstring
      • preferenceobject
        Show child attributesHide child attributes
        • showSellerNameboolean
        • requestAddressboolean
        • acceptNaturalPersonBuyerboolean
        • acceptCorporationBuyerboolean
        • requestDeliveryAddressboolean
        • requireEmailReentryboolean
        • disableCouponFormboolean
      • paymentConfigurationobject
        Show child attributesHide child attributes
        • pixobject
          Show child attributesHide child attributes
          • expirationInMinutesinteger
        • billetobject
          Show child attributesHide child attributes
          • dueDateDelayinteger
        • creditCardobject
          Show child attributesHide child attributes
          • defaultInstallmentsinteger
          • maxInstallmentsinteger
          • invoiceDescriptionstring
          • installmentOptionsarray of objects
            Show child attributesHide child attributes
            • installmentsinteger
            • installmentValueInCentsintegernullable
            • interestRateintegernullable
      • advancedobject
        Show child attributesHide child attributes
        • redirectobject
          Show child attributesHide child attributes
          • urlstring
          • buttonNamestring
          • delayInSecondsintegernullable
      • itemsarray of objects
        Show child attributesHide child attributes
        • idstring
        • namestring
        • priceWithoutDiscountValueInCentsinteger
        • productobjectnullable
          Show child attributesHide child attributes
          • idstring
          • namestring
          • descriptionstring
          • typestring

            Possible values:Online-CourseMentoringConsultancySubscriptionCommunityOnline-EventFace-to-face-EventE-BookDownloadable-FileE-Book-And-FileAppPhysical-ProductOthersServicesVoucher

          • imageobject
            Show child attributesHide child attributes
            • namestringnullable
            • pathstringnullable
            • urlstringnullable
            • isPublicbooleannullable
            • extensionstringnullable
        • priceInCentsinteger
        • optionalboolean
        • offerItemTypestring

          Possible values:unique-purchaserecurrentinvoicetax

        • orderBumpTemplateIdstring
        • recurrenceobject
          Show child attributesHide child attributes
          • periodicitystring

            Possible values:MonthlyQuarterlyBiannualyAnnualy

          • numberRecurrenceinteger
          • recurrenceValueInCentsinteger
          • repeatIndefinitelyboolean
          • customValueobject
            Show child attributesHide child attributes
            • recurrenceFrominteger
            • recurrenceTointeger
            • valueInCentsinteger
    • limitinteger
    • currentPageinteger
    • nextPageintegernullable
    • totalPagesinteger
    • totalDocsinteger
    • hasNextboolean
400If the provided parameter is invalid, the API will return the following error response:

If the provided parameter is invalid, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid param: []

    Example:Invalid param: []

  • errorstring

    Bad Request

    Example:Bad Request

  • statusCodeinteger

    400

    Example:400

  • errorCodestring

    Code that identifies the error. Present only on some errors.

401If the request is unauthorized, the API will return the following error response:

If the request is unauthorized, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid field

    Example:Unauthorized

  • errorstring

    Unauthorized

    Example:Unauthorized

  • statusCodeinteger

    401

    Example:401

403If the request is forbidden, the API will return the following error response:

If the request is forbidden, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Forbidden resource

    Example:Forbidden resource

  • errorstring

    Forbidden

    Example:Forbidden

  • statusCodeinteger

    403

    Example:403

500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

Content typeapplication/jsonobject

  • statusCodeinteger

    HTTP status code.

    Example:500

  • messagestring

    Explanation of the error.

    Example:Internal Server Error