ops
ops-offers

List offers with pagination

Changed on

Fetch offers with filters on status and seller using cursor pagination

get/ops/offers/all/paginated

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/offers/all/paginated
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-offer:read

Query parameters

pageinteger

Which page number to fetch (zero-indexed)

starting_afterstring regexp

A cursor to use in pagination. It will be the starting point of the list and will not be included in the results.

Example:739b63c2-9e58-4964-b38d-4ebb424de242
ending_beforestring regexp

A cursor to use in pagination. It will be the ending point of the list and will not be included in the results.

Example:739b63c2-9e58-4964-b38d-4ebb424de242
limitinteger

How many results to return per page.

Example:10
seller_idstring regexp

Seller ID

Example:739b63c2-9e58-4964-b38d-4ebb424de242
statusstring[]

Offer status

[
  "voided"
]
seller_offer_referencestring

Partner's own reference for this offer

Example:abc123
pending_serial_numbersboolean

Accepted offer that serial number has been pending

end_customer_idstring

Id of the end customer

Example:abc123
contract_entitystring[]

Contract entity

[
  "abc123"
]

Response

OK response.

Example response

{
  "data": [
    {
      "agent": {
        "email": "aaa",
        "external_agent_id": "aaa",
        "name": "aaa",
        "phone": "aaa"
      },
      "created_at": "1970-01-01T00:00:01Z",
      "customer": {
        "company": {
          "billing_address": {
            "city": "aaa",
            "country_code": "DE",
            "line1": "aaa",
            "line2": "aaa",
            "postal_code": "aaa",
            "region": "aaa"
          },
          "company_address": {
            "city": "aaa",
            "country_code": "DE",
            "line1": "aaa",
            "line2": "aaa",
            "postal_code": "aaa",
            "region": "aaa"
          },
          "company_registration_number": "123456789",
          "name": "aaa",
          "tax_number": "aaa",
          "type": "Partnership",
          "vat_number": "DE123456789"
        },
        "email": "alice@example.com",
        "end_customer_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
        "full_name": "abc123",
        "id": "739b63c2-9e58-4964-b38d-4ebb424de242"
      },
      "declined_at": "1970-01-01T00:00:01Z",
      "expires_at": "1970-01-01T00:00:01Z",
      "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "offer_confirmed_at": "1970-01-01T00:00:01Z",
      "order_info": {
        "created_at": "1970-01-01T00:00:01Z",
        "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
        "status": "confirmed"
      },
      "phone_number": "abc123",
      "sales_channel": "ecommerce",
      "seller_info": {
        "address": {
          "city": "aaa",
          "country_code": "DE",
          "line1": "aaa",
          "line2": "aaa",
          "postal_code": "aaa",
          "region": "aaa"
        },
        "capability_add_custom_products": false,
        "capability_anonymized_pricing": false,
        "capability_anonymous_ecom_offer_creation": false,
        "capability_bundles": false,
        "capability_chatbot_id": "abc123",
        "capability_dual_pricing": false,
        "capability_hide_buy_now": false,
        "capability_international_shipment": false,
        "currency": "abc123",
        "email": "abc123",
        "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
        "logo_url": "abc123",
        "name": "abc123",
        "parent_seller_id": "abc123",
        "pdf_reader_assistant_id": "abc123",
        "pretty_name": "abc123",
        "product_reference_source": "abc123"
      },
      "seller_offer_reference": "abc123",
      "set_to_pending_review_at": "1970-01-01T00:00:01Z",
      "shipping_address": {
        "city": "aaa",
        "country_code": "DE",
        "line1": "aaa",
        "line2": "aaa",
        "postal_code": "aaa",
        "recipient_name": "abc123",
        "region": "aaa"
      },
      "source": "abc123",
      "status": "voided",
      "total_assets": 1,
      "total_value": {
        "currency": "EUR",
        "gross": 119000,
        "net": 100000
      },
      "user": {
        "email": "abc123",
        "name": "abc123"
      }
    }
  ],
  "pagination": {
    "has_more": false
  }
}

Changes

    • info

      api operation id offer.getAllOpsPaginated removed and replaced with offer#getAllOpsPaginated

    • info

      api operation id offer#getAllOpsPaginated removed and replaced with offer.getAllOpsPaginated

    • info

      api tag ops-offers added