Skip to main content

ApiResponseListPromotionResponse

data object[]
  • Array [
  • activebooleanrequired
    allowsOverlapbooleanrequired
    appliesToAllStoresbooleanrequired
    bundleComponents object[]required
  • Array [
  • namestringrequired
    productIdstring<uuid>required
    quantityinteger<int32>required
    regularUnitPricenumberrequired
  • ]
  • buyQuantityinteger<int32>required
    categoryIdsstring<uuid>[]required
    codesstring[]required
    createdAtstring<date-time>
    currencystring
    currentVersionIdstring<uuid>
    descriptionstring
    discountValuenumber
    endDatestring<date-time>
    getQuantityinteger<int32>required
    lifecycleStatusstringrequired
    maxUsesPerTransactioninteger<int32>
    namestring
    orgIdstring<uuid>
    productIdsstring<uuid>[]required
    promotionIdstring<uuid>
    promotionTypestring
    rewardProductIdsstring<uuid>[]required
    startDatestring<date-time>
    storeIdsstring<uuid>[]required
    updatedAtstring<date-time>
    versionNumberinteger<int32>
  • ]
  • error object
    codestring
    correlationIdstringnullable
    detailstring
    details objectnullable
    anyOf
    currentVersionstringnullable
    datesstring<date>[]required
    occurrenceRefsstring[]required
    requestIdsstring<uuid>[]required
    totalinteger<int32>required
    truncatedbooleanrequired
    fieldErrors objectnullable
    property name*stringnullable
    gatewayErrorCodestringnullable
    messagestring
    retryableboolean
    meta object
    limitinteger<int32>
    nextCursorstring
    pageinteger<int32>
    scheduleVersionstringnullable
    totalinteger<int64>
    totalPagesinteger<int32>
    successbooleanrequired
    ApiResponseListPromotionResponse
    {
    "data": [
    {
    "active": true,
    "allowsOverlap": true,
    "appliesToAllStores": true,
    "bundleComponents": [
    {
    "name": "string",
    "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "quantity": 0,
    "regularUnitPrice": 0
    }
    ],
    "buyQuantity": 0,
    "categoryIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "codes": [
    "string"
    ],
    "createdAt": "2024-07-29T15:51:28.071Z",
    "currency": "string",
    "currentVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "description": "string",
    "discountValue": 0,
    "endDate": "2024-07-29T15:51:28.071Z",
    "getQuantity": 0,
    "lifecycleStatus": "string",
    "maxUsesPerTransaction": 0,
    "name": "string",
    "orgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "promotionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "promotionType": "string",
    "rewardProductIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "startDate": "2024-07-29T15:51:28.071Z",
    "storeIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "updatedAt": "2024-07-29T15:51:28.071Z",
    "versionNumber": 0
    }
    ],
    "error": {
    "code": "string",
    "correlationId": "string",
    "detail": "string",
    "details": {
    "currentVersion": "string",
    "dates": [
    "2024-07-29"
    ],
    "occurrenceRefs": [
    "string"
    ],
    "requestIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "total": 0,
    "truncated": true
    },
    "fieldErrors": {},
    "gatewayErrorCode": "string",
    "message": "string",
    "retryable": true
    },
    "meta": {
    "limit": 0,
    "nextCursor": "string",
    "page": 0,
    "scheduleVersion": "string",
    "total": 0,
    "totalPages": 0
    },
    "success": true
    }