{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easyparser-com/json-schema/easyparser-com-bulk-response-schema.json",
  "title": "BulkResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easyparser-com-openapi.json#/components/schemas/BulkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Can be true for partial acceptance. Check ALL outcome arrays, not just success."
    },
    "meta_data": {
      "type": "object",
      "properties": {
        "bulk_request_id": {
          "type": "string"
        },
        "total_count": {
          "type": "integer"
        },
        "accepted_count": {
          "type": "integer"
        },
        "invalid_count": {
          "type": "integer"
        },
        "insufficient_credit_count": {
          "type": "integer"
        },
        "failed_count": {
          "type": "integer"
        },
        "rate_limit_exceeded_count": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    },
    "data": {
      "type": "object",
      "properties": {
        "accepted": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BulkAcceptedItem"
          }
        },
        "invalid": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BulkInvalidItem"
          }
        },
        "failed": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BulkFailedItem"
          }
        },
        "insufficient_credit": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BulkInsufficientCreditItem"
          }
        },
        "rate_limit_exceeded": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BulkRateLimitExceededItem"
          }
        }
      },
      "additionalProperties": true
    },
    "message": {
      "type": "string",
      "description": "Present on critical request failures."
    }
  },
  "additionalProperties": true,
  "required": [
    "success"
  ],
  "$defs": {
    "BulkAcceptedItem": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "callback_url": {
          "type": "string"
        },
        "ship_to": {
          "type": "object",
          "properties": {
            "zipCode": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": true
        },
        "group_id": {
          "type": "string"
        },
        "results": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "credit": {
                "type": "integer"
              },
              "asin": {
                "type": "string"
              },
              "keyword": {
                "type": "string"
              },
              "seller_id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "link": {
                "type": "string"
              },
              "identifier": {
                "type": "string"
              },
              "identifier_type": {
                "$ref": "#/$defs/IdentifierType"
              },
              "min_rating": {
                "type": "integer"
              },
              "max_rating": {
                "type": "integer"
              }
            },
            "additionalProperties": true,
            "required": [
              "id"
            ]
          }
        }
      },
      "additionalProperties": true
    },
    "BulkFailedItem": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "payload": {
          "type": "object",
          "properties": {
            "asin": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "domain": {
          "type": "string"
        },
        "callback_url": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "BulkInsufficientCreditItem": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "payload": {
          "type": "object",
          "properties": {
            "platform": {
              "type": "string"
            },
            "operation": {
              "type": "string"
            },
            "domain": {
              "type": "string"
            },
            "payload": {
              "type": "object",
              "properties": {
                "asin": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            },
            "callback_url": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "credit": {
              "type": "integer"
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "BulkInvalidItem": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "instancePath": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "payload_count": {
          "type": "integer"
        },
        "group_id": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "BulkRateLimitExceededItem": {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "payload": {
          "type": "object",
          "properties": {
            "platform": {
              "type": "string"
            },
            "operation": {
              "type": "string"
            },
            "domain": {
              "type": "string"
            },
            "payload": {
              "type": "object",
              "properties": {
                "asin": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            },
            "callback_url": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "credit": {
              "type": "integer"
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "IdentifierType": {
      "type": "string",
      "enum": [
        "ASIN",
        "EAN",
        "GTIN",
        "ISBN",
        "JAN",
        "MINSAN",
        "UPC"
      ]
    }
  }
}